onTextTrackChange method

  1. @override
void onTextTrackChange(
  1. int textTrackUid
)
override

Implementation

@override
void onTextTrackChange(int textTrackUid) {
  TextTrack? textTrack = _textTracks.firstWhereOrNull((element) => element.uid == textTrackUid);
  if (textTrack == null) {
    return;
  }

  (textTrack as TextTrackImpl).dispatchEvent(TextTrackChangeEvent(track: textTrack));
}