Back to project page MediaTechPlayer.
The source code is released under:
MIT License
If you think the Android project MediaTechPlayer listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package hu.bme.mediatech.player; // ww w.j a va 2 s .co m import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.widget.MediaController; import android.widget.VideoView; public class FullScreenVideo extends Activity { private VideoView view; private MediaController mediaController; private Video video; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.fullscreen_video); Intent in = super.getIntent(); video = new Video(in.getBundleExtra("data")); int seekTo = in.getIntExtra("seek", 0); mediaController = new MediaController(this); view = (VideoView) findViewById(R.id.fullscreenVideoView); view.setMediaController(mediaController); view.setVideoURI(video.getURI()); view.seekTo(seekTo); view.start(); } }