com.google.android.youtube.player.YouTubePlayer.PlayerStateChangeListener |
Interface definition for callbacks that are invoked when the high-level player state changes.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Called when playback of an advertisement starts.
| |||||||||||
Called when an error occurs.
| |||||||||||
Called when a video has finished loading.
| |||||||||||
Called when the video reaches its end.
| |||||||||||
Called when playback of the video starts.
|
Called when playback of an advertisement starts.
Called when an error occurs. This can be called from any state.
reason | The reason for the error. |
---|
Called when a video has finished loading.
Playback methods such as play()
, pause()
or seekToMillis(int)
may be
called after this callback.
If the video was loaded through one of the load
functions such as loadVideo(String)
this callback will typically be followed by a call to either onAdStarted()
or
onVideoStarted()
.
videoId | The YouTube video id of the loaded video. |
---|
Called when the video reaches its end.
Called when playback of the video starts.