Nowplaying track in embedded container
Re: Nowplaying track in embedded container
Yes, there is (as already explained), but NOT with the "EXEC_WRITE_PLAYLISTFILE" control-command.
So as said:
If you need the real-time content for embedded-containers on your web-site you might use the global "Streaming.OnSongTitleChanged" event and update you web, eg via HTTP GET or POST commands.
In that case you will also get the details about embedded tracks!
So as said:
If you need the real-time content for embedded-containers on your web-site you might use the global "Streaming.OnSongTitleChanged" event and update you web, eg via HTTP GET or POST commands.
In that case you will also get the details about embedded tracks!
Bernd - radio42
ProppFrexx ONAIR - The Playout and Broadcast Automation Solution
ProppFrexx ONAIR - The Playout and Broadcast Automation Solution
Re: Nowplaying track in embedded container
Bernd
Maybe i'm thinking wrong, so i post some screenshots how i have configured it. Maybe you can see what i am doing wrong here.
This is my php script
<?php
echo "<img src=data:image/jpg;base64,${currentalbumart} width='200' height='200' border='0' title='${currenttrackname}' >";
?>
Maybe i'm thinking wrong, so i post some screenshots how i have configured it. Maybe you can see what i am doing wrong here.
This is my php script
<?php
echo "<img src=data:image/jpg;base64,${currentalbumart} width='200' height='200' border='0' title='${currenttrackname}' >";
?>
- Attachments
-
- screenshot_2.jpg (74.28 KiB) Viewed 16249 times
-
- screenshot_1.jpg (33.37 KiB) Viewed 16249 times
Re: Nowplaying track in embedded container
Can you please explain what actually 'goes wrong' with the above? Or what you expect it to do?!
If it is 'still' the embedded container content...then please read my message above: the "EXEC_WRITE_PLAYLISTFILE" control-command does NOT support resolving embedded containers!
Not sure what you are doing in the "EXEC_SEND_HTTP_GET" command, as I can not see its full parameters...
If it is 'still' the embedded container content...then please read my message above: the "EXEC_WRITE_PLAYLISTFILE" control-command does NOT support resolving embedded containers!
Not sure what you are doing in the "EXEC_SEND_HTTP_GET" command, as I can not see its full parameters...
Bernd - radio42
ProppFrexx ONAIR - The Playout and Broadcast Automation Solution
ProppFrexx ONAIR - The Playout and Broadcast Automation Solution
Re: Nowplaying track in embedded container
Bernd
What command should i then use?
Also here you have my nowplaying with an embedded container.
What command should i then use?
Also here you have my nowplaying with an embedded container.
- Attachments
-
- screenshot_3.jpg (6.97 KiB) Viewed 16248 times
Re: Nowplaying track in embedded container
As said above, for the 3rd times now:
You might use the global "Streaming.OnSongTitleChanged" event and update you web, eg via HTTP GET or POST commands.
I see in your screenshot 2 posts above, that you are already using an "EXEC_SEND_HTTP_GET" command, but as said, I can not see its full parameters...
However the "EXEC_SEND_HTTP_GET" or "EXEC_SEND_HTTP_POST" are the right ones to use! They do resolve the embedded container content.
But...you need to 'save' the received HTTP requests yourself for further display on your web...
You might use the global "Streaming.OnSongTitleChanged" event and update you web, eg via HTTP GET or POST commands.
I see in your screenshot 2 posts above, that you are already using an "EXEC_SEND_HTTP_GET" command, but as said, I can not see its full parameters...
However the "EXEC_SEND_HTTP_GET" or "EXEC_SEND_HTTP_POST" are the right ones to use! They do resolve the embedded container content.
But...you need to 'save' the received HTTP requests yourself for further display on your web...
Bernd - radio42
ProppFrexx ONAIR - The Playout and Broadcast Automation Solution
ProppFrexx ONAIR - The Playout and Broadcast Automation Solution
Re: Nowplaying track in embedded container
Bernd
Yes i understand what you mean, but how do i do that? How can i get my track information out of that http_get.... command.
The one you saw is the same you use in the article about tunein.
I'm not a programmer, so i don't know much about variables and stuff, i'm just a radio man.
Yes i understand what you mean, but how do i do that? How can i get my track information out of that http_get.... command.
The one you saw is the same you use in the article about tunein.
I'm not a programmer, so i don't know much about variables and stuff, i'm just a radio man.
Last edited by friso on 28 Jul 2014 17:13, edited 1 time in total.
Re: Nowplaying track in embedded container
What? The web-part?
If yes...
Basically you can save it to a file, a MySQL-DB or any other storage and then retrieve it from your web-site.
Meaning you send the update request to e.g. a dedicated update php script which is just served by ProppFrexx and just updates your storage/database.
Your 'Now playing' page the simply pulls from the storage/database to display the most recent info...
But the details depend on your web-site...and I am not a web-developer...
If yes...
Basically you can save it to a file, a MySQL-DB or any other storage and then retrieve it from your web-site.
Meaning you send the update request to e.g. a dedicated update php script which is just served by ProppFrexx and just updates your storage/database.
Your 'Now playing' page the simply pulls from the storage/database to display the most recent info...
But the details depend on your web-site...and I am not a web-developer...
Bernd - radio42
ProppFrexx ONAIR - The Playout and Broadcast Automation Solution
ProppFrexx ONAIR - The Playout and Broadcast Automation Solution
Re: Nowplaying track in embedded container
Bernd,
Can you give me than an example how to sav it to a file?
Can you give me than an example how to sav it to a file?
Re: Nowplaying track in embedded container
Not really, as this is not a web learning forum, but you might take a look here:
Examples:
1)
EXEC_SEND_HTTP_GET
In your PHP script you can now access the params like this:
$artist = $_GET["artist"];
$song = $_GET["song"];
More info here: http://www.w3schools.com/php/php_get.asp
2)
EXEC_SEND_HTTP_POST
Use the following in your PHP script:
$artist = $_POST["artist"];
$song = $_POST["song"];
More info here: http://www.w3schools.com/php/php_post.asp
The retrieved params must then be saved...I would actually use a MySQL database...
Details see here: http://www.w3schools.com/php/php_mysql_intro.asp
http://www.w3schools.com/php/php_file.asp
http://www.w3schools.com/php/php_file_open.asp
Examples:
1)
EXEC_SEND_HTTP_GET
In your PHP script you can now access the params like this:
$artist = $_GET["artist"];
$song = $_GET["song"];
More info here: http://www.w3schools.com/php/php_get.asp
2)
EXEC_SEND_HTTP_POST
Use the following in your PHP script:
$artist = $_POST["artist"];
$song = $_POST["song"];
More info here: http://www.w3schools.com/php/php_post.asp
The retrieved params must then be saved...I would actually use a MySQL database...
Details see here: http://www.w3schools.com/php/php_mysql_intro.asp
http://www.w3schools.com/php/php_file.asp
http://www.w3schools.com/php/php_file_open.asp
Bernd - radio42
ProppFrexx ONAIR - The Playout and Broadcast Automation Solution
ProppFrexx ONAIR - The Playout and Broadcast Automation Solution
Re: Nowplaying track in embedded container
Bernd
This is the code i found in the forum to connect to tunein.
EXEC_SEND_HTTP_GET http://air.radiotime.com/Playing.ashx?p ... um=${album}
What i dont's understand is the first part to the .ashx file. I think that the {title} and other variables are send to that file. But how can i do that?
I have looked at the examples on w3school and understand what's happened there. But how looks the string when i use php. Because i don't know how that playing.ashx looks like. Maybe you have an example of how to use the EXEC_SEND_HTTP_GET command?
Thanx
Friso
This is the code i found in the forum to connect to tunein.
EXEC_SEND_HTTP_GET http://air.radiotime.com/Playing.ashx?p ... um=${album}
What i dont's understand is the first part to the .ashx file. I think that the {title} and other variables are send to that file. But how can i do that?
I have looked at the examples on w3school and understand what's happened there. But how looks the string when i use php. Because i don't know how that playing.ashx looks like. Maybe you have an example of how to use the EXEC_SEND_HTTP_GET command?
Thanx
Friso