Posts

Showing posts with the label video

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...

Does react-native-video work with react-native-navigation

I'm trying to get videos to play in my react native app. I'm trying to use react-native-video but when running the app via react-native run-android I get the error message: "undefined is not an object (evaluating'_reactNative.NativeModules.UIManager.RCT Video.Constants') This message doesn't really tell me much, but after trying to get this to work for a while I started to suspect that react-native-navigation, , which is the navigation I use for my app, has something to do with it. So I created a new react-native project and added react-native-video to it and got it working without too much trouble. So my question is if anyone has experienced the same thing, and could provide a solution to getting these two packages working together? My settings.gradle: rootProject.name = 'newproj' include ':react-native-video' project(':react-native-video').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-vi...

Capture video with flutter

Hi I am in the process of developing an app with flutter with video recording functionality. I have come across 2 plugins with ability to capture/save an image as a file with flutter: Camera v0.0.2 and Image_picker v0.2.1 , they work well and are official flutter plugins. In essence I would like to build a mini camera plugin with video recording capabilities with flutter, which would work with iOS and Android seamlessly. Any suggestions, direction, methods to upgrade these plugins are welcome. Thanks a bunch! Video recording is now enabled by our team on the official camera plugin v0.2.0 by submitting a pull request to the repository. The example app for this plugin uses additional plugins path_provider and video_player to display a sample of the video recorded. Hope this helps other flutter developers cheers!