AVVideoPlayer.live constructor
const
AVVideoPlayer.live(
- AVPlayerController controller, {
- Key? key,
- String? title,
- VoidCallback? onFullscreen,
- Widget controlsBuilder(
- BuildContext context,
- AVPlayerController controller
- AVControlsConfig? controlsConfig,
Live stream preset — no seek bar, no skip, live indicator style.
Disables all seek-related controls and gestures since live streams cannot be seeked.
AVVideoPlayer.live(controller, title: 'Live Stream')
Implementation
const AVVideoPlayer.live(
this.controller, {
super.key,
this.title,
this.onFullscreen,
this.controlsBuilder,
AVControlsConfig? controlsConfig,
}) : showControls = true,
controlsConfig = controlsConfig ??
const AVControlsConfig(
showSkipButtons: false,
showPipButton: true,
showSpeedButton: false,
showFullscreenButton: true,
showLoopButton: false,
),
gestureConfig = null,
onNext = null,
onPrevious = null;