cprcrack / VideoEnabledWebView

Android's WebView and WebChromeClient class extensions that enable fully working HTML5 video support
MIT License
1.05k stars 289 forks source link

Blank screen shown when fullscreen button is clicked #28

Open Sahana312 opened 7 years ago

Sahana312 commented 7 years ago

When the full screen button is clicked a blank black screen is shown sometimes. The video doesnt appear only the audio will be playing in the background. This happens even in your demo. i am loading an iframe with loadHtml(). Is there anything extra I have to do?

Myerden commented 7 years ago

could you show your code and layout file to see what is happening?

igorfastronicorrea commented 6 years ago

Hi guyz,

do you have any idea how fix this?

phucnguyentrong commented 6 years ago

Same issue, could anyone help us?

Myerden commented 6 years ago

I have faced like these problems. I fixed this by importing this views into my project directly. I copied all the views and components into my project, created required classes then used that views. And now I can play youtube videos without having problem.

webview.zip

this zip archive includes the same VideoEnabledWebView.java and VideoEnabledWebChromeClient.java

You can copy these to your project and then use it.

thank you @cprcrack :+1:

HardikMaru commented 6 years ago

@Myerden I have replaced the files with your one, still the same issue. Only white blank screen.

igorfastronicorrea commented 6 years ago

Hi Guy, My suggestion is utilized Google Youtube v3

https://developers.google.com/youtube/v3/

BigCoach commented 6 years ago

Try to replace .setVisibility(View.INVISIBLE ); with .setVisibility(View.GONE); in VideoEnabledWebChromeClient It helped me