Table of Contents

Enum PlaybackState

Namespace
VisioForge.Core.Types
Assembly
VisioForge.Core.dll

Defines the possible states of a media playback or capture session. This enumeration is used to indicate whether the media is actively playing, paused, or in an idle state.

public enum PlaybackState

Fields

Play = 0

The media is currently playing or capturing.

Pause = 1

The media playback or capture is paused.

Free = 2

The media playback or capture is stopped, or the component is in an idle/free state.

Remarks

Components like VisioForge.Core.Types.IMediaPlayerControls and VisioForge.Core.Types.IVideoCaptureControls use this enum to report their current operational status. The state transitions typically follow this pattern: Free -> Play -> Pause -> Play -> Free. Play state indicates active processing (playing video, capturing video, streaming, etc.). Pause state indicates a temporary suspension where the session remains active and can be quickly resumed. Free state indicates the component is stopped, idle, or not yet initialized - no media processing is occurring. Monitoring the state is important for UI updates, resource management, and coordinating multiple media components. State changes may trigger events in implementing components to notify listeners of status transitions.