public abstract class Track
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Track.Encoding
Enumeration of supported encoding types.
|
Modifier and Type | Field and Description |
---|---|
private Track.Encoding |
encoding |
private java.util.Locale |
locale |
private java.lang.String |
name |
private boolean |
trackEnabled |
private long |
trackID |
Modifier | Constructor and Description |
---|---|
protected |
Track(boolean enabled,
long trackID,
java.lang.String name,
java.util.Locale locale,
Track.Encoding encoding)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Track.Encoding |
getEncodingType()
Gets the media encoding for this track.
|
java.util.Locale |
getLocale() |
java.lang.String |
getName()
Returns the name of this track
|
long |
getTrackID() |
boolean |
isEnabled()
Whether this track is enabled by default in the source container.
|
private boolean trackEnabled
private long trackID
private java.lang.String name
private java.util.Locale locale
private Track.Encoding encoding
protected Track(boolean enabled, long trackID, java.lang.String name, java.util.Locale locale, Track.Encoding encoding)
enabled
- Whether this track is enabled by default or not (if the container supports it)trackID
- A unique identifier for this track.name
- The name of the track.locale
- The language information for this track.encoding
- The encoding of the track.java.lang.IllegalArgumentException
- if name
or
encoding
is null
.public Track.Encoding getEncodingType()
public java.lang.String getName()
public java.util.Locale getLocale()
public long getTrackID()
public boolean isEnabled()