com.bramosystems.oss.player.youtube.client
Enum PlaybackQuality

java.lang.Object
  extended by java.lang.Enum<PlaybackQuality>
      extended by com.bramosystems.oss.player.youtube.client.PlaybackQuality
All Implemented Interfaces:
Serializable, Comparable<PlaybackQuality>

public enum PlaybackQuality
extends Enum<PlaybackQuality>

An enum of YouTube video playback qualities.

The playback quality usually correspond to the size of the video player. For example, if a page displays a 640px by 360px video player, a medium quality video will look better than a large quality video.

Since:
1.1
Author:
Sikirulai Braheem
See Also:
YouTubePlayer.setPlaybackQuality(PlaybackQuality)

Enum Constant Summary
Default
          Instructs YouTube to select the most appropriate playback quality, which will vary for different users, videos, systems and other playback conditions.
hd1080
          Quality level for minimum player height of 1080px i.e.
hd720
          Quality level for minimum player resolution of 1280px by 720px.
highres
          Quality level for player resolution greater than 1920px by 1080px
large
          Quality level for minimum player resolution of 854px by 480px.
medium
          Quality level for minimum player resolution of 640px by 360px.
small
          Quality level for player resolution less than 640px by 360px.
 
Method Summary
static PlaybackQuality valueOf(String name)
          Returns the enum constant of this type with the specified name.
static PlaybackQuality[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

Default

public static final PlaybackQuality Default
Instructs YouTube to select the most appropriate playback quality, which will vary for different users, videos, systems and other playback conditions.


small

public static final PlaybackQuality small
Quality level for player resolution less than 640px by 360px.


medium

public static final PlaybackQuality medium
Quality level for minimum player resolution of 640px by 360px.


large

public static final PlaybackQuality large
Quality level for minimum player resolution of 854px by 480px.


hd720

public static final PlaybackQuality hd720
Quality level for minimum player resolution of 1280px by 720px.


hd1080

public static final PlaybackQuality hd1080
Quality level for minimum player height of 1080px i.e. player dimensions are 1920px by 1080px (for 16:9 aspect ratio) or 1440px by 1080px (for 4:3 aspect ratio)

Since:
1.2

highres

public static final PlaybackQuality highres
Quality level for player resolution greater than 1920px by 1080px

Since:
1.2
Method Detail

values

public static PlaybackQuality[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (PlaybackQuality c : PlaybackQuality.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static PlaybackQuality valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null


Copyright © 2009-2011. All Rights Reserved.