VlcPlayer constructor

const VlcPlayer({
  1. required VlcPlayerController controller,
  2. required double aspectRatio,
  3. Widget? placeholder,
  4. bool virtualDisplay = true,
  5. 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,
});