VlcPlayerController.network constructor

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