public enum PreloadType extends Enum<PreloadType>
Enum Constant and Description |
---|
AUTO
The player will immediately load the metadata and the media on source change.
|
METADATA
The player will immediately load the metadata on source change.
|
NONE
The player will not load anything on source change.
|
Modifier and Type | Method and Description |
---|---|
String |
getType()
The textual representation of preload type.
|
static PreloadType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PreloadType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PreloadType NONE
public static final PreloadType AUTO
- Loads media up to Abr.getTargetBuffer()
.
public static final PreloadType METADATA
- Loads enough resources to be able determine the Player.getDuration()
.
public static PreloadType[] values()
for (PreloadType c : PreloadType.values()) System.out.println(c);
public static PreloadType 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 nullpublic String getType()