id property

String id

Returns the ID of the given track.

For in-band tracks, this is the ID that can be used with a fragment if the format supports media fragment syntax, and that can be used with the getTrackById() method.

For TextTrack objects corresponding to track elements, this is the ID of the track element.

MDN Reference

Implementation

_i2.String get id => _i4.getProperty(
      this,
      'id',
    );