VlcPlayerController.network constructor
VlcPlayerController.network(
- String dataSource, {
- bool autoInitialize = true,
- HwAcc hwAcc = HwAcc.AUTO,
- bool autoPlay = true,
- VlcPlayerOptions? options,
- @Deprecated('Please, use the addOnInitListener method instead.') VoidCallback? onInit,
- @Deprecated('Please, use the addOnRendererEventListener method instead.') RendererCallback? onRendererHandler,
Constructs a VlcPlayerController playing a video from obtained from the network.
The URI for the video is given by the dataSource argument and must not be null.
Implementation
VlcPlayerController.network(
this.dataSource, {
this.autoInitialize = true,
this.hwAcc = HwAcc.AUTO,
this.autoPlay = true,
this.options,
@Deprecated('Please, use the addOnInitListener method instead.')
VoidCallback? onInit,
@Deprecated('Please, use the addOnRendererEventListener method instead.')
RendererCallback? onRendererHandler,
}) : package = null,
_dataSourceType = DataSourceType.network,
_onInit = onInit,
_onRendererHandler = onRendererHandler,
super(VlcPlayerValue(duration: Duration.zero));