YouTube

YouTubePlayer.ErrorReason

public static final enum
YouTubePlayer.ErrorReason
extends Enum<E extends Enum<E>>
java.lang.Object
   ↳ java.lang.Enum<E extends java.lang.Enum<E>>
     ↳ com.google.android.youtube.player.YouTubePlayer.ErrorReason

Overview

Describes the reason for an error in a YouTubePlayer.

Summary

Enum values
YouTubePlayer.ErrorReason.AUTOPLAY_DISABLED The player has not automatically moved onto the next video in the playlist because of autoplay restrictions.
YouTubePlayer.ErrorReason.BLOCKED_FOR_APP The current video could not be loaded because the content owner has blocked this app from embedding the video.
YouTubePlayer.ErrorReason.EMBEDDING_DISABLED The current video could not be loaded because the content owner has disabled any embedding of this video.
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_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
final Object clone()
int compareTo(Object arg0)
final int compareTo(E arg0)
final boolean equals(Object arg0)
final void finalize()
final Class<E> getDeclaringClass()
final int hashCode()
final String name()
final int ordinal()
String toString()
static <T extends Enum<T>> T valueOf(Class<T> arg0, String arg1)
Object clone()
boolean equals(Object arg0)
void finalize()
final Class<?> getClass()
int hashCode()
final void notify()
final void notifyAll()
String toString()
final void wait()
final void wait(long arg0, int arg1)
final void wait(long arg0)
abstract int compareTo(T arg0)

Enum values

public static final YouTubePlayer.ErrorReason AUTOPLAY_DISABLED

The player has not automatically moved onto 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

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

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_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 ()

Authentication required

You need to be signed in with Google+ to do that.

Signing you in...

Google Developers needs your permission to do that.