setClosedCaptionFile method

Future<void> setClosedCaptionFile(
  1. Future<ClosedCaptionFile>? closedCaptionFile
)

Sets a closed caption file.

If closedCaptionFile is null, closed captions will be removed.

Implementation

Future<void> setClosedCaptionFile(
  Future<ClosedCaptionFile>? closedCaptionFile,
) async {
  await _updateClosedCaptionWithFuture(closedCaptionFile);
  _closedCaptionFileFuture = closedCaptionFile;
}