getTrackById method

MediaStreamTrack? getTrackById(
  1. String trackId
)

The getTrackById() method of the MediaStream interface returns a MediaStreamTrack object representing the track with the specified ID string. If there is no track with the specified ID, this method returns null.

Implementation

external MediaStreamTrack? getTrackById(String trackId);