setClosedCaptionFile method
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);
}