VideoPlayerCallbacks constructor
const
VideoPlayerCallbacks({
- void onControllerCreated(
- OmniPlaybackController controller
- void onFullScreenToggled(
- bool isGoingFullScreen
- void onOverlayControlsVisibilityChanged(
- bool areVisible
- void onCenterControlsVisibilityChanged(
- bool areVisible
- void onMuteToggled(
- bool isMute
- void onSeekStart(
- Duration currentPosition
- void onSeekEnd(
- Duration currentPosition
- bool onSeekRequest(
- Duration targetPosition
- VoidCallback? onFinished,
- 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,
});