Player - External Audio and Asset Player

I was testing, creating code, but the device always stopped the music, so I decided to try the itoo extension and it works well, here I will leave an example:

blocks (26)

@Cristian_Geovani_Car The station you shared sounds perfect with the device off, it doesn't stop playing anymore.

I have updated the extension to remove the PARTIAL_WAKE_LOCK, you will need to update the extension so that there can be no problems with playback.

1 Like

And the option to make the Screen Off... Was it ignored after this update?

Lito

@>-->---

Yes, for now, while I investigate more on that.

1 Like

ok friend, thanks for helping us, I'll try the extension

Try this app:

Enter your own URL and put the device in idle mode (screen locked) and check if the music continues to play after 7-8 minutes or more.

1 Like

I had the opportunity to try the demo that you present above and it seems to me that it has a good response time while it is loaded into memory

1 Like

I came to the conclusion that everything depends on the speed of internet propagation.

1 Like

I thought the question was whether the audio stream/music stops because Doze mode shuts down the CPU, internet, etc. So does the music continue to play on your test device after 7-10 minutes or longer? On my test devices the music plays until the battery gives up.

No, how long it takes for an audio stream to load/buffer depends not only on the speed of the internet, but also on the player used. Whether the stream breaks off after a while on Android 6+ devices has nothing to do with the internet speed, but rather with the correct implementation of a foreground service.

Is your extension up to date? I have made an app with it and when I try to install the apk file it shows „there was a problem with parsing“ and as I looked up, the problem for this error was often an outdated extension…my phone is currently running on the latest version of Android 12. Thx!

1 Like

I tried it on Android 14 and it still didn't let me install the apk, I got this message:
App Not Installed As Package Appears To Be Invalid

But on Android 11 it installed perfectly.

I've corrected some details in the code and now it does let me install on Android 14.

ㅤHere is the updated extension:ㅤ

Let me know if it worked for you.

1 Like

Thanks for the quick answer, I will test it later and tell you if it worked.

1 Like

Fixed
Thanks!

1 Like