VideoPlayerController.network constructor
VideoPlayerController.network(
- String dataSource, {
- VideoFormat? formatHint,
- Future<
ClosedCaptionFile> ? closedCaptionFile, - VideoPlayerOptions? videoPlayerOptions,
- VideoQuality? youtubeVideoQuality,
Constructs a VideoPlayerController playing a video from obtained from the network.
The URI for the video is given by the dataSource argument and must not be null. Android only: The formatHint option allows the caller to override the video format detection code.
Implementation
VideoPlayerController.network(this.dataSource,
{this.formatHint,
this.closedCaptionFile,
this.videoPlayerOptions,
this.youtubeVideoQuality})
: dataSourceType = DataSourceType.network,
package = null,
super(VideoPlayerValue(duration: null));