PlayVideoFrom.asset constructor

PlayVideoFrom.asset(
  1. String dataSource, {
  2. String? package,
  3. Future<ClosedCaptionFile>? closedCaptionFile,
  4. VideoPlayerOptions? videoPlayerOptions,
})

Implementation

factory PlayVideoFrom.asset(
  String dataSource, {
  String? package,
  Future<ClosedCaptionFile>? closedCaptionFile,
  VideoPlayerOptions? videoPlayerOptions,
}) {
  return PlayVideoFrom._(
    playerType: PodVideoPlayerType.asset,
    dataSource: dataSource,
    package: package,
    closedCaptionFile: closedCaptionFile,
    videoPlayerOptions: videoPlayerOptions,
  );
}