PlayVideoFrom.network constructor

PlayVideoFrom.network(
  1. String dataSource, {
  2. VideoFormat? formatHint,
  3. Future<ClosedCaptionFile>? closedCaptionFile,
  4. VideoPlayerOptions? videoPlayerOptions,
  5. Map<String, String> httpHeaders = const {},
})

Implementation

factory PlayVideoFrom.network(
  String dataSource, {
  VideoFormat? formatHint,
  Future<ClosedCaptionFile>? closedCaptionFile,
  VideoPlayerOptions? videoPlayerOptions,
  Map<String, String> httpHeaders = const {},
}) {
  return PlayVideoFrom._(
    playerType: PodVideoPlayerType.network,
    dataSource: dataSource,
    formatHint: formatHint,
    closedCaptionFile: closedCaptionFile,
    videoPlayerOptions: videoPlayerOptions,
    httpHeaders: httpHeaders,
  );
}