PlayerComponent constructor
const
PlayerComponent({
- Key? key,
- required String url,
- void onProgress(
- int positionSec
- void onControllerReady(
- VideoPlayerController controller
- void onControllerDispose()?,
- bool isControllerDisposedExternally()?,
- VoidCallback? onSwapTap,
- VoidCallback? onEnded,
- void onError(
- String message
- bool controlsEnabled = true,
- bool offlineMode = false,
Implementation
const PlayerComponent({
super.key,
required this.url,
this.onProgress,
this.onControllerReady,
this.onControllerDispose,
this.isControllerDisposedExternally,
this.onSwapTap,
this.onEnded,
this.onError,
this.controlsEnabled = true,
this.offlineMode = false,
});