Hi All,
How to do video streaming in android emulator. Please suggest any way
to stream a video.I have tried but i couldnt succeeded in playing awed
video in the emulator.Following is the code that i have tried:
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
mVideoView = (VideoView)this.findViewById(R.id.myVideoView);
mVideoView.setMediaController(new MediaController(this));
mVideoView.setVideoURI(Uri.parse("http://getmediacore.com/
files/tutorial-add-video-in-mediacore.mp4"));
//mVideoView.setVideoURI(Uri.parse("android.resource://
com.android.VideoPlayer/" + R.raw.dkbose));
mVideoView.requestFocus();
mVideoView.start();*/
}
If i am giving the resource folder path,I am able to see video
playing.But if i give a web address of a video file, it is not playing
at all.It is giving error saying that "Sorry.Cannot play this video".
Also Is their any problem playing a video on emulator?
Thanks,
Krishna Chaitanya
--
You received this message because you are subscribed to the Google
Groups "Android Developers" 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-developers?hl=en