VideoPlayerValue constructor
VideoPlayerValue({
- required DurationRange duration,
- Size size = Size.zero,
- Duration position = Duration.zero,
- List<
Track> tracks = const <Track>[], - int buffered = 0,
- bool isInitialized = false,
- bool isPlaying = false,
- bool isLooping = false,
- bool isBuffering = false,
- double volume = 1.0,
- double playbackSpeed = 1.0,
- String? errorDescription,
Constructs a video with the given values. Only duration
is required. The
rest will initialize with default values when unset.
Implementation
VideoPlayerValue({
required this.duration,
this.size = Size.zero,
this.position = Duration.zero,
this.caption = Caption.none,
this.captionOffset = Duration.zero,
this.tracks = const <Track>[],
this.buffered = 0,
this.isInitialized = false,
this.isPlaying = false,
this.isLooping = false,
this.isBuffering = false,
this.volume = 1.0,
this.playbackSpeed = 1.0,
this.errorDescription,
});