VideoViewer constructor
const
VideoViewer({
- Key? key,
- required Map<
String, VideoSource> source, - VideoViewerStyle? style,
- VideoViewerController? controller,
- bool looping = false,
- bool autoPlay = false,
- double defaultAspectRatio = 16 / 9,
- int rewindAmount = -10,
- int forwardAmount = 10,
- bool onFullscreenFixLandscape = true,
- VideoViewerLanguage language = VideoViewerLanguage.en,
- VideoViewerVolumeManager volumeManager = VideoViewerVolumeManager.video,
- bool enableFullscreenScale = true,
- bool enableVerticalSwapingGesture = true,
- bool enableHorizontalSwapingGesture = true,
- bool enableShowReplayIconAtVideoEnd = true,
- bool enableChat = false,
Implementation
const VideoViewer({
Key? key,
required this.source,
this.style,
this.controller,
this.looping = false,
this.autoPlay = false,
this.defaultAspectRatio = 16 / 9,
this.rewindAmount = -10,
this.forwardAmount = 10,
this.onFullscreenFixLandscape = true,
this.language = VideoViewerLanguage.en,
this.volumeManager = VideoViewerVolumeManager.video,
this.enableFullscreenScale = true,
this.enableVerticalSwapingGesture = true,
this.enableHorizontalSwapingGesture = true,
this.enableShowReplayIconAtVideoEnd = true,
this.enableChat = false,
}) : super(key: key);