getTrackById method

VideoTrack? getTrackById(
  1. String id
)

The VideoTrackList method getTrackById() returns the first VideoTrack object from the track list whose VideoTrack.id matches the specified string.

This lets you find a specified track if you know its ID string.

Implementation

external VideoTrack? getTrackById(String id);