Closed a-v-ebrahimi closed 2 years ago
You didn't describe any documented behaviour under "Documented Behaviour". You gave a false minimal reproduction project because main.dart
doesn't have any UI to switch to another view so it is impossible for this unmodified example to reproduce your issue. You also listed coding instructions under "Reproduction steps" when the instructions for bug submission said that these should be user steps, not code. The most important problem is that I wasted 5 minutes on this improper bug report (and given that my physical limitations mean I can't sit at a computer for longer than 5 minutes, it has taken some pretty valuable time away from me).
Closing as an invalid issue (and probably not a bug, probably a misuse of the plugin.)
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs, or use StackOverflow if you need help with audio_service.
Documented behaviour
_audioHandler.playbackState.listen((p) { D("Audio playback speed ${p.speed}"); });
Actual behaviour
I set speed to 1.2 in a view, then I switched to another view and started listening to playbackState, although playback speed is heard fast (1.2), but the listener returns p.speed as 1.0
Minimal reproduction project
Official example: main.dart
Reproduction steps
Set playback speed to something, then create a listener some where else
Output of flutter doctor
Devices exhibiting the bug
Android and Windows