Blank screen shown when fullscreen button is clicked
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?
could you show your code and layout file to see what is happening?
Hi guyz,
do you have any idea how fix this?
Same issue, could anyone help us?
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.
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 I have replaced the files with your one, still the same issue. Only white blank screen.
Hi Guy, My suggestion is utilized Google Youtube v3
https://developers.google.com/youtube/v3/
Try to replace .setVisibility(View.INVISIBLE ); with .setVisibility(View.GONE); in VideoEnabledWebChromeClient It helped me