Video Player State
Represents the state and controls for a video player. This class provides properties and methods to manage video playback, including play, pause, stop, seeking, and more. It maintains information about the playback state, such as whether the video is currently playing, volume levels, and playback position.
Functions of this class are tied to managing and interacting with the underlying video player implementation.
Inheritors
Properties
Returns the total duration of the video as a formatted string.
Callback invoked when playback reaches the end of the media. Only called when loop is false. May be invoked from a background thread.
Returns the current playback position as a formatted string.
Denotes whether the user is manually adjusting the playback position.
Functions
Clears the shared video cache, removing all cached media data from disk.
Opens a media file bundled with the application.
Opens a video file or URL for playback.
Commits the seek after a user-driven seek interaction. Performs the actual seek on the player and ends the dragging state.
Begins a user-driven seek interaction (e.g. slider drag). Updates the visual slider position without performing the actual seek on the player. Must be followed by seekFinished to commit the seek.