Packagecom.adobe.mediacore.info
Classpublic class AudioTrack
InheritanceAudioTrack Inheritance Track Inheritance Object

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 - pid of the audio track for M2TS formats



Public Properties
 PropertyDefined By
 InheritedisDefault : Boolean
[read-only] Getter method: indicates whether the track is the default track.
Track
  isForced : Boolean
[read-only] Flag which indicates whether the track selection is forced.
AudioTrack
 Inheritedlanguage : String
[read-only] Getter method: provides the language of the track.
Track
 Inheritedname : String
[read-only] Getter method: provides the name of the track.
Track
  pid : int
[read-only] Indicates the PID of the track.
AudioTrack
Public Methods
 MethodDefined By
  
AudioTrack(name:String, language:String, isDefault:Boolean, isAutoSelect:Boolean, isForced:Boolean, pid:int)
Constructor method.
AudioTrack
  
isAutoSelect():Boolean
Flag which indicates whether auto-selection is enabled for this track.
AudioTrack
  
toString():String
Returns a string representation of the audio track.
AudioTrack
Property Detail
isForcedproperty
isForced:Boolean  [read-only]

Flag which indicates whether the track selection is forced.


Implementation
    public function get isForced():Boolean
pidproperty 
pid:int  [read-only]

Indicates the PID of the track. A M2TS specific concept.


Implementation
    public function get pid():int
Constructor Detail
AudioTrack()Constructor
public function AudioTrack(name:String, language:String, isDefault:Boolean, isAutoSelect:Boolean, isForced:Boolean, pid:int)

Constructor method. All track properties are read-only values. They can only be set at construction time.

Parameters
name:String — the name of the audio track
 
language:String — the language of the audio track
 
isDefault:Boolean — boolean that marks whether the audio track is the default audio track
 
isAutoSelect:Boolean — boolean that marks whether auto-selection is enabled for this audio track
 
isForced:Boolean — boolean that marks whether the audio track selection is forced.
 
pid:int — int the pid of the audio track if present. M2TS only.
Method Detail
isAutoSelect()method
public function isAutoSelect():Boolean

Flag which indicates whether auto-selection is enabled for this track.

Returns
Boolean — true if auto-selection is enabled for the track, false otherwise.
toString()method 
public function toString():String

Returns a string representation of the audio track.

Returns
String — a string representation of audio track.