new AudioTrackList(tracksopt)
Create an instance of this class.
Parameters:
| Name | Type | Attributes | Default | Description | 
|---|---|---|---|---|
tracks | 
            
            Array.<AudioTrack> | 
                
                    <optional> | 
            
            
                [] | A list of   | 
        
- See:
 
Extends
Members
- 
length :number
 - 
    
    
The current number of
Tracks in the this Trackist.- Inherited From:
 
 
Methods
- 
    
        
addTrack(track)
 - 
    
    
Add an AudioTrack to the
AudioTrackList.Parameters:
Name Type Description trackAudioTrack The AudioTrack to add to the list
Fires:
- Overrides:
 
 - 
    
        
removeTrack(rtrack)
 - 
    
    
Remove a Track from the
TrackListParameters:
Name Type Description rtrackTrack The audio, video, or text track to remove from the list.
Fires:
- Inherited From:
 
 
Events
- 
    
        
addtrack
 - 
    
    
Triggered when a track is added to a track list.
Type:
Properties:
Name Type Description trackTrack A reference to track that was added.
- Inherited From:
 
 - 
    
        
change
 - 
    
    
Triggered when a different track is selected/enabled.
Type:
Listeners of This Event:
- Inherited From:
 
 - 
    
        
removetrack
 - 
    
    
Triggered when a track is removed from track list.
Type:
Properties:
Name Type Description trackTrack A reference to track that was removed.
- Inherited From: