com.adobe.mediacore.info
Class AudioTrack

java.lang.Object
  extended by com.adobe.mediacore.info.Track
      extended by 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()
           
 
Methods inherited from class com.adobe.mediacore.info.Track
getLanguage, getName, isDefault
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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 track
language - the language of the audio track
isDefault - boolean that marks whether the audio track is the default audio track
isAutoSelect - boolean that marks whether auto-selection is enabled for this audio track
isForced - boolean that marks whether the audio track selection is forced.
Method Detail

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