15
Views
2
Comments
Container radio
Question

Hello.

I'm trying to make a function with a press of a button open a container and in it there will be a radio that will start playing.

Can't get it to work.

Grateful for help

John

2023-10-21 19-42-11
Tousif Khan
Champion

Hello,

How you are going to make this work,

Is your radio inclised in a container, what os radio , Is it a file or something, I’m not sure how tou are trying to play something.

Can you please add more information some snapshots or oml, so it would be easy to demonstrate the problem.

Thanks 

Tousif Khan

UserImage.jpg
John Forsberg

1 click on the button will open a container. In container there should be radio widget "Easy Play Audio" which plays URL mp3 stream. Phone with android

The arrow in picture 1 shows the button that should open up the container with the radio.

Picture 2 shows an icon that confirms that the container has been opened and there should be a text that says "Now playing"

the reason for this is to know which radio station you are listening to.

And the same button "image 1" that opens the container should also close the container. I have 3 buttons with different preset radio stations.

And if I open another radio station then the radio station that is playing should end and the one you have opened should then be played.


The reason for the functions I want is that I will have this app on a motorcycle with the associated remote control to control the app.

Hard to do with gloves.


John


Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.