VlcPlayerValue constructor

VlcPlayerValue({
  1. required Duration duration,
  2. Size size = Size.zero,
  3. Duration position = Duration.zero,
  4. PlayingState playingState = PlayingState.initializing,
  5. bool isInitialized = false,
  6. bool isPlaying = false,
  7. bool isLooping = false,
  8. bool isBuffering = false,
  9. bool isEnded = false,
  10. bool isRecording = false,
  11. double bufferPercent = 0.0,
  12. int volume = 100,
  13. double playbackSpeed = 1.0,
  14. double videoScale = 1.0,
  15. int audioTracksCount = 1,
  16. int activeAudioTrack = 1,
  17. int audioDelay = 0,
  18. int spuTracksCount = 0,
  19. int activeSpuTrack = -1,
  20. int spuDelay = 0,
  21. int videoTracksCount = 1,
  22. int activeVideoTrack = 0,
  23. String recordPath = '',
  24. String errorDescription = VlcPlayerValue.noError,
})

Constructs a video with the given values. Only duration is required. The rest will initialize with default values when unset.

Implementation

VlcPlayerValue({
  required this.duration,
  this.size = Size.zero,
  this.position = Duration.zero,
  this.playingState = PlayingState.initializing,
  this.isInitialized = false,
  this.isPlaying = false,
  this.isLooping = false,
  this.isBuffering = false,
  this.isEnded = false,
  this.isRecording = false,
  this.bufferPercent = 0.0,
  this.volume = 100,
  this.playbackSpeed = 1.0,
  this.videoScale = 1.0,
  this.audioTracksCount = 1,
  this.activeAudioTrack = 1,
  this.audioDelay = 0,
  this.spuTracksCount = 0,
  this.activeSpuTrack = -1,
  this.spuDelay = 0,
  this.videoTracksCount = 1,
  this.activeVideoTrack = 0,
  this.recordPath = '',
  this.errorDescription = VlcPlayerValue.noError,
});