PlayerState constructor
const
PlayerState({
- Playlist playlist = const Playlist([]),
- bool playing = false,
- bool completed = false,
- Duration position = Duration.zero,
- Duration duration = Duration.zero,
- double volume = 100.0,
- double rate = 1.0,
- double pitch = 1.0,
- bool buffering = false,
- Duration buffer = Duration.zero,
- PlaylistMode playlistMode = PlaylistMode.none,
- AudioParams audioParams = const AudioParams(),
- VideoParams videoParams = const VideoParams(),
- double? audioBitrate,
- AudioDevice audioDevice = const AudioDevice('auto', ''),
- List<
AudioDevice> audioDevices = const [AudioDevice('auto', '')], - Track track = const Track(),
- Tracks tracks = const Tracks(),
- int? width,
- int? height,
- List<
String> subtitle = const ['', ''],
PlayerState
Instantaneous state of the Player.
Implementation
const PlayerState({
this.playlist = const Playlist([]),
this.playing = false,
this.completed = false,
this.position = Duration.zero,
this.duration = Duration.zero,
this.volume = 100.0,
this.rate = 1.0,
this.pitch = 1.0,
this.buffering = false,
this.buffer = Duration.zero,
this.playlistMode = PlaylistMode.none,
this.audioParams = const AudioParams(),
this.videoParams = const VideoParams(),
this.audioBitrate,
this.audioDevice = const AudioDevice('auto', ''),
this.audioDevices = const [AudioDevice('auto', '')],
this.track = const Track(),
this.tracks = const Tracks(),
this.width,
this.height,
this.subtitle = const ['', ''],
});