I have videos I am implementing in my app and I need to know if it is possible to set a feature on the videoview to allow a fullscreen option like there is on youtube videos.
Below is my code to put the video on the videoview and I currently have a mediacontroller on it so I can start, pause and go back and forward in the video but I need the full screen option as the videos are coming fuzzy as they are too small on the current dimensions but would be much clearer on the full screen.
RelativeLayout layout = (RelativeLayout) findViewById(R.id.Vidview1);
VideoView video1 = (VideoView) findViewById(R.id.videoView);
//Setting the path to the 'basics' file in the raw resources file
String urlpath = "android.resource://" + getPackageName() + "/" + R.raw.intro;
video1.setVideoURI(Uri.parse(urlpath));
//setting the playbar/media controller
video1.setMediaController(new MediaController(this));
layout.setVisibility(View.VISIBLE);