Streaming MP3 through URL on Android
I am working on Android Streaming application where I need to play mp3 s开发者_如何学编程treams on the handset from a online URL
I can't find any good sample that demonstrates this. Can anybody guide me to a good demo with the sample source code for this?
I have been googling around but no success. Also few more questions, do all Android versions support mp3 Streaming without any download?
Thanks in advance
in sdk api demo is there in that api demo the perfect example given you try for that code
maybe this will help you:
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
videotest = (VideoView)findViewById(R.id.video);
videotest.setVideoURI(Uri.parse(path1));
videotest.setMediaController(new MediaController(this));
videotest.requestFocus();
videotest.start();
精彩评论