UMediaValue constructor
const
UMediaValue({
- UMediaState state = UMediaState.idle,
- Duration position = Duration.zero,
- Duration duration = Duration.zero,
- Duration bufferedPosition = Duration.zero,
- List<
UBufferedRange> buffered = const <UBufferedRange>[], - bool isLive = false,
- Duration liveOffset = Duration.zero,
- double speed = 1,
- double volume = 1,
- bool muted = false,
- int width = 0,
- int height = 0,
- int rotationDegrees = 0,
- List<
UMediaTrack> tracks = const <UMediaTrack>[], - int currentIndex = 0,
- int queueLength = 0,
- bool shuffle = false,
- URepeatMode repeat = URepeatMode.off,
- UPipState pip = UPipState.unavailable,
- UMediaMetadata? metadata,
- UMediaError? error,
Implementation
const UMediaValue({
this.state = UMediaState.idle,
this.position = Duration.zero,
this.duration = Duration.zero,
this.bufferedPosition = Duration.zero,
this.buffered = const <UBufferedRange>[],
this.isLive = false,
this.liveOffset = Duration.zero,
this.speed = 1,
this.volume = 1,
this.muted = false,
this.width = 0,
this.height = 0,
this.rotationDegrees = 0,
this.tracks = const <UMediaTrack>[],
this.currentIndex = 0,
this.queueLength = 0,
this.shuffle = false,
this.repeat = URepeatMode.off,
this.pip = UPipState.unavailable,
this.metadata,
this.error,
});