Fullscreen landscape video does not fill screen
mtl3jx opened this issue · comments
Madelyn Luansing commented
I have found this code extremely helpful, I was just wondering if you might know why I'm having this issue.
The activity my video enabled WebView is housed in is required to be in portrait mode. I want the full screen video layout to be in landscape. I tried "faking" this by rotating the container for the full screen video layout, however this gives me two issues.
- Rotated video does not fill the entire screen.
- The YouTube video player controls disappear.
Any ideas why this is happening / how to fix? Thanks!
<RelativeLayout
android:id="@+id/videoLayout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:rotation="90" />
Jamal Eddine Kaouiri commented
activityVideoView.addView(videoViewContainer, new ViewGroup.LayoutParams(100, 100);
You will find this in the VideoEnabledWebChromeClient.java.