search for: json_decode

Displaying 12 results from an estimated 12 matches for "json_decode".

2018 Jan 23
2
Now playing (PHP example)
Hi all, Basically there's my question in the subject. I need a simple example of now playing artist, song, and listeners. Can somebody write it down for me? I tried so many ways to do this task, but nothing worked for me. Best regards, Daniela
2023 Nov 22
1
mediaplayer for icecast streams?
...lem 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 > >
2023 Nov 22
1
mediaplayer for icecast streams?
...cted, 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 -- Thomas Jensen, Denmark ons, 22 11 2023 kl. 15:23 +0000, skrev Weddle, Ben (Library): > Icecast pr...
2018 Jan 23
2
Now playing (PHP example)
...te it down >> for me? > > no time, sorry > http://icecast.org/docs/icecast-2.4.1/server-stats.html > >> I tried so many ways to do this task, but nothing worked for me. > > did you try to simply fetch http://your.server:8000/status-json.xsl > with php/curl and use json_decode method? should be easy... > > --u > _______________________________________________ > Icecast mailing list > Icecast at xiph.org > http://lists.xiph.org/mailman/listinfo/icecast >
2018 Jan 23
0
Now playing (PHP example)
...e it >> down for me? > > no time, sorry > http://icecast.org/docs/icecast-2.4.1/server-stats.html > >> I tried so many ways to do this task, but nothing worked for me. > > did you try to simply fetch http://your.server:8000/status-json.xsl > with php/curl and use json_decode method? should be easy... > > --u > _______________________________________________ > Icecast mailing list > Icecast at xiph.org > http://lists.xiph.org/mailman/listinfo/icecast > _______________________________________________ Icecast mailing list Icecast at xiph.org http://li...
2023 Nov 23
1
mediaplayer for icecast streams?
...m 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 > > _______________________________________________ Icecast...
2023 Nov 22
1
mediaplayer for icecast streams?
Icecast provides an endpoint (/status-json.xsl) which returns JSON with various data, including "Now Playing". Here is a link to the documentation: https://www.icecast.org/docs/icecast-trunk/server_stats/ In your case it looks like it would be http://radio.protestbandet.dk:8000/status-json.xsl Ben Weddle -----Original Message----- From: Icecast <icecast-bounces at xiph.org> On
2023 Mar 09
0
Asterisk 18.17.0 Now Available
...- Upgrade Asterisk to bundled pjproject 2.13 (Reported by Stanislav Abramenkov) * ASTERISK-30404 - app_directory: Add reading directory configuration from custom file (Reported by Michael Bradeen) * ASTERISK-29913 - func_json: Adds multi-level and array parsing to JSON_DECODE (Reported by N A) * ASTERISK-30353 - func_frame_trace: Print text for text frames (Reported by N A) * ASTERISK-30361 - json.h: Add missing ast_json_object_real_get (Reported by N A) * ASTERISK-30280 - Create capability to assign a Media Experience Score to RTP...
2023 Mar 09
0
Asterisk 18.17.0 Now Available
...- Upgrade Asterisk to bundled pjproject 2.13 (Reported by Stanislav Abramenkov) * ASTERISK-30404 - app_directory: Add reading directory configuration from custom file (Reported by Michael Bradeen) * ASTERISK-29913 - func_json: Adds multi-level and array parsing to JSON_DECODE (Reported by N A) * ASTERISK-30353 - func_frame_trace: Print text for text frames (Reported by N A) * ASTERISK-30361 - json.h: Add missing ast_json_object_real_get (Reported by N A) * ASTERISK-30280 - Create capability to assign a Media Experience Score to RTP...
2023 Mar 09
0
Asterisk 20.2.0 Now Available
...- Upgrade Asterisk to bundled pjproject 2.13 (Reported by Stanislav Abramenkov) * ASTERISK-30404 - app_directory: Add reading directory configuration from custom file (Reported by Michael Bradeen) * ASTERISK-29913 - func_json: Adds multi-level and array parsing to JSON_DECODE (Reported by N A) * ASTERISK-30353 - func_frame_trace: Print text for text frames (Reported by N A) * ASTERISK-30361 - json.h: Add missing ast_json_object_real_get (Reported by N A) * ASTERISK-30280 - Create capability to assign a Media Experience Score to RTP...
2023 Mar 09
0
Asterisk 20.2.0 Now Available
...- Upgrade Asterisk to bundled pjproject 2.13 (Reported by Stanislav Abramenkov) * ASTERISK-30404 - app_directory: Add reading directory configuration from custom file (Reported by Michael Bradeen) * ASTERISK-29913 - func_json: Adds multi-level and array parsing to JSON_DECODE (Reported by N A) * ASTERISK-30353 - func_frame_trace: Print text for text frames (Reported by N A) * ASTERISK-30361 - json.h: Add missing ast_json_object_real_get (Reported by N A) * ASTERISK-30280 - Create capability to assign a Media Experience Score to RTP...
2006 Mar 17
10
good javascript xml parser
Anyone know of a javascript function that will take an xml document and turn it into an associative array? Basically it would take something like this: <body> <item> <id>1</id> <name>Bob</name> </item> <item> <id>2</id> <name>John</name> </item> </body> And turn it into something like this: {