public enum PlaybackQuality extends Enum<PlaybackQuality>
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.
YouTubeBasePlayer.setPlaybackQuality(PlaybackQuality)
Enum Constant and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public static final PlaybackQuality Default
public static final PlaybackQuality small
public static final PlaybackQuality medium
public static final PlaybackQuality large
public static final PlaybackQuality hd720
public static final PlaybackQuality hd1080
public static final PlaybackQuality highres
public static PlaybackQuality[] values()
for (PlaybackQuality c : PlaybackQuality.values()) System.out.println(c);
public static PlaybackQuality valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- if the argument is nullCopyright © 2009-2013. All Rights Reserved.