onAddTextTrack method

  1. @override
void onAddTextTrack(
  1. String? id,
  2. int uid,
  3. String? label,
  4. String? language,
  5. String? kind,
  6. String? inBandMetadataTrackDispatchType,
  7. TextTrackReadyState readyState,
  8. TextTrackType type,
  9. String? source,
  10. bool isForced,
  11. TextTrackMode mode,
)
override

Implementation

@override
void onAddTextTrack(String? id,
    int uid,
    String? label,
    String? language,
    String? kind,
    String? inBandMetadataTrackDispatchType,
    TextTrackReadyState readyState,
    TextTrackType type,
    String? source,
    bool isForced,
    TextTrackMode mode) {
  TextTrack textTrack = TextTrackImplMobile(
      id,
      uid,
      label,
      language,
      kind,
      inBandMetadataTrackDispatchType,
      readyState,
      type,
      Cues(),
      Cues(),
      source,
      isForced,
      mode,
      _nativeTextTrackAPI);
  _textTracks.add(textTrack);
  _textTracks.dispatchEvent(AddTextTrackEvent(track: textTrack));
}