public abstract class Track
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
description |
private java.util.Locale |
locale |
private java.util.Map<java.lang.String,java.lang.Object> |
metadata |
private java.lang.String |
name
The name of the track or
null if the track is unnamed. |
private long |
trackID |
| Constructor and Description |
|---|
Track(long trackID,
java.util.Map<java.lang.String,java.lang.Object> metadata) |
| Modifier and Type | Method and Description |
|---|---|
java.util.Locale |
getLocale()
The
Locale specifying the language and possibly the country that
the Track contents are formatted for. |
java.util.Map<java.lang.String,java.lang.Object> |
getMetadata() |
java.lang.String |
getName()
Retrieves the name of the track.
|
long |
getTrackID()
Get the track ID as defined by the media container format.
|
java.lang.String |
toString() |
private java.lang.String name
null if the track is unnamed.private long trackID
private java.util.Locale locale
private java.util.Map<java.lang.String,java.lang.Object> metadata
private java.lang.String description
Track(long trackID,
java.util.Map<java.lang.String,java.lang.Object> metadata)
public final java.lang.String getName()
null.public final java.util.Locale getLocale()
Locale specifying the language and possibly the country that
the Track contents are formatted for. For AudioTracks
this will be the language spoken, for SubtitleTracks this will be
the language presented in the captions. Not all Tracks will
have an associated language, in which case this method will return null.Tracks language information or nullpublic final long getTrackID()
Track must be unique for its source Media.Tracks unique IDpublic final java.util.Map<java.lang.String,java.lang.Object> getMetadata()
Trackpublic final java.lang.String toString()
toString in class java.lang.Object