bleonard252 / just_audio_mpv

MIT License
5 stars 3 forks source link

Does not work inside of snap #3

Open krille-chan opened 1 year ago

krille-chan commented 1 year ago

Which API doesn't behave as documented, and how does it misbehave? audioPlayer.play() does nothing, does not throw an exception or writing something to the logs. It works fine on Linux itself but inside of snap it does not work. I have added mpv to the stage packages and added the audio-interface from snap.

Minimal reproduction project https://github.com/krillefear/fluffychat-snap

To Reproduce (i.e. user steps, not code) Build app with snap

Error messages

None

Expected behavior It works

Screenshots

Desktop (please complete the following information):

Flutter SDK version

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.3.10, on Debian GNU/Linux bookworm/sid 5.19.0-26-generic, locale en_US.UTF-8)
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.1)
[✗] Chrome - develop for the web (Cannot find Chrome executable at /snap/bin/chromium)
    ! /snap/bin/chromium is not executable.
[✓] Linux toolchain - develop for Linux desktop
[✓] Android Studio (version 2021.1)
[✓] VS Code (version 1.74.2)
[✓] Connected device (1 available)
[✓] HTTP Host Availability

! Doctor found issues in 1 category.

Additional context

bleonard252 commented 1 year ago

It's very strange that nothing is logged. It should be putting [just_audio_mpv] lines into console when anything is loaded and when playback should start, even if it fails. I'm going to try to reproduce this against the just_audio example application.

krille-chan commented 1 year ago

I've now also tested it with a bytes stream AudioSource so it does not store the audio in a file first. Also does not play :-/

bleonard252 commented 1 year ago

I've now also tested it with a bytes stream AudioSource

I do know this isn't supported, and probably won't be, since MPV itself doesn't support it.

I haven't gotten around to testing it since I'm on an odd system where snapd can't be installed. Just to double-check:

Considering the init function will either throw an error or log a success message, if all of the above are true and there are no messages or errors at all, then the plugin isn't being invoked.