onAddTextTrack method
void
onAddTextTrack(
- String? id,
- int uid,
- String? label,
- String? language,
- String? kind,
- String? inBandMetadataTrackDispatchType,
- TextTrackReadyState readyState,
- TextTrackType type,
- String? source,
- bool isForced,
- 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));
}