marsradio
13 years agoVisitor
Need To Display Artist and Title for Live Radio Stream
I have been scouring these threads for the past few days to no avail. I found a couple of references to this, but I did not seem to find any published resolutions. I am trying to build a channel for a live Internet radio station. I have a developer account, and I have the latest SDK. So far I've been successful in being able to get the live audio stream to work. I was able to do it using both the NPR example in the SDK as well as the basic video player (sans video of course).
However, what I can't seem to accomplish is how to display the Artist and Title now playing information on the screen. Firstly, I will say that from what I've read and been told, I am aware that the Roku cannot strip the metadata contained within the mp3 audio stream. That's fine because the live automation software which powers the radio station makes this data available via other means. i.e. it can upload an HTML file with the data, it can upload an XML file with the data, etc. And, this file is re-uploaded with new data upon each song change.
So, while I'm not trying to parse metadata from within a live mp3 audio stream, I am hoping to find a way to parse/poll said HTML or XML file and display this data on screen. I will also need this method to be able to refresh either at a set interval or some other way so that the Now Playing information being displayed is always current.
For what it's worth, the ShoutCast channel does this. Somehow they strip out the mp3 stream metadata and seemingly convert it to XML on their server - and then their Roku channel parses this data and displays it both on the player page and then on the screensaver once the screensaver kicks in. And they do display it in real time - updating it after a song change.
Does anyone have any insight as to how I can accomplish this?
Again, it all seems to boil down to a simple parsing of a basic file that sits on a remote server and to have this parsing refreshed every 30 seconds or so. Any help will be greatly appreciated.
However, what I can't seem to accomplish is how to display the Artist and Title now playing information on the screen. Firstly, I will say that from what I've read and been told, I am aware that the Roku cannot strip the metadata contained within the mp3 audio stream. That's fine because the live automation software which powers the radio station makes this data available via other means. i.e. it can upload an HTML file with the data, it can upload an XML file with the data, etc. And, this file is re-uploaded with new data upon each song change.
So, while I'm not trying to parse metadata from within a live mp3 audio stream, I am hoping to find a way to parse/poll said HTML or XML file and display this data on screen. I will also need this method to be able to refresh either at a set interval or some other way so that the Now Playing information being displayed is always current.
For what it's worth, the ShoutCast channel does this. Somehow they strip out the mp3 stream metadata and seemingly convert it to XML on their server - and then their Roku channel parses this data and displays it both on the player page and then on the screensaver once the screensaver kicks in. And they do display it in real time - updating it after a song change.
Does anyone have any insight as to how I can accomplish this?
Again, it all seems to boil down to a simple parsing of a basic file that sits on a remote server and to have this parsing refreshed every 30 seconds or so. Any help will be greatly appreciated.