public class Format extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Format.DecreasingBandwidthComparator
Sorts
Format objects in order of decreasing bandwidth. |
Modifier and Type | Field and Description |
---|---|
int |
audioChannels
The number of audio channels, or -1 if unknown or not applicable.
|
int |
audioSamplingRate
The audio sampling rate in Hz, or -1 if unknown or not applicable.
|
int |
bitrate
The average bandwidth in bits per second.
|
String |
codecs
The codecs used to decode the format.
|
float |
frameRate
The video frame rate in frames per second, or -1 if unknown or not applicable.
|
int |
height
The height of the video in pixels, or -1 if unknown or not applicable.
|
String |
id
An identifier for the format.
|
String |
language
The language of the format.
|
String |
mimeType
The mime type of the format.
|
int |
width
The width of the video in pixels, or -1 if unknown or not applicable.
|
Constructor and Description |
---|
Format(String id,
String mimeType,
int width,
int height,
float frameRate,
int numChannels,
int audioSamplingRate,
int bitrate) |
Format(String id,
String mimeType,
int width,
int height,
float frameRate,
int numChannels,
int audioSamplingRate,
int bitrate,
String language) |
Format(String id,
String mimeType,
int width,
int height,
float frameRate,
int audioChannels,
int audioSamplingRate,
int bitrate,
String language,
String codecs) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Implements equality based on
id only. |
int |
hashCode() |
public final String id
public final String mimeType
public final int bitrate
public final int width
public final int height
public final float frameRate
public final int audioChannels
public final int audioSamplingRate
public final String codecs
null
if unknown.public final String language
The language codes are two-letter lowercase ISO language codes (such as "en") as defined by ISO 639-1.
public Format(String id, String mimeType, int width, int height, float frameRate, int numChannels, int audioSamplingRate, int bitrate)
id
- The format identifier.mimeType
- The format mime type.width
- The width of the video in pixels, or -1 if unknown or not applicable.height
- The height of the video in pixels, or -1 if unknown or not applicable.frameRate
- The frame rate of the video in frames per second, or -1 if unknown or not
applicable.numChannels
- The number of audio channels, or -1 if unknown or not applicable.audioSamplingRate
- The audio sampling rate in Hz, or -1 if unknown or not applicable.bitrate
- The average bandwidth of the format in bits per second.public Format(String id, String mimeType, int width, int height, float frameRate, int numChannels, int audioSamplingRate, int bitrate, String language)
id
- The format identifier.mimeType
- The format mime type.width
- The width of the video in pixels, or -1 if unknown or not applicable.height
- The height of the video in pixels, or -1 if unknown or not applicable.frameRate
- The frame rate of the video in frames per second, or -1 if unknown or not
applicable.numChannels
- The number of audio channels, or -1 if unknown or not applicable.audioSamplingRate
- The audio sampling rate in Hz, or -1 if unknown or not applicable.bitrate
- The average bandwidth of the format in bits per second.language
- The language of the format.public Format(String id, String mimeType, int width, int height, float frameRate, int audioChannels, int audioSamplingRate, int bitrate, String language, String codecs)
id
- The format identifier.mimeType
- The format mime type.width
- The width of the video in pixels, or -1 if unknown or not applicable.height
- The height of the video in pixels, or -1 if unknown or not applicable.frameRate
- The frame rate of the video in frames per second, or -1 if unknown or not
applicable.audioChannels
- The number of audio channels, or -1 if unknown or not applicable.audioSamplingRate
- The audio sampling rate in Hz, or -1 if unknown or not applicable.bitrate
- The average bandwidth of the format in bits per second.language
- The language of the format.codecs
- The codecs used to decode the format.