VlcPlayerController.network constructor

VlcPlayerController.network(
  1. String dataSource, {
  2. bool autoInitialize = true,
  3. HwAcc hwAcc = HwAcc.AUTO,
  4. bool autoPlay = true,
  5. VlcPlayerOptions? options,
  6. @Deprecated('Please, use the addOnInitListener method instead.') VoidCallback? onInit,
  7. @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));