UVideoPlayer constructor
const
UVideoPlayer({
- required VideoPlayerSource source,
- Key? key,
- double? aspectRatio,
- bool autoPlay = false,
- bool looping = false,
- bool showControls = true,
- bool allowFullScreen = true,
- bool allowPlaybackSpeedChanging = true,
- EdgeInsets controlsSafeArea = EdgeInsets.zero,
- void onError(
- dynamic
- Widget? loadingIndicator,
- Widget? errorIndicator,
- bool showLoading = true,
- BoxConstraints? constraints,
- EdgeInsets padding = EdgeInsets.zero,
- ChewieController? controller,
- Widget? customControls,
- Widget? placeholder,
- Widget? overlay,
Implementation
const UVideoPlayer({
required this.source,
super.key,
this.aspectRatio,
this.autoPlay = false,
this.looping = false,
this.showControls = true,
this.allowFullScreen = true,
this.allowPlaybackSpeedChanging = true,
this.controlsSafeArea = EdgeInsets.zero,
this.onError,
this.loadingIndicator,
this.errorIndicator,
this.showLoading = true,
this.constraints,
this.padding = EdgeInsets.zero,
this.controller,
this.customControls,
this.placeholder,
this.overlay,
});