public enum MediaFormat extends java.lang.Enum<MediaFormat>
Enum Constant and Description |
---|
flv
flv
|
m3u8
m3u8
|
mp3
mp3
|
mp4
mp4
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getFormat()
Query the format of the media.
|
static MediaFormat |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static MediaFormat[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MediaFormat mp4
public static final MediaFormat m3u8
public static final MediaFormat flv
public static final MediaFormat mp3
public static MediaFormat[] values()
for (MediaFormat c : MediaFormat.values()) System.out.println(c);
public static MediaFormat valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String getFormat()