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

Can't get Stream to work. "Codec does not support config" #194

Closed
renanmgs opened this issue Feb 24, 2020 · 9 comments
Closed

Can't get Stream to work. "Codec does not support config" #194

renanmgs opened this issue Feb 24, 2020 · 9 comments
Assignees

Comments

@renanmgs
Copy link

Describe the bug
I'm trying to set a stream of a radio to work. Everything seems correct but i'm getting an error.

My code:
image

Error messages

I/flutter (10362): https://stream.live.novotempo.com/radio/smil:radionovotempo.smil/playlist.m3u8
I/OMXClient(10362): IOmx service obtained
I/ACodec  (10362): codec does not support config priority (err -2147483648)
D/FlutterEngine(10362): Destroying.
D/FlutterEnginePluginRegistry(10362): Destroying.
W/FlutterJNI(10362): Tried to send a platform message response, but FlutterJNI was detached from native C++. Could not send. Response ID: 8

Runtime Environment (please complete the following information if relevant):

  • Device: [Pixel 2 API 29 (android-x86 emulator)]

Flutter SDK version

[√] Flutter (Channel stable, v1.12.13+hotfix.8, on Microsoft Windows [Version 10.0.18362.657], locale en-US)
 
[√] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
[√] Android Studio (version 3.5)
[√] VS Code (version 1.42.1)
[√] Connected device (1 available)

• No issues found!

Additional context
Im loading the radios list from a json and using .then() to set the value for further use.

@ryanheise ryanheise self-assigned this Feb 25, 2020
@ryanheise
Copy link
Owner

The audio_service plugin doesn't do anything related to "codecs" so you must be getting that error from a different plugin.

@renanmgs
Copy link
Author

I don't know if i'm doing something wrong. I am using audio_service and just_audio only.

@ryanheise
Copy link
Owner

Then it must be just_audio (audio_service doesn't use a codec to decode audio because audio_service doesn't play audio. just_audio does.)

@renanmgs
Copy link
Author

When i used ´just_audio´ alone it worked perfectly.

@renanmgs
Copy link
Author

renanmgs commented Feb 25, 2020

I commented everything inside onStart.
Getting this error:

D/EGL_emulation(11903): eglCreateContext: 0xebb56840: maj 3 min 0 rcv 3
D/HostConnection(11903): HostConnection::get() New Host Connection established 0xe1866a50, tid 12008
D/HostConnection(11903): HostComposition ext ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_native_sync_v2 ANDROID_EMU_native_sync_v3 ANDROID_EMU_native_sync_v4 ANDROID_EMU_dma_v1 ANDROID_EMU_direct_mem ANDROID_EMU_host_composition_v1 ANDROID_EMU_host_composition_v2 ANDROID_EMU_vulkan ANDROID_EMU_deferred_vulkan_commands ANDROID_EMU_vulkan_null_optional_strings ANDROID_EMU_vulkan_create_resources_with_requirements ANDROID_EMU_YUV420_888_to_NV21 ANDROID_EMU_YUV_Cache ANDROID_EMU_async_unmap_buffer GL_OES_EGL_image_external_essl3 GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_gles_max_version_3_0
D/EGL_emulation(11903): eglMakeCurrent: 0xebb56840: ver 3 0 (tinfo 0xc2106710)
I/flutter (11903): chamou audioPlayerTaskEntrypoint
D/FlutterEngine(11903): Destroying.
D/FlutterEnginePluginRegistry(11903): Destroying.
W/FlutterJNI(11903): Tried to send a platform message response, but FlutterJNI was detached from native C++. Could not send. Response ID: 2```

@ryanheise
Copy link
Owner

It's still not caused by audio_service. The error relates to just_audio. Please post the issue on that project page, although please search for the error message on stackoverflow first.

@renanmgs
Copy link
Author

renanmgs commented Feb 26, 2020 via email

@ryanheise
Copy link
Owner

@renanmgs This plugin doesn't have any codec code in it, so I will not be spending any time trying to fix a codec error, but if you strongly disagree with me, I would welcome you to find the bug and submit a PR. However, I believe you will have more luck looking at the code that plays audio since the codec is needed for that. My recommendation stands that you should search for the error message online, e.g. on Stackoverflow, and if that provides you no insights about how to avoid the error in your own code, look at filing an issue with just_audio.

@github-actions
Copy link

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 audio_service.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 22, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants