Packagecom.adobe.mediacore.content
Classpublic class Track
InheritanceTrack Inheritance Object

A media track



Public Properties
 PropertyDefined By
  audioCodec : String
[read-only] The audio codec of the track.
Track
  id : String
[read-only] Each Track has a unique id that is assigned at the creation time.
Track
  label : String
[read-only] The label of the track.
Track
  lang : String
[read-only] The language identifier of the track.
Track
Protected Properties
 PropertyDefined By
  _id : String
Track
Public Methods
 MethodDefined By
  
Track(lang:String, label:String, audioCodec:String)
Constructor
Track
  
select(mode:String):void
Selects the current Track as the active track to be used in playback
Track
Public Constants
 ConstantDefined By
  REPLACE : String = Replace
[static] The REPLACE mode is used in the select() method to enable the track as the current track and disable the previous current track
Track
Property Detail
_idproperty
protected var _id:String

audioCodecproperty 
audioCodec:String  [read-only]

The audio codec of the track.


Implementation
    public function get audioCodec():String
idproperty 
id:String  [read-only]

Each Track has a unique id that is assigned at the creation time.


Implementation
    public function get id():String
labelproperty 
label:String  [read-only]

The label of the track. A label represents the description of the track.


Implementation
    public function get label():String
langproperty 
lang:String  [read-only]

The language identifier of the track.


Implementation
    public function get lang():String
Constructor Detail
Track()Constructor
public function Track(lang:String, label:String, audioCodec:String)

Constructor

Parameters
lang:String
 
label:String
 
audioCodec:String
Method Detail
select()method
public function select(mode:String):void

Selects the current Track as the active track to be used in playback

Parameters

mode:String

Constant Detail
REPLACEConstant
public static const REPLACE:String = Replace

The REPLACE mode is used in the select() method to enable the track as the current track and disable the previous current track