onTextTrackCueChange method

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

Implementation

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

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