VideoPlayerController.network constructor

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

Implementation

VideoPlayerController.network(
  this.dataSource, {
  this.formatHint,
  this.closedCaptionFile,
  this.videoPlayerOptions,
  this.httpHeaders = const {},
})  : dataSourceType = DataSourceType.network,
      package = null,
      super(VideoPlayerValue(duration: Duration.zero));