Re: mediaplayer for icecast streams?
Railgun <[email protected]> Thu, 23 Nov 2023 00:49:26 +0100
| Newsgroups | gmane.comp.audio.icecast.general |
|---|---|
| Message-ID | <[email protected]> |
you can pull it with jQuery via javascript for example evry 10 seconds,
and update the informations you want, at least its the way i do it.
Am 23.11.2023 um 00:13 schrieb Thomas Jensen:
> Thank you, Ben!
>
> I was afraid it would be very complicated to get the information
> extracted, but it was very simple. My only problem now is to find a way
> to update the text on the webpage. I was hoping sleep(5) could do the
> trick, but it does not work.
>
> <?php
> if (1) {
> $jsonobj=file("http://radio.protestbandet.dk:8000/status-json.xsl");
> //var_dump($jsonobj);
> $arr1[]=json_decode($jsonobj[0], true);
> echo '<strong>'.$arr1[0]['icestats']['source']['title'].'</strong>';
> sleep(5);
> }
> ?>
>
> Can anyone help?
>
>
> Thanks
>
>