VlcPlayerController.asset constructor
VlcPlayerController.asset(
- String dataSource, {
- bool autoInitialize = true,
- String? package,
- 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,
The name of the asset is given by the dataSource argument and must not be null. The package argument must be non-null when the asset comes from a package and null otherwise.
Implementation
VlcPlayerController.asset(
this.dataSource, {
this.autoInitialize = true,
this.package,
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,
}) : _dataSourceType = DataSourceType.asset,
_onInit = onInit,
_onRendererHandler = onRendererHandler,
super(VlcPlayerValue(duration: Duration.zero));