AVVideoPlayer.video constructor
const
AVVideoPlayer.video(
- AVPlayerController controller, {
- Key? key,
- String? title,
- VoidCallback? onFullscreen,
- VoidCallback? onNext,
- VoidCallback? onPrevious,
- Widget controlsBuilder(
- BuildContext context,
- AVPlayerController controller
- AVControlsConfig? controlsConfig,
- AVGestureConfig? gestureConfig,
Full video player preset — all controls, gestures, and PIP enabled.
AVVideoPlayer.video(controller, title: 'My Video')
Implementation
const AVVideoPlayer.video(
this.controller, {
super.key,
this.title,
this.onFullscreen,
this.onNext,
this.onPrevious,
this.controlsBuilder,
AVControlsConfig? controlsConfig,
AVGestureConfig? gestureConfig,
}) : showControls = true,
controlsConfig = controlsConfig ??
const AVControlsConfig(
showSkipButtons: true,
showPipButton: true,
showSpeedButton: true,
showFullscreenButton: true,
showLoopButton: true,
),
gestureConfig = gestureConfig ??
const AVGestureConfig(
doubleTapToSeek: true,
longPressSpeed: true,
swipeToVolume: true,
swipeToBrightness: true,
);