VlcPlayer constructor
const
VlcPlayer({
- required VlcPlayerController controller,
- required double aspectRatio,
- Widget? placeholder,
- bool virtualDisplay = true,
- Key? key,
Implementation
const VlcPlayer({
/// The [VlcPlayerController] responsible for the video being rendered in
/// this widget.
required this.controller,
/// The aspect ratio used to display the video.
/// This MUST be provided, however it could simply be (parentWidth / parentHeight) - where parentWidth and
/// parentHeight are the width and height of the parent perhaps as defined by a LayoutBuilder.
required this.aspectRatio,
/// Before the platform view has initialized, this placeholder will be rendered instead of the video player.
/// This can simply be a [CircularProgressIndicator] (see the example.)
this.placeholder,
/// Specify whether Virtual displays or Hybrid composition is used on Android.
/// iOS only uses Hybrid composition.
this.virtualDisplay = true,
super.key,
});