MediaStreamTrackList
Summary
A MediaStream has two MediaStreamTrackList objects, one for the video tracks and one for the audio tracks.
Properties
- length
- The number of tracks in the list.
- onaddtrack
- Handles the addtrack event.
- onremovetrack
- Handles the removetrack event.
Methods
- add
- Adds a MediaStreamTrack to this track list.
- item
- Returns the MediaStreamTrack at the specified index value.
- remove
- Removes a MediaStreamTrack from this track list.
Events
- addtrack
- A MediaStreamTrack has been added to the list.
- removetrack
- A MediaStreamTrack has been removed from the list.