Hi All, Trying to stream a URL to the audio however it is not working,
I have read all documents and it seems it is possible but I have no
idea how
It works if the DataSource is http://twit.cachefly.net/TTG20090829-591.mp3
but not if it is a live stream.
Can someone help

[code]
MediaPlayer radio= new MediaPlayer();
            try {
                radio.setDataSource("http://192.168.0.14:9010";); <!--- ShoutCast
link
                } catch (IllegalArgumentException e) {
                        // TODO Auto-generated catch block
                        e.printStackTrace();
                } catch (IllegalStateException e) {
                        // TODO Auto-generated catch block
                        e.printStackTrace();
                } catch (IOException e) {
                        // TODO Auto-generated catch block
                        e.printStackTrace();
                }
            try {
                radio.prepare();
                } catch (IllegalStateException e) {
                        // TODO Auto-generated catch block
                        e.printStackTrace();
                } catch (IOException e) {
                        // TODO Auto-generated catch block
                        e.printStackTrace();
                }
                radio.start();
[/code]
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to