Code example for VideoView

Methods: seekTosetMediaControllersetVideoURIstart, requestFocus

0
   
   
  public void play(String _videoUri, int position){
	  	 Log.i(TAG,"URI is : "+Uri.parse(_videoUri).toString());
		 MediaController mc = new MediaController(VideoPlayer.this);
		 mVideoView.setMediaController(mc);	
		 mVideoView.setVideoURI(Uri.parse(_videoUri));
		 mVideoView.requestFocus();
		 mVideoView.seekTo(position);
		 mVideoView.start();
  } 
   
  public void backButtonVideo(View view){
		// TODO Auto-generated method stub 
		//If Stack has no record of history in stack 
		//This button will not be visible 
			 
		//On history found in stack 
		//Create new Intent	 
	   
	  	Intent loadPage = new Intent();