[Icecast] mediaplayer for icecast streams?

Railgun railgun.michael at gmail.com
Wed Nov 22 23:49:26 UTC 2023


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
>
>



More information about the Icecast mailing list