joeyboli / RadioPlayer

HTML5 Internet Radio Web Player.
https://radioplayerv5.vercel.app/
24 stars 19 forks source link

Problem with metadata icecast #2

Closed xzsaimon16 closed 1 year ago

xzsaimon16 commented 1 year ago

Hi, I have a problem. The metadata with the icecast does not work for me, I don't know if you can help me

joeyboli commented 1 year ago

Hi, I have a problem. The metadata with the icecast does not work for me, I don't know if you can help me

can you share your player ? so that I check and see where the issue is.

also make sure you have downloaded the latest version.

xzsaimon16 commented 1 year ago

prueba.zip

joeyboli commented 1 year ago

Share URL to the player instead.

xzsaimon16 commented 1 year ago

I don't have it hosted in url, only in the file that I send. there is the streaming url and the link for the json file

joeyboli commented 1 year ago

just checked the code and you have the old version. please re-download the code from github, I made fixes to work with any URL last two days.

xzsaimon16 commented 1 year ago

Sin título

ok, I tried it and at the beginning the metadata with my url and jason worked, after editing the images and the name of my station it stopped working. Now the original wue player that you have shared does not work. In the attached image you can see the error

xzsaimon16 commented 1 year ago

IMG_20230620_223455

From what I see it works sometimes yes and sometimes no

joeyboli commented 1 year ago

okay, send me your stream URL

xzsaimon16 commented 1 year ago

stream : https://acp2.lorini.net:19030/stream

json: https://acp2.lorini.net:8080/json/stream/ritmo-digital

joeyboli commented 1 year ago

okay so I noticed my API server was not picking the stream metadata, will check the cause of It and let you know.

xzsaimon16 commented 1 year ago

Thanks

joeyboli commented 1 year ago

seems to be working now, I dont quite get why it was not working though, any other stream URL I pass works fine so I am a bit confused.

joeyboli commented 1 year ago

here is the API endpoint that I use for the app https://api.streamafrica.net/metadata/index.php?z=https://acp2.lorini.net:19030/stream

xzsaimon16 commented 1 year ago

yes, it worked for a few minutes then it stopped working

xzsaimon16 commented 1 year ago

it does not work

joeyboli commented 1 year ago

Yeah unfortunately, what control panel do you use ?

Sent from my T-Mobile 4G LTE Device Sent from Outlook for Androidhttps://aka.ms/AAb9ysg


From: xzsaimon16 @.> Sent: Wednesday, June 21, 2023 11:27:44 AM To: joeyboli/html5-shoutcast-icecast-zeno-player @.> Cc: Joey @.>; Comment @.> Subject: Re: [joeyboli/html5-shoutcast-icecast-zeno-player] Problem with metadata icecast (Issue #2)

it does not work

— Reply to this email directly, view it on GitHubhttps://github.com/joeyboli/html5-shoutcast-icecast-zeno-player/issues/2#issuecomment-1600663105, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AKPHXKF4CYGDHTRS7YOS4VDXMLLDBANCNFSM6AAAAAAZNMPT6I. You are receiving this because you commented.Message ID: @.***>

xzsaimon16 commented 1 year ago

Screenshot_2023-06-21-17-55-38-804_com android chrome

I don't know. I contracted a service which I don't know which panel it uses. here I attach a screenshot

joeyboli commented 1 year ago

I have seen it uses a media CP panel, so I will write a custom code to parse your json and then pass the metadata to the player.

joeyboli commented 1 year ago

open line 378 and replace ''https://api.streamafrica.net/metadata/index.php?z='+URL_STREAMING'

with

'https://api.streamafrica.net/metadata/mediacp.php?url=https://acp2.lorini.net:8080/json/stream/ritmo-digital'

xzsaimon16 commented 1 year ago

IMG_20230621_200911 IMG_20230621_200848

now it works perfectly. One detail, I have noticed that in some songs the name does not show well. I reviewed the songs and they are well written. for what is this? thanks for the help friend

joeyboli commented 1 year ago

sorry but that depends on the type of characters been sent.