A player state implementation for when the player is in an asynchronous transition. The video controller will not execute any queued commands until the transition is complete.
Constructors
TransitionState(videoController:
VideoController)
Instance Methods
Defined in: com.google.ads.studio.video:AbstractPlayerState
getStateType()
:
String
Returns the player state as a string such as "InitialState",
"BufferingState", "LoadingState",
"PausedState", "PlayingState", or
"StoppedState". It is encouraged to use
videoController.getPlayerState() and match against the
relevant class using instanceof or is.
pause(alwaysPause:Boolean=false)
:
AbstractPlayerStateThe pause command implementation for the current state.
play()
:
AbstractPlayerStateThe play command implementation for the current state.
seek(time:Number)
:
AbstractPlayerStateThe seek command implementation for the current state.
stop()
:
AbstractPlayerStateThe stop command implementation for the current state.
Defined in com.google.ads.studio.video:TransitionState
finishTransition(state:
AbstractPlayerState)
:
voidThe method to call when the transition is complete.
runInSeparateContext(closure:Function)
:
voidExecutes a closure in a separate execution context yet in this scope.
