PodVideoPlayer constructor

PodVideoPlayer({
  1. required PodPlayerController controller,
  2. Key? key,
  3. double frameAspectRatio = 16 / 9,
  4. double videoAspectRatio = 16 / 9,
  5. bool alwaysShowProgressBar = true,
  6. PodProgressBarConfig podProgressBarConfig = const PodProgressBarConfig(),
  7. PodPlayerLabels podPlayerLabels = const PodPlayerLabels(),
  8. Widget overlayBuilder(
    1. OverLayOptions options
    )?,
  9. Widget? videoTitle,
  10. bool matchVideoAspectRatioToFrame = false,
  11. bool matchFrameAspectRatioToVideo = false,
  12. Widget onVideoError()?,
  13. Color? backgroundColor,
  14. DecorationImage? videoThumbnail,
  15. Future<void> onToggleFullScreen(
    1. bool isFullScreen
    )?,
  16. 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();
}