public static final enum

YouTubePlayer.ErrorReason

extends Enum<YouTubePlayer.ErrorReason>
java.lang.Object
   ↳ java.lang.Enum<com.google.android.youtube.player.YouTubePlayer.ErrorReason>
     ↳ com.google.android.youtube.player.YouTubePlayer.ErrorReason

Class Overview

Describes the reason for an error in a YouTubePlayer.

Summary

Enum Values
YouTubePlayer.ErrorReason  AUTOPLAY_DISABLED  The player has not automatically moved to the next video in the playlist because of autoplay restrictions. 
YouTubePlayer.ErrorReason  BLOCKED_FOR_APP  This field is deprecated. Replaced by NOT_PLAYABLE.  
YouTubePlayer.ErrorReason  EMBEDDING_DISABLED  This field is deprecated. Replaced by NOT_PLAYABLE.  
YouTubePlayer.ErrorReason  EMPTY_PLAYLIST  Could not start playback because the loaded playlist did not contain any videos. 
YouTubePlayer.ErrorReason  INTERNAL_ERROR  The current video could not be loaded due to an internal error. 
YouTubePlayer.ErrorReason  NETWORK_ERROR  An error occurred due to a network request failing. 
YouTubePlayer.ErrorReason  NOT_PLAYABLE  The current video could not be loaded because it is not in a playable state. 
YouTubePlayer.ErrorReason  PLAYER_VIEW_NOT_VISIBLE  Playback has been stopped due to the player's View not being visible. 
YouTubePlayer.ErrorReason  PLAYER_VIEW_TOO_SMALL  Playback has been stopped due to the player's View being too small. 
YouTubePlayer.ErrorReason  UNAUTHORIZED_OVERLAY  Playback has been stopped due to a view overlaying the player. 
YouTubePlayer.ErrorReason  UNEXPECTED_SERVICE_DISCONNECTION  Playback has been canceled and the player has been released due to an unexpected disconnection from the YouTube API service. 
YouTubePlayer.ErrorReason  UNKNOWN  The reason for the error is not known. 
YouTubePlayer.ErrorReason  USER_DECLINED_HIGH_BANDWIDTH  Playback was canceled because the user declined to allow playback of a high-bandwidth stream. 
YouTubePlayer.ErrorReason  USER_DECLINED_RESTRICTED_CONTENT  Playback was canceled because playback of restricted content was declined. 
Public Methods
static YouTubePlayer.ErrorReason valueOf(String name)
final static ErrorReason[] values()
[Expand]
Inherited Methods
From class java.lang.Enum
From class java.lang.Object
From interface java.lang.Comparable

Enum Values

public static final YouTubePlayer.ErrorReason AUTOPLAY_DISABLED

The player has not automatically moved to the next video in the playlist because of autoplay restrictions. Playback will resume when the user presses play.

public static final YouTubePlayer.ErrorReason BLOCKED_FOR_APP

This field is deprecated.
Replaced by NOT_PLAYABLE.

The current video could not be loaded because the content owner has blocked this app from embedding the video.

public static final YouTubePlayer.ErrorReason EMBEDDING_DISABLED

This field is deprecated.
Replaced by NOT_PLAYABLE.

The current video could not be loaded because the content owner has disabled any embedding of this video.

public static final YouTubePlayer.ErrorReason EMPTY_PLAYLIST

Could not start playback because the loaded playlist did not contain any videos.

public static final YouTubePlayer.ErrorReason INTERNAL_ERROR

The current video could not be loaded due to an internal error. Retrying may resolve the problem.

public static final YouTubePlayer.ErrorReason NETWORK_ERROR

An error occurred due to a network request failing. Check that the device is connected to the Internet.

public static final YouTubePlayer.ErrorReason NOT_PLAYABLE

The current video could not be loaded because it is not in a playable state. If the video has been newly uploaded, it may be that the video is still in the processing state and retrying later will resolve the issue.

The API documentation provides a list of possible states for a YouTube video.

public static final YouTubePlayer.ErrorReason PLAYER_VIEW_NOT_VISIBLE

Playback has been stopped due to the player's View not being visible. The view and all its ancestors must have their visibility set to VISIBLE while a video is playing.

public static final YouTubePlayer.ErrorReason PLAYER_VIEW_TOO_SMALL

Playback has been stopped due to the player's View being too small. The view has to be at least 200 dp wide and 110 dp high while a video is playing.

public static final YouTubePlayer.ErrorReason UNAUTHORIZED_OVERLAY

Playback has been stopped due to a view overlaying the player. It is not permitted to overlay views on top of the player while it is playing video.

When this error is reported, a message will be printed in the device log with information about which view is overlaying the player and the location of the overlap.

public static final YouTubePlayer.ErrorReason UNEXPECTED_SERVICE_DISCONNECTION

Playback has been canceled and the player has been released due to an unexpected disconnection from the YouTube API service. Any further calls to this player instance will result in errors, a new player instance must be created to re-enable playback.

public static final YouTubePlayer.ErrorReason UNKNOWN

The reason for the error is not known. This may be because the client library is older than the YouTube API service, and does not know of the actual ErrorReason that is being returned by the service. Retrying may resolve the problem.

public static final YouTubePlayer.ErrorReason USER_DECLINED_HIGH_BANDWIDTH

Playback was canceled because the user declined to allow playback of a high-bandwidth stream.

public static final YouTubePlayer.ErrorReason USER_DECLINED_RESTRICTED_CONTENT

Playback was canceled because playback of restricted content was declined.

See the API documentation for more information about video restrictions.

Public Methods

public static YouTubePlayer.ErrorReason valueOf (String name)

public static final ErrorReason[] values ()