PlayerStream class

PlayerStream

Event Streams for subscribing to Player events.

Constructors

PlayerStream(Stream<Playlist> playlist, Stream<bool> playing, Stream<bool> completed, Stream<Duration> position, Stream<Duration> duration, Stream<double> volume, Stream<double> rate, Stream<double> pitch, Stream<bool> buffering, Stream<Duration> buffer, Stream<PlaylistMode> playlistMode, Stream<AudioParams> audioParams, Stream<VideoParams> videoParams, Stream<double?> audioBitrate, Stream<AudioDevice> audioDevice, Stream<List<AudioDevice>> audioDevices, Stream<Track> track, Stream<Tracks> tracks, Stream<int?> width, Stream<int?> height, Stream<List<String>> subtitle, Stream<PlayerLog> log, Stream<String> error)
PlayerStream
const

Properties

audioBitrate Stream<double?>
Audio bitrate of the currently playing Media.
final
audioDevice Stream<AudioDevice>
Currently selected AudioDevices.
final
audioDevices Stream<List<AudioDevice>>
Currently available AudioDevices.
final
audioParams Stream<AudioParams>
Audio parameters of the currently playing Media. e.g. sample rate, channels, etc.
final
buffer Stream<Duration>
Current buffer position. This indicates how much of the stream has been decoded & cached by the demuxer.
final
buffering Stream<bool>
Whether buffering or not.
final
completed Stream<bool>
Whether end of currently playing Media has been reached.
final
duration Stream<Duration>
Current playback duration.
final
error Stream<String>
Stream emitting error messages. This may be used to handle & display errors to the user.
final
hashCode int
The hash code for this object.
no setterinherited
height Stream<int?>
Currently playing video's height.
final
log Stream<PlayerLog>
Stream emitting internal logs.
final
pitch Stream<double>
Current pitch.
final
playing Stream<bool>
Whether playing or not.
final
playlist Stream<Playlist>
Currently opened Medias.
final
playlistMode Stream<PlaylistMode>
Current playlist mode.
final
position Stream<Duration>
Current playback position.
final
rate Stream<double>
Current playback rate.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
subtitle Stream<List<String>>
Currently displayed subtitle.
final
track Stream<Track>
Currently selected video, audio and subtitle track.
final
tracks Stream<Tracks>
Currently available video, audio and subtitle tracks.
final
videoParams Stream<VideoParams>
Video parameters of the currently playing Media. e.g. width, height, rotation etc.
final
volume Stream<double>
Current volume.
final
width Stream<int?>
Currently playing video's width.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited