delight-im / Android-AdvancedWebView

Enhanced WebView component for Android that works as intended out of the box
MIT License
2.39k stars 574 forks source link

WebView doesn't display youtube videos #138

Closed iamabeljoshua closed 3 years ago

iamabeljoshua commented 7 years ago

I am facing an issue with the library. Youtube videos aren't displayed but the music plays. any idea how I can work around this?

ocram commented 7 years ago

What Android version is the device or emulator running on where you tested this?

Did you try to use fullscreen mode?

Does the video show up in default (non-fullscreen) mode?

What about video on other sites, e.g. vimeo.com?

iamabeljoshua commented 7 years ago

Thanks for your reply, I tested it on Android Nougat, I haven't tried full-screen mode yet as my app is not meant for watching videos or a replacement for web browsers..

Yes the video is not on full-screen mode for now.

I tried vimeo and it's the worst... It displays a blank page when the video is playing.

ocram commented 7 years ago

Thanks!

There are a few other issues here related to video. You can search them, but they may not really be related after all. Most are about fullscreen mode.

Can you try on Marshmallow or Lollipop instead? Does that change anything?

iamabeljoshua commented 7 years ago

Ok I will give it a try... thanks

iamabeljoshua commented 7 years ago

I tried it on android version 4.4.... this seems to be an issue on the version of android Marshmallow and above...

ocram commented 7 years ago

So on Android 4.4, video is showing up, while on Android 5.0 through 7.0, video is not visible (black?) but only audio plays? Is that correct?

Did you really see that behavior on 5.x, 6.x and 7.x? Can you perhaps try different devices for one of those versions?

igorfastronicorrea commented 7 years ago

Hi Ocram,

I'm testing in Android 7.0, 6.0 and 5.1, it's not working at all. When click in Full Screen, the audio continue but the video is black or white. Any idea how fix this?

A86S commented 6 years ago

facing same issue any success ?

ocram commented 3 years ago

@igorfastronicorrea (and perhaps @A86S), the fullscreen solution is discussed in https://github.com/delight-im/Android-AdvancedWebView/issues/84

This issue right here originally was about non-fullscreen problems, as far as I understood.