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

AndroidAudioError, MEDIA_ERROR_UNKNOWN {what:-38}, MEDIA_ERROR_UNKNOWN {extra:0}, null) ERROR #1864

Open
2 tasks done
Sameetdmr opened this issue Dec 19, 2024 · 2 comments
Open
2 tasks done
Labels

Comments

@Sameetdmr
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

Fatal Exception: io.flutter.plugins.firebase.crashlytics.FlutterError: PlatformException(AndroidAudioError, MEDIA_ERROR_UNKNOWN {what:-38}, MEDIA_ERROR_UNKNOWN {extra:0}, null)

Expected behaviour

Expected Behaviour
The application should handle audio playback without any crashes or errors, regardless of the audio source or format. Specifically:

No PlatformException or MEDIA_ERROR_UNKNOWN errors should occur.
The audio should play smoothly or provide a clear, recoverable error message in case of an unsupported format.
Crashlytics should not log any fatal exceptions related to audio playback.
This behavior is expected across all supported platforms, especially Android devices.

Steps to reproduce

No response

Code sample

No response

Affected platforms

Android

Platform details

Android 8.1.0

AudioPlayers Version

audioplayers: ^5.2.1

Build mode

release

Audio Files/URLs/Sources

No response

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

@Sameetdmr Sameetdmr added the bug label Dec 19, 2024
@silaakarapur
Copy link

+1

@utkudenis
Copy link

MEDIA_ERROR_UNKNOWN {extra:0} on the sentry

package version 6.1.0 Flutter 3.24.5

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

iOS: PlatformException(DarwinAudioError, Failed to set source. For troubleshooting, see https://github.com/bluefireteam/audioplayers/blob/main/troubleshooting.md, AVPlayerItem.Status.failed on setSourceUrl: Unknown error, null)

device variety : iphone 11 to iphone 15 all versions and android devices both samsung and xiaomi

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

3 participants