VlcPlayerValue constructor
VlcPlayerValue({
- required Duration duration,
- Size size = Size.zero,
- Duration position = Duration.zero,
- PlayingState playingState = PlayingState.initializing,
- bool isInitialized = false,
- bool isPlaying = false,
- bool isLooping = false,
- bool isBuffering = false,
- bool isEnded = false,
- bool isRecording = false,
- double bufferPercent = 0.0,
- int volume = 100,
- double playbackSpeed = 1.0,
- double videoScale = 1.0,
- int audioTracksCount = 1,
- int activeAudioTrack = 1,
- int audioDelay = 0,
- int spuTracksCount = 0,
- int activeSpuTrack = -1,
- int spuDelay = 0,
- int videoTracksCount = 1,
- int activeVideoTrack = 0,
- String recordPath = '',
- 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,
});