-
Notifications
You must be signed in to change notification settings - Fork 856
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Android] Audio not playing #1706
Comments
What audio are you playing? Can you state the source? Can you insert the logs plz? Thx :) |
@Gustl22 I run on example source https://github.com/bluefireteam/audioplayers/tree/main/packages/audioplayers/example |
I found some error logs may it help
|
Did you follow these steps: https://github.com/bluefireteam/audioplayers/blob/main/contributing.md#environment-setup ? Does it work on your emulator? I tried it right now and the source is playing without issues. I cannot reproduce it :/ |
@Gustl22 I had tested on 4 devices but this only happened on Oppo F1s (android 6) My flutter doctor
|
Thanks @docaohuynh, do these devices run all on Android 6? Maybe this can be solved via #1526. I don't think it's directly related to |
@Gustl22 Only Oppo F1s run Android 6 others Android 9, 12, 13. I don't have other device run on Android 6 to tested. waiting for ExoPlayer implement |
PlatformException(AndroidAudioError, MEDIA_ERROR_UNKNOWN {what:-38}, MEDIA_ERROR_UNKNOWN {extra:0}, null) Happening on Pixel 4a, Android 13 [✓] Flutter (Channel stable, 3.13.9, on macOS 13.5.2 22G91 darwin-arm64, locale en-IN) audioplayers: ^5.2.0 |
PlatformException(AndroidAudioError, MEDIA_ERROR_UNKNOWN {what:-38}, MEDIA_ERROR_UNKNOWN {extra:0}, null) Happening on audioplayers: ^5.2.0 |
I found the same issue. OS version: android12
|
Same problem |
any solutions ? |
The solution is probably #1691, but it takes a while for Flutter to review all the necessary PRs. |
Previously my code was like : After sometime it trigggered as it was just async await issue of url. Since, url sends some data to audioplayer to play at first solved code: |
@Gustl22 |
Checklist
Current bug behaviour
I run example code on actual device Oppo F1s (Android 6) but audio not playing
I try using another lib just_audio it working
Expected behaviour
Audio playing on Oppo F1s
Steps to reproduce
flutter run
on the example codeCode sample
Code sample
Affected platforms
Android
Platform details
Android 6 device Oppo F1s
AudioPlayers Version
latest
Build mode
release
Audio Files/URLs/Sources
No response
Screenshots
No response
Logs
Full Logs
Flutter doctor:
Related issues / more information
No response
Working on PR
no way
The text was updated successfully, but these errors were encountered: