Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 77050

WebView for Android unable to play videos

$
0
0

I wanted to play medias, particularly videos in my Xamarin Forms. Since there is no built in control for videos, I try to use WebViews instead. For iOS, using WebView to play, say youtube videos, has no issues at all. It even launches the iOS player so you could have some other controls while watching the video.

On Android, it's a different story. I could see the thumbnail but once i start playing, it shows a black box. But if you hover the mouse back to the video, it shows it is playing. It's just the video is not showing.

I understand this needs some sort of custom renderer because you need to enable some settings etc. I also enabled the hardware acceleration. But still to no avail.

Anybody has a work around for this?

References I used this one and the android documentation from webView


Viewing all articles
Browse latest Browse all 77050


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>