Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fullscreen landscape video does not fill screen #40

Open
mtl3jx opened this issue May 3, 2018 · 1 comment
Open

Fullscreen landscape video does not fill screen #40

mtl3jx opened this issue May 3, 2018 · 1 comment

Comments

@mtl3jx
Copy link

mtl3jx commented May 3, 2018

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.

  1. Rotated video does not fill the entire screen.
  2. 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" />

31781924_10155676575017075_9085845766697648128_n

@J3K
Copy link

J3K commented Feb 20, 2019

activityVideoView.addView(videoViewContainer, new ViewGroup.LayoutParams(100, 100);

You will find this in the VideoEnabledWebChromeClient.java.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants