Code example for VideoView

Methods: setVisibilitysetVideoURI

0
    } 
 
    public void setVideo(String name, Uri video) {
        if (mVideoView == null) {
			// TDH 
            mVideoView = new VideoView(getContext());
            addView(mVideoView, new LayoutParams(
                    LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT, 0, 0));
            if (DEBUG) {
                mVideoView.setBackgroundColor(0xFFFF0000);
            } 
        } 
 
        if (LOCAL_LOGV) {
            Log.v(TAG, "Changing video source to " + video);
        } 
        mVideoView.setVisibility(View.VISIBLE);
        mVideoView.setVideoURI(video);
    } 
 
    public void setMediaController(MediaController mediaController) {
        mMediaController = mediaController;
    } 
Connect your IDE to all the code out there  Get Codota for Java