Ensure there is an initial playback event and state
This commit is contained in:
parent
ad88e986f3
commit
67bcd13739
|
@ -87,7 +87,7 @@ packages:
|
|||
path: ".."
|
||||
relative: true
|
||||
source: path
|
||||
version: "0.0.4"
|
||||
version: "0.0.6"
|
||||
matcher:
|
||||
dependency: transitive
|
||||
description:
|
||||
|
|
|
@ -61,7 +61,13 @@ class AudioPlayer {
|
|||
|
||||
final _durationSubject = BehaviorSubject<Duration>();
|
||||
|
||||
AudioPlaybackEvent _audioPlaybackEvent;
|
||||
// TODO: also broadcast this event on instantiation.
|
||||
AudioPlaybackEvent _audioPlaybackEvent = AudioPlaybackEvent(
|
||||
state: AudioPlaybackState.none,
|
||||
updatePosition: Duration.zero,
|
||||
updateTime: Duration.zero,
|
||||
speed: 1.0,
|
||||
);
|
||||
|
||||
Stream<AudioPlaybackEvent> _eventChannelStream;
|
||||
|
||||
|
|
Loading…
Reference in New Issue