VideoPlayer constructor
const
VideoPlayer(
- String url, {
- required double aspectRatio,
- bool autoResize = true,
- bool autoplay = false,
- bool controls = false,
- Widget errorBuilder(
- BuildContext context,
- String url,
- dynamic error
- Key? key,
- Widget loadingBuilder(
- BuildContext context,
- String url,
- Widget child
- bool loop = false,
- Widget? poster,
Creates a player.
Implementation
const VideoPlayer(
this.url, {
required this.aspectRatio,
this.autoResize = true,
this.autoplay = false,
this.controls = false,
this.errorBuilder,
super.key,
this.loadingBuilder,
this.loop = false,
this.poster,
});