Android Open Source - MediaTechPlayer Full Screen Video






From Project

Back to project page MediaTechPlayer.

License

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.

Java Source Code

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();
    }
}




Java Source Code List

hu.bme.mediatech.player.Album.java
hu.bme.mediatech.player.AudioList.java
hu.bme.mediatech.player.AudioTrack.java
hu.bme.mediatech.player.FullScreenVideo.java
hu.bme.mediatech.player.MainActivity.java
hu.bme.mediatech.player.PlayerService.java
hu.bme.mediatech.player.VideoList.java
hu.bme.mediatech.player.Video.java