Code example for MediaController

0
            /* 
             * Alternatively,for streaming media you can use 
             * mVideoView.setVideoURI(Uri.parse(URLstring)); 
             */ 
            mVideoView.setVideoPath(path);
            mVideoView.setMediaController(new MediaController(this));
            mVideoView.requestFocus();
            mVideoView.start();
 
        } 
    } 
     
    private void createView() { 
    	mVideoView = new myVideoView(getApplicationContext());
    	wm=(WindowManager)getApplicationContext().getSystemService("window");
    	wmParams = ((MyApplication)getApplication()).getMywmParams();
    	wmParams.type=LayoutParams.TYPE_PHONE;
        wmParams.format=PixelFormat.RGBA_8888;
        wmParams.flags=LayoutParams.FLAG_NOT_TOUCH_MODAL | LayoutParams.FLAG_NOT_FOCUSABLE;
        wmParams.gravity = Gravity.CENTER;
Stop searching for code, let great code find you!  Add Codota to your java IDE