VideoEnabledWebView icon indicating copy to clipboard operation
VideoEnabledWebView copied to clipboard

Blank screen shown when fullscreen button is clicked

Open Sahana312 opened this issue 8 years ago • 7 comments

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?

Sahana312 avatar Jul 31 '17 10:07 Sahana312

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

Myerden avatar Aug 21 '17 01:08 Myerden

Hi guyz,

do you have any idea how fix this?

igorfastronicorrea avatar Oct 03 '17 13:10 igorfastronicorrea

Same issue, could anyone help us?

phucnguyentrong avatar Oct 05 '17 09:10 phucnguyentrong

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:

Myerden avatar Oct 05 '17 18:10 Myerden

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

HardikMaru avatar Oct 25 '17 09:10 HardikMaru

Hi Guy, My suggestion is utilized Google Youtube v3

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

igorfastronicorrea avatar Oct 26 '17 17:10 igorfastronicorrea

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

BigCoach avatar May 22 '18 14:05 BigCoach