SubtitleTrack.uri constructor

SubtitleTrack.uri(
  1. String uri, {
  2. String? title,
  3. String? language,
})

SubtitleTrack loaded with URI.

This factory constructor may be used to load external subtitles e.g. SRT, WebVTT etc. as URI.

NOTE: External audio track is automatically unloaded upon playback completion.

Implementation

factory SubtitleTrack.uri(
  String uri, {
  String? title,
  String? language,
}) =>
    SubtitleTrack(uri, title, language, true, false);