VideoPlayerCallbacks constructor

const VideoPlayerCallbacks({
  1. void onControllerCreated(
    1. OmniPlaybackController controller
    )?,
  2. void onFullScreenToggled(
    1. bool isGoingFullScreen
    )?,
  3. void onOverlayControlsVisibilityChanged(
    1. bool areVisible
    )?,
  4. void onCenterControlsVisibilityChanged(
    1. bool areVisible
    )?,
  5. void onMuteToggled(
    1. bool isMute
    )?,
  6. void onSeekStart(
    1. Duration currentPosition
    )?,
  7. void onSeekEnd(
    1. Duration currentPosition
    )?,
  8. bool onSeekRequest(
    1. Duration targetPosition
    )?,
  9. VoidCallback? onFinished,
  10. VoidCallback? onReplay,
})

Creates a new set of callback hooks for OmniVideoPlayer and related widgets.

Implementation

const VideoPlayerCallbacks({
  this.onControllerCreated,
  this.onFullScreenToggled,
  this.onOverlayControlsVisibilityChanged,
  this.onCenterControlsVisibilityChanged,
  this.onMuteToggled,
  this.onSeekStart,
  this.onSeekEnd,
  this.onSeekRequest,
  this.onFinished,
  this.onReplay,
});