Code example for VideoView

Methods: setMediaControllersetOnCompletionListenersetVideoURIstart

0
	Uri location;
	private EpicClickListener listener;
 
	public EpicNativeVideoWidget(String stringLocation, EpicClickListener l) {
		this.listener = l;
		t = new VideoView(EpicAndroidActivity.getCurrentAndroidActivity());
		t.setOnCompletionListener(this);
		this.location = Uri.parse(stringLocation);
		t.setVideoURI(this.location);
        t.setMediaController(new MediaController(EpicAndroidActivity.getCurrentAndroidActivity()));
//      t.requestFocus(); 
        t.start();
	} 
 
	View getAndroidView() {
		return t;
	} 
 
	public void onCompletion(MediaPlayer arg0) {
		this.listener.onClick();
Connect your IDE to all the code out there  Get Codota for Java