Player - External Audio and Asset Player

So there is something very wrong in the code, as soon as I can access it I will review it.

It's probably already defective, it's a somewhat old laptop, I'll look for that program.

Code fixed, permissions are now also granted on Android 13+

Tested on android 14.

Hello!

Amazing extension! Thank you for this player!
I'm using it to play *.mp3 files by link..

But how can I hide this notifier at the initialization moment?

Thank you!

1 Like

Thank you so much. @Darkhan

It's true, that notification every time the app is opened is too tedious.

I have updated the extension, that notification will no longer appear.

1 Like

Very nice! Just now I updated your extension in my project..
Now it's working silently.

Thank you @Joejsanz.

1 Like


Hello friend, greetings from Colombia, I am using your extension of your authorship but I found a detail after about 30 minutes, let the audio streaming play, any suggestions or recommendations.

thank you

Hello Cristian

Thanks for letting me know that detail, I will check it immediately.

As soon as I fix it I will let you know here.

@Cristian_Geovani_Car

Did you add a foreground service (to prevent Doze)?

@Joejsanz I had understood in another post about 'Keeping Alive' that to establish a wave lock it was just necessary to use the player and let it play a silent sound (which contains only silence) without necessary to use extensions.

Before I have time to test if this update is able to establish a Wave Lock and get around the Doze Mode, the question is:

Requires any kind of 'authorization' that will be barred by the rigid Google Play Protect current criteria that try to protect the user's battery life at any cost?

TIA :pray:

Lito

@>-->---

No, what I added was a PARTIAL_WAKE_LOCK, which keeps the CPU awake but allows the screen to turn off. @Anke

Lito is right about the battery

Generally, Google prefers apps to use PARTIAL_WAKE_LOCK, which keeps the CPU awake but allows the screen to turn off. This is less damaging to the battery than a FULL_WAKE_LOCK, which keeps the screen on all the time. @Lito

As I already mentioned several times, last here: App Keep alive always - #81 by Anke

But unfortunately that's not enough, after 5-8 minutes the Doze mode kicks in and the stream breaks off. I have various devices with Android 6, 7, 8, 9, 10, 11, 12, 13, 14 on which this happens.

To reliably prevent Doze, you also need a Foreground service.

1 Like

True, I tested it on my Android 11 device and it closed, and on Android 14 it didn't close, but that's because my v-14 device doesn't close anything when off and I was testing it on that.

Tonight I'll look into implementing the foreground service.

@Joejsanz OK.

But I did not see any 'extra' block within the extension that allows the option to make the Screen off...

I need to understand better how it works...
I don't know how a Partial_Wake_Lock works...

In fact, I've been looking for a way to turn off the Screen to save battery... and I could almost get it! But I found limitations that soon I will open a topic to see if I find any help... :pray:

Lito

@>-->---

ok ok friend I will check the extension and I will let you know the results

Hello friend, I told you that I carried out the tests and it presented the same behavior. After a few minutes, the application lets you emit audio but it does not close.

Hello, again I want to tell you that when I upload a URL of Zeno Radio to your extension, it has an unexpected effect, but when the application is installed on the cell phone, I leave you the URL of Zeno Radio so that you can detail it yourself.

https://stream.zeno.fm/j1up1ddzg0yvv

It's an implementation that is started by calling the play and stop blocks. I'm looking at that too, I thought I had it already, but I'll have to look into it further. @Lito


I've been doing some tests and it still behaves the same. I also noticed that it has errors with the transmissions, apparently it's not compatible. I'm checking that.