Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- String sdcarduri = "/sdcard/3.3GP"
- //link your video view from layout file
- videoView = (VideoView)this.findViewById(R.id.videoView33);
- //add controls to a MediaPlayer like play, pause.
- MediaController mc = new MediaController(this);
- videoView.setMediaController(mc);
- //Set the path of Video or URI
- videoView.setVideoURI(Uri.parse(sdcarduri));
- //Set the focus
- videoView.requestFocus();
- //auto play as the activity loads
- videoView.start();
Add Comment
Please, Sign In to add comment