Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get streaming url from online streaming radio station

I've been asked to make unofficial online streaming android application for a certain radio station.
I've experience with streaming in android for certain mp3 or whatever stream.
But I don't know the stream url to provide in mediaPlayer.setDataSource(url).

Is there any way to get the stream url from the ofiicial streaming page for ex. this radio stream?

like image 764
Ahmad Dwaik 'Warlock' Avatar asked Jan 16 '14 09:01

Ahmad Dwaik 'Warlock'


People also ask

What is a streaming URL?

Your live stream URL is a unique web address, which carries your live audio stream every time you broadcast (For the technically minded, it's a 128kbps MP3 stream, Icecast compatible, and will work with almost all browsers and listening clients).

How do I find my Tunein stream URL?

The URL can be the full URL, ie. https://tunein.com/radio/station-id, https://tunein.com/podcasts/podcast-id/?topicId=episode-id, or just station-id or podcast-id/episode-id.

How do I get a SHOUTcast stream URL?

Login to Wavestreaming's control panel and go to SHOUTcast -> Servername -> Edit Mountpoint Config. At the bottom you will see Relay URL.


2 Answers

The provided answers didn't work for me. I'm adding another answer because this is where I ended up when searching for radio stream urls.

Radio Browser is a searchable site with streaming urls for radio stations around the world:

http://www.radio-browser.info/

Search for a station like FIP, Pinguin Radio or Radio Paradise, then click the save button, which downloads a PLS file that you can open in your radioplayer (Rhythmbox), or you open the file in a text editor and copy the URL to add in Goodvibes.

like image 154
SPRBRN Avatar answered Oct 06 '22 21:10

SPRBRN


not that hard,

if you take a look at the page source, you'll see that it uses to stream the audio via shoutcast.

this is the stream url

"StreamUrl": "http://stream.radiotime.com/listen.stream?streamIds=3244651&rti=c051HQVbfRc4FEMbKg5RRVMzRU9KUBw%2fVBZHS0dPF1VIExNzJz0CGQtRcX8OS0o0CUkYRFJDDW8LEVRxGAEOEAcQXko%2bGgwSBBZrV1pQZgQZZxkWCA4L%7e%7e%7e",

which returns a JSON like that:

{
    "Streams": [
        {
            "StreamId": 3244651,
            "Reliability": 92,
            "Bandwidth": 64,
            "HasPlaylist": false,
            "MediaType": "MP3",
            "Url": "http://mp3hdfm32.hala.jo:8132",
            "Type": "Live"
        }
    ]
}

i believe that's the url you need: http://mp3hdfm32.hala.jo:8132

this is the station WebSite

like image 36
Shahar Avatar answered Oct 06 '22 21:10

Shahar