com.adobe.mediacore.info
Class AudioTrack
java.lang.Object
com.adobe.mediacore.info.Track
com.adobe.mediacore.info.AudioTrack
public class AudioTrack
- extends Track
Class that defines the AudioTrack abstraction.
An audio track is defined uniquely by its name. Additionally, the class
encapsulates a series of properties like:
- language
- whether the track is the default audio track
- whether track auto-selection is enabled
- whether track selection is forced
Constructor Summary |
AudioTrack(String name,
String language,
boolean isDefault,
boolean isAutoSelect,
boolean isForced)
Constructor method. |
Method Summary |
boolean |
isAutoSelect()
Getter method: indicates whether auto-selection is enabled for this track. |
boolean |
isForced()
Getter method: indicates whether the track selection is forced. |
String |
toString()
|
AudioTrack
public AudioTrack(String name,
String language,
boolean isDefault,
boolean isAutoSelect,
boolean isForced)
- Constructor method.
All track properties are read-only values. They can only be set at construction time.
- Parameters:
name
- the name of the audio tracklanguage
- the language of the audio trackisDefault
- boolean that marks whether the audio track is the default audio trackisAutoSelect
- boolean that marks whether auto-selection is enabled for this audio trackisForced
- boolean that marks whether the audio track selection is forced.
isAutoSelect
public boolean isAutoSelect()
- Getter method: indicates whether auto-selection is enabled for this track.
- Returns:
- true if auto-selection is enabled for the track, false otherwise.
isForced
public boolean isForced()
- Getter method: indicates whether the track selection is forced.
- Returns:
- true if track selection is forced, false otherwise.
toString
public String toString()
- Overrides:
toString
in class Object