setClosedCaptionFile method

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

Sets a closed caption file. If closedCaptionFile is null, closed captions will be removed.

Implementation

void setClosedCaptionFile(Future<ClosedCaptionFile>? closedCaptionFile) {
  if (videoPlayerController == null) {
    customDebugPrint("setClosedCaptionFile: videoPlayerController is null");
    return;
  }
  videoPlayerController!.setClosedCaptionFile(closedCaptionFile);
}