i am not able to change the orientation of my video in landscape mode. Here's my code:
VideoView videoView = (VideoView) findViewById(R.id.video_view);
MediaController mediaController = new MediaController(this); //Creating the media controller
mediaController.setAnchorView(videoView);
//Specify the location of media file
Uri uri = Uri.parse("android.resource://" + getPackageName() + "/"
+ R.raw.my_video);
videoView.setMediaController(mediaController);
videoView.setVideoURI(uri);
videoView.requestFocus();
videoView.start();
videoView.setOnCompletionListener(this);
and in manifest i have added below lines:
android:configChanges="keyboard|orientation|screenSize"
android:screenOrientation="landscape"
and with this it's not working. Thanks in advance!! :)