AVVideoPlayer.live constructor

const AVVideoPlayer.live(
  1. AVPlayerController controller, {
  2. Key? key,
  3. String? title,
  4. VoidCallback? onFullscreen,
  5. Widget controlsBuilder(
    1. BuildContext context,
    2. AVPlayerController controller
    )?,
  6. 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;