VideoPlayerController.network constructor
- @Deprecated('Use VideoPlayerController.networkUrl instead')
- String dataSource, {
- VideoFormat? formatHint,
- Future<
ClosedCaptionFile> ? closedCaptionFile, - VideoPlayerOptions? videoPlayerOptions,
- Map<
String, String> httpHeaders = const <String, String>{}, - VideoViewType viewType = VideoViewType.textureView,
Constructs a VideoPlayerController playing a network video.
The URI for the video is given by the dataSource
argument.
Android only: The formatHint
option allows the caller to override
the video format detection code.
The viewType
option allows the caller to request a specific display mode
for the video. Platforms that do not support the request view type will
ignore this parameter.
httpHeaders
option allows to specify HTTP headers
for the request to the dataSource
.
Implementation
@Deprecated('Use VideoPlayerController.networkUrl instead')
VideoPlayerController.network(
this.dataSource, {
this.formatHint,
Future<ClosedCaptionFile>? closedCaptionFile,
this.videoPlayerOptions,
this.httpHeaders = const <String, String>{},
this.viewType = VideoViewType.textureView,
}) : _closedCaptionFileFuture = closedCaptionFile,
dataSourceType = DataSourceType.network,
package = null,
super(const VideoPlayerValue(duration: Duration.zero));