com.google.android.youtube.player.YouTubePlayer.OnInitializedListener |
Interface definition for callbacks that are invoked when player initialization succeeds or fails.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Called when initialization of the player fails.
| |||||||||||
Called when initialization of the player succeeds.
|
Called when initialization of the player fails.
provider | The provider which failed to initialize a YouTubePlayer . |
---|---|
error | The reason for this failure, along with potential resolutions to this failure. |
Called when initialization of the player succeeds.
provider | The provider which was used to initialize the YouTubePlayer . |
---|---|
player | A YouTubePlayer which can be used to control video playback in the
provider. |
wasRestored | Whether the player was restored from a previously saved state, as part of
the YouTubePlayerView or YouTubePlayerFragment restoring its state.
true usually means playback is resuming from where the user expects it would,
and that a new video should not be loaded.
|