Cast Vdo Player
A VdoPlayer implementation that can be used to interact with the VdoCipher Cast receiver app.
In order to use this class, you must pass a CastContext to create an instance.
To track cast session availability, use isCastSessionAvailable to get session status at start, and attach a CastSessionAvailabilityListener using setSessionAvailabilityListener to get further session availability updates.
To join an existing playback session on the receiver app, use joinSession; to load a new session, use load.
Functions
Link copied to clipboard
Register callbacks for playback events from this VdoPlayer
Link copied to clipboard
Returns the available tracks for the currently playing media.
Link copied to clipboard
Gets the time till which video is buffered
Link copied to clipboard
Returns a MediaInfo object containing info corresponding to the currently playing media.
Link copied to clipboard
Gets the current playback time of the video from the beginning.
Link copied to clipboard
Gets the duration of the current video.
Link copied to clipboard
Returns values of additional properties specific to current playback session.
Link copied to clipboard
Returns the currently active playback speed.
Link copied to clipboard
* Called when the player configuration for requested media is loaded.
Link copied to clipboard
Returns the selected tracks for the currently playing media.
Link copied to clipboard
Returns if the current playback is adaptive.
Link copied to clipboard
Link copied to clipboard
Returns if the current player supports changing the playback speed.
Link copied to clipboard
Link copied to clipboard
Join an existing cast session if the provided VdoInitParams is being played.
Link copied to clipboard
Immediately starts loading a media for the player to play.
Link copied to clipboard
Remove a registered playback event listener from this VdoPlayer
Link copied to clipboard
open fun searchInSelectedSubtitle(searchText: String, subtitleSearchListener: SubtitleSearchListener)
Search in selected subtitle and seek to matching cues.
Link copied to clipboard
Set callback to provide event when video start resume from saved seek position
Link copied to clipboard
Sets the playback speed.
Link copied to clipboard
Sets a fixed (non-adaptive) selection of tracks.
Link copied to clipboard
Link copied to clipboard