I tried to find a simple tutorial that explains how to load a video from a URL into an Android media player, but unfortunately I could not find it!
I tried a few things to try to get it to work, but still no luck.
What is the best way to have MediaPlayerActivity, just download the video from the url?
thanks
EDIT:
I tried the following code as suggested:
VideoView videoView = (VideoView) findViewById(R.id.your_video_view); MediaController mediaController = new MediaController(this); mediaController.setAnchorView(videoView); videoView.setMediaController(mediaController); videoView.setVideoURI(Uri.parse("url-here")); videoView.start();
It just crashes when I move on to this operation.
android android-mediaplayer android-video-player
user1417302
source share