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)
:
AbstractPlayerState
The pause command implementation for the current state.
play()
:
AbstractPlayerState
The play command implementation for the current state.
seek(time:Number)
:
AbstractPlayerState
The seek command implementation for the current state.
stop()
:
AbstractPlayerState
The stop command implementation for the current state.
Defined in com.google.ads.studio.video:TransitionState
finishTransition(state:
AbstractPlayerState)
:
void
The method to call when the transition is complete.
runInSeparateContext(closure:Function)
:
void
Executes a closure in a separate execution context yet in this scope.