PlayVideoFrom.file constructor

PlayVideoFrom.file(
  1. File file, {
  2. Future<ClosedCaptionFile>? closedCaptionFile,
  3. VideoPlayerOptions? videoPlayerOptions,
})

File Doesnot support web apps file is File Datatype import it from dart:io

Implementation

factory PlayVideoFrom.file(
  File file, {
  Future<ClosedCaptionFile>? closedCaptionFile,
  VideoPlayerOptions? videoPlayerOptions,
}) {
  return PlayVideoFrom._(
    file: file,
    playerType: PodVideoPlayerType.file,
    closedCaptionFile: closedCaptionFile,
    videoPlayerOptions: videoPlayerOptions,
  );
}