React Native Android Webview Video
I'm using React Native to create an Android/iOS app and trying to get a video to play in the WebView component. The video plays fine on iOS, but I'm having trouble getting it to play in the android WebView. I've come across a few threads like this one (Enabling HTML5 video playback in android WebView?) that claim this is a fairly common problem on Android and can be solved by importing WebChromeClient and setting that option on the webview like so: mainWebView.setWebChromeClient(new WebChromeClient()); But almost all these threads are strictly about building a native Android app and not using React Native. Does anyone know how to get this to work in React Native?
I refer to an article by Yevgen Safronov In it, he writes Obviously the most challenging part of the application is handling live video stream, because it requires switching stream’s video quality based on available Internet bandwidth. But first things first — I needed a RN native c...