@Emits(events={"completed","cuePoint","didSelectSource","didSetVideo","play","selectSource","setSource","setVideoStill"}) @ListensFor(events={"completed","cuePoint","seekTo","didSeekTo","didSetSource","play","didPlay","progress","readyToPlay","removeCuePoint","setCuePoint","setCuePoints","setVideo","willChangeVideo"}) public class VideoPlaybackController extends AbstractComponent implements Component
Modifier and Type | Class and Description |
---|---|
protected class |
VideoPlaybackController.OnDidSeekToListener |
protected class |
VideoPlaybackController.OnDidSetSourceListener |
protected class |
VideoPlaybackController.OnPlayerReadyListener |
protected class |
VideoPlaybackController.OnPlayListener |
protected class |
VideoPlaybackController.OnRemoveCuePointListener |
protected class |
VideoPlaybackController.OnSeekToListener |
protected class |
VideoPlaybackController.OnSetCuePointListener |
protected class |
VideoPlaybackController.OnSetCuePointsListener |
protected class |
VideoPlaybackController.OnSetVideoListener |
protected class |
VideoPlaybackController.OnSourceSelectedListener |
protected class |
VideoPlaybackController.OnVideoCompletedListener |
protected class |
VideoPlaybackController.OnWillChangeVideoListener |
Modifier and Type | Field and Description |
---|---|
protected boolean |
adsDisabled
Disables ad playback which otherwise might occurr after a -seekTo.
|
protected int |
liveWindowTimeMs |
static java.lang.String |
TAG |
eventEmitter, listenerTokens
Constructor and Description |
---|
VideoPlaybackController(EventEmitter eventEmitter)
Being a Component, VideoPlaybackController requires an EventEmitter on initialization.
|
Modifier and Type | Method and Description |
---|---|
int |
getLiveWindowTimeMs()
Deprecated.
|
boolean |
hasPendingSourcesToLoad()
Indicates whether there are pending Sources to load.
|
void |
initialize()
Resets the state of the controller to its initial values.
|
protected void |
initializeListeners()
Ensure that all relevant event listeners are registered with the EventEmitter given in the
constructor.
|
boolean |
isAdsDisabled() |
void |
setAdsDisabled(boolean disable) |
void |
setLiveWindowTimeMs(int liveWindowTimeMs)
Deprecated.
|
addListener, addOnceListener, getEventEmitter, removeListener, removeListeners
public static final java.lang.String TAG
protected boolean adsDisabled
protected int liveWindowTimeMs
public VideoPlaybackController(EventEmitter eventEmitter)
eventEmitter
- the EventEmitter through which this Component will listen for and emit
events to interact with other components in the playerpublic boolean isAdsDisabled()
public void setAdsDisabled(boolean disable)
@Deprecated public int getLiveWindowTimeMs()
@Deprecated public void setLiveWindowTimeMs(int liveWindowTimeMs)
liveWindowTimeMs
- the live window time in mspublic void initialize()
public boolean hasPendingSourcesToLoad()
protected void initializeListeners()