-
Notifications
You must be signed in to change notification settings - Fork 9
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
Bug with android 6.0 #7
Comments
I'm also seeing this issue |
This is because the lib/arm/libaacdecoder.so: has text relocations It's fixed for the aacdecoder I will try to compile and use the newly compiled aacdecoder lib .so's for this module. |
I compiled the accdecoder and included it in the 1.7.1 version of the module. INFO] Decoder: start() starting native decoder - OpenCORE-MP3 Alternatively I found this thread: vbartacek/aacdecoder-android#76 I updated the libs in the 1.7.1 version of Trevor's module. Everything works now! |
@karaoak Hi Frank, awesome work! Di you have merged this: 9331c4f ? ==>> what I have to do with this android.zip? PS last week I was in Amsterdam @TitaniumMeetup. Did we meet us? |
@AppWerft Hi Rainer, yes we've seen each other. At least I noticed you as our German guest, already for the second time! I do not have any issues with a slow performance with this module. |
@karaok: what is with missing 'libaacdecoder.so'? How can I compile myself (with this patch)? |
@AppWerft You don't need to recompile, just copy over the the files from the linked android.zip to the correct module folders. Or use below zip of the module I use (1.7.1 + updated aacdecoder libs). |
Oh, it works! Thanks add 1 point to @karaoak . |
Ah, okay, then we have to recompile. |
Unfortunately I got the following exception: INFO] Decoder: start() starting native decoder - OpenCORE-MP3 [INFO] art: art/runtime/thread.cc:1336] No pending exception expected: java.lang.NoSuchMethodError: no non-static method "Lcom/spoledge/aacdecoder/Decoder$Info;.next()Lcom/spoledge/aacdecoder/BufferReader$Buffer;" [INFO] art: art/runtime/thread.cc:1336] at int com.spoledge.aacdecoder.Decoder.nativeStart(int, com.spoledge.aacdecoder.BufferReader, com.spoledge.aacdecoder.Decoder$Info) (Decoder.java:-2) Alternatively I found this thread: vbartacek/aacdecoder-android#76 With a link to a android.zip with new compiled accdecoder libs fixing text relocations issues, preventing the lib to run on Android 6.0 Marshmellow. I updated the libs in the 1.7.1 version of Trevor's module. Everything works now!
Now it seems to work, I will check. In my radio I observe the network connectivity and try automaticly to reconnect. I have still the issue with slowdown. It is crazy! It only happens if I start the audiostreamer in my app. It also happens if I comment out all action depending of 'change' and 'metadata' event. |
I compiled a new version (1.7.3) compiled with Ti SDK 5.2.0.v20160216073819 / Android API 23 / NDK r10e / Google API 23. You can download it as a zip: com.woohoo.androidaudiostreamer-android-1.7.3.zip |
@karaoak Hello,I tried your module version 1.7.3 but it still does the log here. Thank !
|
@karaoak Your module (1.7.1 + updated aacdecoder libs) it's Good Thank !!!! |
@karaoak Hi Frank, I have still the problem with frozen UI. If I never start the audiostreamer then the app run forever. If I start the streamer then after a couple of minutes the UI becomes tough and gets slower. The radio runs without problems. The system (bottom navigationbar) works without problems. Any ideas where I can looking for? I have comment out all streamer listeners -- no success. |
@AppWerft Hi Rainer, what do you use as your android:targetSdkVersion? |
@karaoak I'm using version 23. At weekend I built a javascript wrapper to control the module. All problems keep inside, only 3 functions: https://github.com/AppWerft/DLRmediathek/blob/master/Resources/controls/audiostreamer.adapter.js With this module it works very well. Last problem: if the smartphone goes offline and the net comes back we cannot restart. I think this snippet https://github.com/trevorf/ti-android-streamer/blob/master/src/com/woohoo/androidaudiostreamer/AndroidaudiostreamerModule.java#L124-L127 is evil. Only onCreate the code is running and after net interruption the streamhandler is broken. The command play() is without effect and never comes an event. Ideas? |
I already had similar code like your adapter code in my apps. I do not experience the 'last problem' you describe. (not yet, that is... :~) |
Maybe you are solved the issue. My observation:
It is impossible to restart. |
Now I found a solution. |
Do you have a patch submitted for this yet? I think i've seen a lot of Lindsay C. Blanton III On Mon, Feb 22, 2016 at 9:38 AM, Rainer Schleevoigt <
|
@blantonl I wrote a wrapper. This module handles the issue. Here is it: https://github.com/AppWerft/DLRmediathek/blob/master/Resources/controls/audiostreamer.adapter.js#L73-L77 next time I will send a PR. This could avoid JS stuff to fix it. |
Now I see an issue with charsets. Partly senders use LATIN1 instead UTF8. This part https://github.com/vbartacek/aacdecoder-android/blob/master/decoder/src/com/spoledge/aacdecoder/IcyInputStream.java#L98-L112 allowes to set a second parameter (charset). |
I solved the issue with charset. Here the new code:
Edit: for this I have made a PR |
@AppWerft I did not understand the use of your code. |
My comment is one year old. Please gibe me time to figure out … |
@AppWerft thanks for answering. |
Hello, I have a bug with the module can not start the player version 1.7.1 android 6.0 module and Nexus 5,
SDK 5.1.1GA
Thank
The text was updated successfully, but these errors were encountered: