VideoPlayerController.contentUri constructor

VideoPlayerController.contentUri(
  1. Uri contentUri, {
  2. Future<ClosedCaptionFile>? closedCaptionFile,
  3. VideoPlayerOptions? videoPlayerOptions,
})

Implementation

VideoPlayerController.contentUri(Uri contentUri, {this.closedCaptionFile, this.videoPlayerOptions})
    : assert(defaultTargetPlatform == TargetPlatform.android,
          'VideoPlayerController.contentUri is only supported on Android.'),
      dataSource = contentUri.toString(),
      dataSourceType = DataSourceType.contentUri,
      package = null,
      formatHint = null,
      httpHeaders = const {},
      super(VideoPlayerValue(duration: Duration.zero));