Ensure there is an initial playback event and state
This commit is contained in:
parent
ad88e986f3
commit
67bcd13739
|
@ -87,7 +87,7 @@ packages:
|
||||||
path: ".."
|
path: ".."
|
||||||
relative: true
|
relative: true
|
||||||
source: path
|
source: path
|
||||||
version: "0.0.4"
|
version: "0.0.6"
|
||||||
matcher:
|
matcher:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
|
|
|
@ -61,7 +61,13 @@ class AudioPlayer {
|
||||||
|
|
||||||
final _durationSubject = BehaviorSubject<Duration>();
|
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;
|
Stream<AudioPlaybackEvent> _eventChannelStream;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue