SVSContentPlayerPlugin

Interface to be implemented by classes that pilot various content players

Functions

Link copied to clipboard
abstract fun adBreakEnded()
Performs any action necessary when the ad playback has finished, including resuming the content playback
Link copied to clipboard
abstract fun adBreakStarted()
Performs any action necessary when the ad playback is about to start, including pausing the content playback
Link copied to clipboard
abstract fun getContentDuration(): Long
Returns the content media duration in milliseconds (or -1 for live content)
Link copied to clipboard
Returns the ViewGroup component that contains the content player
Link copied to clipboard
Returns the volume level of the content player.
Link copied to clipboard
abstract fun getCurrentPosition(): Long
Returns the current position in the content media, in milliseconds
Link copied to clipboard
abstract fun isPlaying(): Boolean
Returns whether the content media is currently being played