Siddhpura Amit
Siddhpura Amit

Reputation: 15078

Some url is not working in online radio android

for Streaming radio online code is below

   player = new MediaPlayer();
   player.setDataSource(RADIO_STATION_URL);
   player.setOnPreparedListener(new OnPreparedListener() {
        public void onPrepared(MediaPlayer mp) {
            player.start();
        }
    });

if i put url in place of RADIO_STATION_URL like http://test1.leanstream-hd.com/CFHKFM, it will give me an error

    02-18 17:12:34.035: E/MediaPlayer(1205): error (1, -2147483648)

and player is not working it will work on many url but in this case of url it is not working :(

I have googled and i got that some media format is not supported by mediaplayer by below link

http://developer.android.com/guide/appendix/media-formats.html

but can anybody suggest me how to find that Which url is containing which media format I want to make UNIVERSAL RADIO application in that link come from server which is dynamic

Upvotes: 1

Views: 626

Answers (1)

Praful Bhatnagar
Praful Bhatnagar

Reputation: 7435

Run the URI in the vlc and go to Tool --> Codec Information to check the detail.. Following are the screen shot for the http://test1.leanstream-hd.com/CFHKFM URI

enter image description here

enter image description here

Upvotes: 2

Related Questions