getTrackById method
Returns a MediaStreamTrack object from the stream's track set.
Syntax
var retVal = MediaStream.getTrackById(trackId);Parameters
- trackId [in]
-
Type: String
The id of a MediaStreamTrack.
Return value
Type: MediaStreamTrack
Represents a media source,
Remarks
If no such id matches the trackId, null will be returned.
See also
Show: