SuperPlayerComponent constructor
const
SuperPlayerComponent({
- Key? key,
- required String url,
- VoidCallback? onToggleFullscreen,
- VoidCallback? onSwapTap,
- bool controlsEnabled = true,
- void onProgress(
- double positionSec
- void onControllerReady(
- VideoPlayerController controller
- VoidCallback? onFirstFrameReady,
- void onControllerDispose()?,
- Future<
void> awaitBeforeControllerDispose(- VideoPlayerController controller
- void onControllerReleased(
- VideoPlayerController controller
- bool isControllerDisposedExternally()?,
- bool isControllerDisposedExternallyForController(
- VideoPlayerController controller
- VoidCallback? onEnded,
- void onError(
- String message
- bool offlineMode = false,
- bool muted = false,
- bool showSkeletonCenterPlaceholder = true,
- VideoViewType? viewType,
Implementation
const SuperPlayerComponent({
super.key,
required this.url,
this.onToggleFullscreen,
this.onSwapTap,
this.controlsEnabled = true,
this.onProgress,
this.onControllerReady,
this.onFirstFrameReady,
this.onControllerDispose,
this.awaitBeforeControllerDispose,
this.onControllerReleased,
this.isControllerDisposedExternally,
this.isControllerDisposedExternallyForController,
this.onEnded,
this.onError,
this.offlineMode = false,
this.muted = false,
this.showSkeletonCenterPlaceholder = true,
this.viewType,
});