ryanheise / just_audio

Audio Player
1.05k stars 676 forks source link

Error during file preparation on Android 6 when playing MP3 files #1260

Closed javad-kh closed 5 months ago

javad-kh commented 5 months ago

Which API doesn't behave as documented, and how does it misbehave? The player.setAudioSource function is not working as expected and prints the following errors on the console in Android 6 and emulators:

W/VideoCapabilities(19001): Unrecognized profile/level 0/0 for video/mpeg2 W/VideoCapabilities(19001): Unrecognized profile/level 0/2 for video/mpeg2 W/VideoCapabilities(19001): Unrecognized profile/level 0/3 for video/mpeg2 I/VideoCapabilities(19001): Unsupported profile 4 for video/mp4v-es I/OMXClient(19001): Using client-side OMX mux. E/OMXNodeInstance(19001): setConfig(1:google.mp3.decoder, ConfigPriority(0x6f800002)) ERROR: Undefined(0x80001001) I/ACodec (19001): codec does not support config priority (err -2147483648)

Despite these errors, there is no problem with audio playback.

Minimal reproduction project

To Reproduce (i.e. user steps, not code)

Error messages

E/OMXNodeInstance(19001): setConfig(1:google.mp3.decoder, ConfigPriority(0x6f800002)) ERROR: Undefined(0x80001001)

Expected behavior

Screenshots

Desktop (please complete the following information):

Smartphone (please complete the following information): -Device: Android 6 emulator -OS: Android 6

Flutter SDK version

[√] Flutter (Channel stable, 3.19.6, on Microsoft Windows [Version 10.0.19045.4412], locale en-US)
[√] Windows Version (Installed version of Windows is version 10 or higher)
[√] Android toolchain - develop for Android devices (Android SDK version 33.0.1)
[√] Chrome - develop for the web                         
[X] Visual Studio - develop Windows apps
  X Visual Studio not installed; this is necessary to develop Windows apps.
   Download at https://visualstudio.microsoft.com/downloads/.
   Please install the "Desktop development with C++" workload, including all of its default components
[√] Android Studio (version 2022.1)
[√] Connected device (3 available)
[√] Network resources

! Doctor found issues in 1 category.

Additional context

ryanheise commented 5 months ago

You skipped over the two most important sections of the bug report.

javad-kh commented 5 months ago

You skipped over the two most important sections of the bug report.

Tell me the two important sections so I can add them. Thank you

ryanheise commented 5 months ago

I'm going to close this issue. If you do open a new issue, maybe you will read the instructions carefully, and then you'll know not to skip anything that it asks you to do. I don't have the bandwidth to explain what I already explained in the instructions.

github-actions[bot] commented 4 months ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs, or use StackOverflow if you need help with just_audio.