autoTranslate method

ClosedCaptionTrackInfo autoTranslate(
  1. String lang
)

Returns this auto-translated to another language. Keeping the same format.

Implementation

ClosedCaptionTrackInfo autoTranslate(String lang) {
  return ClosedCaptionTrackInfo(
    url.replaceQueryParameters({'tlang': lang}),
    Language(lang, lang),
    isAutoGenerated: isAutoGenerated,
    format: format,
  );
}