VideoPlaybackController

Manages video playback and provides proper translation between the Brightcove representation of videos and the underlying platform's representation. This includes performing activities such as selecting the appropriate rendition to play, given a Video object, and ensuring that a Video still image loads properly if specified in a Video object.

Constructors

Link copied to clipboard
constructor(eventEmitter: EventEmitter)
Being a Component, VideoPlaybackController requires an EventEmitter on initialization.

Properties

Link copied to clipboard
val TAG: String

Functions

Link copied to clipboard
open fun addListener(eventType: String, listener: EventListener)
Convenience method to add an EventListener for the given type using the EventEmitter.on() method.
Link copied to clipboard
open fun addOnceListener(eventType: String, listener: EventListener)
Convenience method to add an EventListener for the given type using the EventEmitter.once() method.
Link copied to clipboard
Provides a reference to the EventEmitter with which this component was initialized
Link copied to clipboard
Gets the time in milliseconds for the Live Stream Window.
Link copied to clipboard
Indicates whether there are pending Sources to load.
Link copied to clipboard
open fun initialize()
Resets the state of the controller to its initial values.
Link copied to clipboard
Link copied to clipboard
open fun removeListener(eventType: String)
Removes the specified listener from the EventEmitter.
Link copied to clipboard
open fun removeListeners()
Removes all set listeners from the EventEmitter.
Link copied to clipboard
open fun setAdsDisabled(disable: Boolean)
Link copied to clipboard
open fun setLiveWindowTimeMs(liveWindowTimeMs: Int)
Sets the time in milliseconds for the Live Stream Window.
Link copied to clipboard
Set whether the controller selects the source or if this is handled by another component.