VlcPlayer constructor

VlcPlayer({
  1. Key? key,
  2. required VlcPlayerController controller,
  3. required double aspectRatio,
  4. Widget? placeholder,
})

Implementation

VlcPlayer({
  Key? key,

  /// 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,
}) : super(key: key);