Video constructor
const
Video({
- Key? key,
- bool autoPlay = false,
- bool loop = false,
- bool showControls = true,
- String? url,
- String? title = "",
- String? subtitle = "",
- String? preferredAudioLanguage = "mul",
- String? preferredTextLanguage = "",
- bool isLiveStream = false,
- double position = -1,
- Function? onViewCreated,
- PlayerState desiredState = PlayerState.PLAYING,
- List<
TextTrack> ? textTracks,
Implementation
const Video(
{Key? key,
this.autoPlay = false,
this.loop = false,
this.showControls = true,
this.url,
this.title = "",
this.subtitle = "",
this.preferredAudioLanguage = "mul",
this.preferredTextLanguage = "",
this.isLiveStream = false,
this.position = -1,
this.onViewCreated,
this.desiredState = PlayerState.PLAYING,
this.textTracks})
: super(key: key);