SuperPlayerComponent constructor

const SuperPlayerComponent({
  1. Key? key,
  2. required String url,
  3. VoidCallback? onToggleFullscreen,
  4. VoidCallback? onSwapTap,
  5. bool controlsEnabled = true,
  6. void onProgress(
    1. double positionSec
    )?,
  7. void onControllerReady(
    1. VideoPlayerController controller
    )?,
  8. VoidCallback? onFirstFrameReady,
  9. void onControllerDispose()?,
  10. Future<void> awaitBeforeControllerDispose(
    1. VideoPlayerController controller
    )?,
  11. void onControllerReleased(
    1. VideoPlayerController controller
    )?,
  12. bool isControllerDisposedExternally()?,
  13. bool isControllerDisposedExternallyForController(
    1. VideoPlayerController controller
    )?,
  14. VoidCallback? onEnded,
  15. void onError(
    1. String message
    )?,
  16. bool offlineMode = false,
  17. bool muted = false,
  18. bool showSkeletonCenterPlaceholder = true,
  19. 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,
});