PodVideoPlayer constructor
PodVideoPlayer({
- required PodPlayerController controller,
- Key? key,
- double frameAspectRatio = 16 / 9,
- double videoAspectRatio = 16 / 9,
- bool alwaysShowProgressBar = true,
- PodProgressBarConfig podProgressBarConfig = const PodProgressBarConfig(),
- PodPlayerLabels podPlayerLabels = const PodPlayerLabels(),
- Widget overlayBuilder(
- OverLayOptions options
- Widget? videoTitle,
- bool matchVideoAspectRatioToFrame = false,
- bool matchFrameAspectRatioToVideo = false,
- Widget onVideoError()?,
- Color? backgroundColor,
- DecorationImage? videoThumbnail,
- Future<
void> onToggleFullScreen(- bool isFullScreen
- WidgetBuilder? onLoading,
Implementation
PodVideoPlayer({
required this.controller,
super.key,
this.frameAspectRatio = 16 / 9,
this.videoAspectRatio = 16 / 9,
this.alwaysShowProgressBar = true,
this.podProgressBarConfig = const PodProgressBarConfig(),
this.podPlayerLabels = const PodPlayerLabels(),
this.overlayBuilder,
this.videoTitle,
this.matchVideoAspectRatioToFrame = false,
this.matchFrameAspectRatioToVideo = false,
this.onVideoError,
this.backgroundColor,
this.videoThumbnail,
this.onToggleFullScreen,
this.onLoading,
}) {
addToUiController();
}