![]() |
[script] Listen to iheartradio (mplayer)
I have written a script to listen to iheartradio streams using mplayer.
The script is written in python so you can just save it as iheartradio.py and execute it with python iheartradio.py You must compile a RECENT version of mplayer! The version from extra does not have rtmp support and will NOT work. SVN snapshot 32027 compiles in the SDK without a problem. If there is a demand I can provide the mplayer binary and/or sources. The Script:
Code:
#!/usr/bin/env python |
Re: [script] Listen to iheartradio (mplayer)
Found an easier method. The XML URL does not work for all stations and the station ID is hard to find.
They use a JSON API for getting the streaming info for the flash player on their site and you can use this to get all the data you need. Inside the JSON packet is a HTTP stream URL that works with the stock media player. The RTMP link is also there, if you want that, but I have found the HTTP stream works just fine. Replace 0000 with the station number that can be found in the URL of your station you want to listen to. curl -X POST -d 1 http://www.iheart.com/a/live/station/0000/stream/ Example: Station on the site - http://www.iheart.com/live/1021-The-Edge-2815/ Take 2815 as the station number. curl -X POST -d 1 http://www.iheart.com/a/live/station/2815/stream/ Take the "shoutcast_url" out of the JSON packet and plug that into the Maemo media player or whatever you want. |
Re: [script] Listen to iheartradio (mplayer)
Is there somewhere that I can install curl on my Maemo 4 device?
|
Re: [script] Listen to iheartradio (mplayer)
Will this work with nokia n9?
|
Re: [script] Listen to iheartradio (mplayer)
it doesn't work on the browser with the new flash?
|
Re: [script] Listen to iheartradio (mplayer)
Quote:
|
Re: [script] Listen to iheartradio (mplayer)
Quote:
|
Re: [script] Listen to iheartradio (mplayer)
Quote:
|
Re: [script] Listen to iheartradio (mplayer)
Quote:
|
All times are GMT. The time now is 11:17. |
vBulletin® Version 3.8.8