Player - Device Audio, Loop - Play Streaming

I have tested it on a Xiaomi Redmi Note 13 Pro, Android 15 and it persists, but only if I don't use proguard when compiling the extension.

I'm out of time right now, but I'll be testing as soon as I get back to the computer.

I have modified proguard-rules so that it does not obfuscate the service, I will be testing that it does not stop.

Thank you

Strange. I checked it on many devices (also Xiaomi Redmi Note 5, OnePlus 6 and 8, Pixel 2XL, Pixel 4XL, Pixel 7 Pro, several Samsung devices, Huawei, etc.) and it works on all of them without any issue.

Try to play a silent audio track (mp3/ogg, 5 sec) in a loop using the Player component while streaming.

I used Ullis extension and it doesn't use proguard.

Update v1.3

Thank you very much for your quick help. Now the player runs smoothly on my computer without shutting down. Wonderful. And now it even has a sleep timer. I can delete the timer I created myself. Thank you very much. Best regards, Peter

Hmm, so what exactly is your solution?

I still have a small problem. After installing the update for your player v1.3, an error occurs during compilation.

error

Have you tried installing the example I uploaded? The aia project.

If you updated from version 1.1.2 to 1.3, it is likely that the names of the functions have changed and some are not applied correctly.

Install the IA project to verify that it installs correctly.

  • On my Android 15, it installs without any problems.

That :point_up: and this :point_right: android:stopWithTask="false" in the manifest

Thank you.
Best regards, Peter

Hmm, but, as I said, if one isn't using proguard at all in his/her extension, how could the problem arise?

Hi! joejsanz's extension is a great project. Unfortunately, it lacks a feature that's important to me: the ability to pause what you're listening to by tapping on a Bluetooth headset. For that reason, I used Patryk_F's MediaSessionPlayer. Anyone interested who finds the author's explanation difficult can post the blocks I've created.

Without ProGuard, there were no problems; everything worked fine. However, I prefer to use ProGuard in the extension. However, the part where the service was called was obfuscated if I used ProGuard, so I had to set some rules in proguard-rules.pro to prevent the service from being obfuscated.

I don't know if this is what you wanted to know.


I'd previously worked on that feature, but I was still testing it. It seems to be working well, and I'll probably post the update today.

1 Like

Update v1.4

  • Bluetooth headphones can now be used to pause, play, skip to next, previous...
1 Like

Project complete in every way. Pausing playback from the earphones is fine. If I put the earphones back in their case, the smartphone starts playing from the speaker again, which is very annoying. So I have to take the smartphone out of my bag to press stop. Is there a way to initiate STOP if the earphones are disconnected?

Updatev1.5

It's fixed now.

1 Like

Hello, I need to get in touch again because there is something I don't understand. Is it possible that there are radio streams that stop after 22 minutes? All my other streams work perfectly. Perhaps you would like to test the stream.
Best regards, Peter

http://webstream.schlagerparadies.de:80/hitmixdernacht

I found a bug. When I tried to disable the timer, I set it to 0 minutes, and the app crashed. How can I cancel the timer?

A screenshot of your relevant blocks would help very much...
My guess is, you are talking about the clock component?
To stop the timer you set Clock.TimerEnabled to false

Taifun

No, I was talking about the application created by Joejsanz.
I downloaded the .aia file because I wanted to understand how some functions are handled, and in my tests, I wanted to cancel the timer in the application he created, but I couldn't find any button to do so. So I tried setting the timer to "0" minutes, and the application crashed. I just wanted to let him know about this; maybe he'll find it helpful.
Marco