I'm trying to do some basic things by getting an Android device's camera stream with getUserMedia. To my understanding, this should be supported on Android Lollipop, which I'm running, but even with permissions set to allow video and audio my request for a media stream is automatically denied.
So I tried using Crosswalk with Ionic, and I can get the media stream. The data is just empty. To my understanding this should be supported. Does anyone else have experience with getting camera video stream data with Cordova / Ionic?
Make sure that you have RECORD_AUDIO and CAMERA permissions in platforms/android/AndroidManifest.xml:
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.CAMERA" />
Cordova takes care about necessary permissions for Cordova API and adds them into manifest file, but it doesn't for HTML5 API.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With