Skip to content
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

PlatformException(AndroidAudioError, MEDIA_ERROR_UNKNOWN {what:-38}, MEDIA_ERROR_UNKNOWN {extra:0}, null) #1764

Open
2 tasks done
md-rifatkhan opened this issue Mar 3, 2024 · 4 comments
Labels

Comments

@md-rifatkhan
Copy link

Checklist

  • I read the troubleshooting guide before raising this issue
  • I made sure that the issue I am raising doesn't already exist

Current bug behaviour

Sometime audio dont play and show [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: PlatformException(AndroidAudioError, MEDIA_ERROR_UNKNOWN {what:-38}, MEDIA_ERROR_UNKNOWN {extra:0}, null)

Expected behaviour

Audio should be played,

Steps to reproduce

I/flutter ( 7587): AudioPlayers Exception: AudioPlayerException(
I/flutter ( 7587): UrlSource(url: https://everyayah.com/data/Alafasy_128kbps/002003.mp3),
I/flutter ( 7587): PlatformException(AndroidAudioError, MEDIA_ERROR_UNKNOWN {what:-38}, MEDIA_ERROR_UNKNOWN {extra:0}, null)
E/flutter ( 7587): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: PlatformException(AndroidAudioError, MEDIA_ERROR_UNKNOWN {what:-38}, MEDIA_ERROR_UNKNOWN {extra:0}, null)
E/flutter ( 7587):
I/chatty ( 7587): uid=10807(com.nury.safaa) 1.ui identical 4 lines
E/flutter ( 7587): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: PlatformException(AndroidAudioError, MEDIA_ERROR_UNKNOWN {what:-38}, MEDIA_ERROR_UNKNOWN {extra:0}, null)
E/flutter ( 7587):

Code sample

Code sample
void main() {
}

Affected platforms

Android

Platform details

Android 11

AudioPlayers Version

^5.2.1

Build mode

debug

Audio Files/URLs/Sources

https://everyayah.com/data/Alafasy_128kbps/002003.mp3

Screenshots

No response

Logs

my relevant logs
Full Logs
my full logs or a link to a gist

Flutter doctor:

Output of: flutter doctor -v

Related issues / more information

No response

Working on PR

no way

@JoanIvars
Copy link

This error also happens to me between android versions 8 (API 26) and 9 (API 28). I don't know if it also affects previous versions of Android 8.

@md-rifatkhan
Copy link
Author

This error also happens to me between android versions 8 (API 26) and 9 (API 28). I don't know if it also affects previous versions of Android 8.

Thats why i moved to justaudio, i tried With Android 11,12 and same problem

@erperejildo
Copy link

any fix?

@uwu-420
Copy link

uwu-420 commented May 9, 2024

I have the same issue with ^6.0.0 and Android 9. Although I get this error when calling audioPlayer.pause().

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants