Open japostoles opened 7 months ago
Adding 'pause=yes' to the options passed to mpv.load() fixes this issue, although I don't see an interface to manage that currently without modifying this library.
That's odd. I tried that (against the example) and it didn't work.
That's odd. I tried that (against the example) and it didn't work.
Meaning you tried the pause=yes and it didn't pause? Or that the example in the first post didn't autoplay?
Here's the tweak I made in mpv_player.dart:
await mpv.load((request.audioSourceMessage as UriAudioSourceMessage).uri, options: ['pause=yes']);
^^^^^^^^^^^^^^^^^^^^^^^^
I'm using mpv v0.35.1 on Debian 12.
It seems that audio playback immediately starts once setFilePath() is called on an AudioPlayer.
To reproduce:
The audio will begin playing immediately after the call to setFilePath.
(Similar issue: #11)