I recently installed Radio Tray to my system so I could listen to iHeartRadio, but I don't know where to get the URLs of the Radio stations I like, How do I get them and how do I add them?
Ubuntu – How Do I Add iHeartRadio Stations to Radio Tray
internet-radio
Related Question
- Ubuntu – Is it possible to import/export radio station as a list into/from Banshee
- Ubuntu – Can Banshee play internet radio from .pls files
- Ubuntu – After upgrade, iHeart Radio (on the web) no longer plays
- Ubuntu – Importing RadioTray radio stations into Rhythmbox
- Ubuntu – Finding stations for Rhythmbox
- Ubuntu – How to add an Internet RADIO STATION to RhythmBox running with a .php extension
- Ubuntu – How to integrate Rhythmbox to play Internet Radio
Best Answer
Many of the iHeartRadio stations are streamed through Akamai via akacast.akamaistream.net or similar. However, there are several different streams (yes, multiple streams) available. To get the station streams using Chrome:
View page source
There are several key javascript variables (as of this writing) used to identify the station and its streams.
The relevant text should be in a section of javascript in a variable "window.__store" (also near variable "BOOT"). The data is encoded using JSON. The "streams" area is a compound list of streams for the radio station as
"streams":{"key":"value",...}
. These key-value pairs list the stream type (key) and its stream (value).You can use any of these streams that suit your purpose. For example, I get (formatted for clarity):
Now, you're good to go. I've tested all these streams by adding them as stations in Banshee. All but the "secure_rtmp_stream" work. If you want to use RTMP, you'll need to use other tools such as vlc, ffplay, rtmpdump, and flvstreamer.