Player - Device Audio, Loop - Play Streaming

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 (36)

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

2 Likes

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

1 Like

Fixed
Thanks!

1 Like

Hi,
I'm using this extension to play audiostream from Internet. All is working well except the stop function. After using "call JoeDevPlayer1.Stop", the player is still playing the source on Android 14.

1 Like

It's true, I also just checked another error when calling Stop, thanks for reporting this error, I'll fix it tonight.

You're welcome. Many thanks for your work and reactivity. I really appreciate this extension.

1 Like

I found the reason, I put the itoo pause, resume and stop blocks wrong, it is now fixed, this way it will work perfectly for you:
Tested on Android 14.

Oh Yeah ! Many thanks ! I'm using this extension for radioamateur (HAM Radio) users so everyone can listen other people talking with their smartphone when there is some issues with radio device for example...

https://github.com/f4bpp/HotSpot-Remote

So can you share the link for the new version Please ?

Many thanks, David.

After expanding your last post, I'm not sure to understand the Fix. Did you made another version of your extension or should I use the itoo extension to fix my problem ?

Are you not using itoo with this extension to use it in the background?

When calling stop, the song restarts, it didn't stop. That's already fixed.
Here is the extension: V1.0.1
joejsanz.player.joedevplayer.aix (17.0 KB)

It looks interesting, I'll take a look at it.