Nowplaying track in embedded container
Re: Nowplaying track in embedded container
Probably an issue with the config.php file and/or database connection.
But please, ask a web designer or as hdradio suggested go to fiverr.com and ask someone to do that for you for $5.
No more web design question please !
But please, ask a web designer or as hdradio suggested go to fiverr.com and ask someone to do that for you for $5.
No more web design question please !
Bernd - radio42
ProppFrexx ONAIR - The Playout and Broadcast Automation Solution
ProppFrexx ONAIR - The Playout and Broadcast Automation Solution
Re: Nowplaying track in embedded container
Friso,friso wrote:Bernd
I'm still struggling with the code you give me.
Creating the mysql from the code give an error, and now i manually created the database and the tables in it. Also i found the most settings of the collums. But when created the php files gives me errors during test in proppfrexx.
Also i think that the database connection settings is the config.php file?
I've been following this discussion and think that it is not fair that you keep bothering Bernd with your webdesign questions.
Bernd is a software programmer and not a webdesigner. Below you see a screenshot of the settings that you can use your nowplaying on the website. Goto Events/Commands ==> Streaming ==> OnSongTitleChanged and use the code below.
Be sure to create a file called template.html with the following code, this will atomatically be uploaded by ftp tp your site when the songtitle changes.
Current Track: ${currentartist} - ${currenttitle}
Next: ${nextartist} - ${nexttitle}
Previous played:
${02artist} - ${02title}
${03artist} - ${03title}
${04artist} - ${04title}
${05artist} - ${05title}
This is all help i can offer you, so the rest is up to you to find out.
Good luck !
- Attachments
-
- Settings Nowplaying.png (173.81 KiB) Viewed 13044 times
Re: Nowplaying track in embedded container
DirkB
Yoe are a bit right about bordering Bernd, but it's an command that's in proppfrexx available. And Bernd does do a great job with proppfrexx, but documentation and tech people don't walk together. So if he had a good manual about using commands and macro's i didn't hava to ask those questions.
Look in the manual and see that a lot of features aren't documented at all.
So it's not strange questions arise, i think
About your solution. I work with that one. That was an easy one, but it doesn't get the track data out of an embedded track. Therefore i had to use another aproach. Try it yourself.
Friso
Yoe are a bit right about bordering Bernd, but it's an command that's in proppfrexx available. And Bernd does do a great job with proppfrexx, but documentation and tech people don't walk together. So if he had a good manual about using commands and macro's i didn't hava to ask those questions.
Look in the manual and see that a lot of features aren't documented at all.
So it's not strange questions arise, i think
About your solution. I work with that one. That was an easy one, but it doesn't get the track data out of an embedded track. Therefore i had to use another aproach. Try it yourself.
Friso
Re: Nowplaying track in embedded container
The command does its job perfectly and I already showed you how to use it!
That command it is just an interface to the web, which doesn't mean that I need to explain the whole web stuff to you.
There are also control commands available to communicate with electronic contact closure interfaces (GPIOs), which also doesn't mean, that I need to explain how to build electronic contact closure devices.
The posted web code above is even working fine as well - but if you don't know how to use it...then please ask someone with some web skills to help you out...
This post is closed now.
That command it is just an interface to the web, which doesn't mean that I need to explain the whole web stuff to you.
There are also control commands available to communicate with electronic contact closure interfaces (GPIOs), which also doesn't mean, that I need to explain how to build electronic contact closure devices.
The posted web code above is even working fine as well - but if you don't know how to use it...then please ask someone with some web skills to help you out...
This post is closed now.
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
I'm sorry to borther again, but it's just not working for me. I had 2 guys looking at the script, and i actually got working that it's creating a new entry in my mysql table, but no data is stored in that record. I have tested it with the POST and GET command. Also i saw that your command wasn't ok, because u used a ? and you have to use the | character
EXEC_SEND_HTTP_POST http://frisotrip.nl/proppfrexx/insert_d ... le=${title}
I think that the command above should be ok, but i don't know if the parsing is going ok, simply because i can't test it.
So by executing the command in proppfrexx by the streaming on song change it creates a new record with no data in it.
Any tips?
Thanx
Friso
I'm sorry to borther again, but it's just not working for me. I had 2 guys looking at the script, and i actually got working that it's creating a new entry in my mysql table, but no data is stored in that record. I have tested it with the POST and GET command. Also i saw that your command wasn't ok, because u used a ? and you have to use the | character
EXEC_SEND_HTTP_POST http://frisotrip.nl/proppfrexx/insert_d ... le=${title}
I think that the command above should be ok, but i don't know if the parsing is going ok, simply because i can't test it.
So by executing the command in proppfrexx by the streaming on song change it creates a new record with no data in it.
Any tips?
Thanx
Friso
Re: Nowplaying track in embedded container
Sorry, yes, for EXEC_HTTP_POST it must the command separator character '|'.
For EXEC_HTTP_GET it needs to be the '?' to separate the query string from the url within the complete Uri.
Have you tried EXEC_HTTP_GET instead? Maybe this working better for you (it is even easier to use I guess)...?!
For EXEC_HTTP_GET it needs to be the '?' to separate the query string from the url within the complete Uri.
Have you tried EXEC_HTTP_GET instead? Maybe this working better for you (it is even easier to use I guess)...?!
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
Finally i got it working with the _get command.
Last thing is now to get the albumart in the sql table. Can you confirm that i can use the ${currentalbumart} in the title change command?
Is the actual albumart then passed thrue or do i have to add some more things?
Thanx
Friso
Finally i got it working with the _get command.
Last thing is now to get the albumart in the sql table. Can you confirm that i can use the ${currentalbumart} in the title change command?
Is the actual albumart then passed thrue or do i have to add some more things?
Thanx
Friso
Re: Nowplaying track in embedded container
No, a ${currentalbumart} macro does not exist for regular Track command! See the User Manual Appendix for a list of valid macros to use.
But you can try the ${albumart} macro!
Note: AlbumArt pictures will result in a base64 encoded string. To convert that back to an image on a receiver side you can simply decode that string back to a byte array and take the data to create a JPEG image. The original album art picture will in any case automatically be scaled to a max. 200x200 image and converted to JPEG (keeping the original aspect ratio, as such the resulting image might be smaller but either the width or height will be 200 pixel).
However, be aware, that a HTTP GET has a certain maximum length limit (which depends on your web-server settings); but is often something like 4K or 8K; this might easily exceeded when transmitting base 64 encoded images...
But you can try the ${albumart} macro!
Note: AlbumArt pictures will result in a base64 encoded string. To convert that back to an image on a receiver side you can simply decode that string back to a byte array and take the data to create a JPEG image. The original album art picture will in any case automatically be scaled to a max. 200x200 image and converted to JPEG (keeping the original aspect ratio, as such the resulting image might be smaller but either the width or height will be 200 pixel).
However, be aware, that a HTTP GET has a certain maximum length limit (which depends on your web-server settings); but is often something like 4K or 8K; this might easily exceeded when transmitting base 64 encoded images...
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 yes yes, got it all working now. I'm going to cleanup code now and will post the solution for other users, so they don't have to struggle like i did
Again thanx, and sorry for constantly asking
Yes yes yes, got it all working now. I'm going to cleanup code now and will post the solution for other users, so they don't have to struggle like i did
Again thanx, and sorry for constantly asking
- Attachments
-
- screenshot.jpg (32.81 KiB) Viewed 13010 times
Re: Nowplaying track in embedded container
I'm still waiting code? I have the same problem : Dfriso wrote:Bernd
Yes yes yes, got it all working now. I'm going to cleanup code now and will post the solution for other users, so they don't have to struggle like i did
Again thanx, and sorry for constantly asking