notifyChangeSubtitleTrack method

Future<void> notifyChangeSubtitleTrack(
  1. String newSubtitle, [
  2. Map<String, String>? labels
])

Notifies of a new Change Subtitle event with the given new subtitle.

@param newSubtitle New subtitle track/name/language @param labels Labels

Implementation

Future<void> notifyChangeSubtitleTrack(String newSubtitle, [Map<String, String>? labels]) {
  var args = buildArguments();
  args[Args.labels] = labels;
  args["newSubtitle"] = newSubtitle;
  return _methodChannel.invokeMethod<void>('notifyChangeSubtitleTrack', args);
}