Video constructor

const Video({
  1. Key? key,
  2. bool autoPlay = false,
  3. bool loop = false,
  4. bool showControls = true,
  5. String? url,
  6. String? title = "",
  7. String? subtitle = "",
  8. String? preferredAudioLanguage = "mul",
  9. String? preferredTextLanguage = "",
  10. bool isLiveStream = false,
  11. double position = -1,
  12. Function? onViewCreated,
  13. PlayerState desiredState = PlayerState.PLAYING,
  14. 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);