public abstract class Track extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Track.Encoding
Enumeration of supported encoding types.
|
| Modifier | Constructor and Description |
|---|---|
protected |
Track(boolean enabled,
long trackID,
String name,
Locale locale,
Track.Encoding encoding)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Track.Encoding |
getEncodingType()
Gets the media encoding for this track.
|
Locale |
getLocale() |
String |
getName()
Returns the name of this track
|
long |
getTrackID() |
boolean |
isEnabled()
Whether this track is enabled by default in the source container.
|
protected Track(boolean enabled,
long trackID,
String name,
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.IllegalArgumentException - if name or
encoding is null.public Track.Encoding getEncodingType()
public String getName()
public Locale getLocale()
public long getTrackID()
public boolean isEnabled()
Copyright © 2025. All rights reserved.