public enum MediaType extends Enum<MediaType>
MediaType describes the type of media content
e.g. audio, video, etc. A MediaType can be retrieved by passing a FFmpeg media
type id to byId(int).| Enum Constant and Description |
|---|
ATTACHMENT |
AUDIO |
DATA |
NB |
SUBTITLE |
UNKNOWN |
VIDEO |
| Modifier and Type | Method and Description |
|---|---|
static MediaType |
byId(int id)
Get a
MediaType that matches to the specified FFmpeg id. |
int |
value()
Get the media type id defined in FFmpeg.
|
static MediaType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MediaType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MediaType UNKNOWN
public static final MediaType VIDEO
public static final MediaType AUDIO
public static final MediaType DATA
public static final MediaType SUBTITLE
public static final MediaType ATTACHMENT
public static final MediaType NB
public static MediaType[] values()
for (MediaType c : MediaType.values()) System.out.println(c);
public static MediaType 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 final int value()
public static MediaType byId(int id)
MediaType that matches to the specified FFmpeg id.id - FFmpeg media type id.null if id is not defined.Copyright © 2013. All Rights Reserved.