getusermedia

Alternative to getUserMedia() for reading live camera stream on iOS?

ε祈祈猫儿з 提交于 2019-12-20 21:57:09
问题 We are building a mobile barcode-scanner using QuaggaJS that reads barcodes directly from the device's camera stream. Works fine on desktop/Android, but doesn't work at all on iOS. From initial research, I've found that iOS simply does not support WebRTC/ getUserMedia through Safari or iOS Chrome (related links below), which is what QuaggaJS uses to read the camera stream. I've also seen this question about capturing a still image on iOS, but the answer provided is only for capturing a still

React Native: Webview getUserMedia not working (onPermissionRequest override?)

我的梦境 提交于 2019-12-20 21:00:47
问题 I'm developing an application for iOS, Android and Windows with React Native in which I need to show a webpage through a WebView . That webpage accesses the camera of the device, so it uses MediaDevices.getUserMedia() Javascript function. It works without problems in desktop, even in the Chrome app on the smartphone . However, when I call the webpage via the React Native <WebView /> , I get a PermissionDenied error. The problem is that no request is shown to let me accept that permission. It

Does getUserMedia works in ionic-webview in Android app?

断了今生、忘了曾经 提交于 2019-12-20 05:38:06
问题 I have given all the permissions for camera and microphone. Enable CSP in meta tag for the iframe. Still not able to get permission for camera and microphone in getusermedia for iframe. home.html ion-content class= 'padding has-subheader'> app-component.ts constructor(platform: Platform, statusBar: StatusBar, splashScreen: SplashScreen, private androidPermissions: AndroidPermissions) { platform.ready().then (() => { statusBar.styleDefault(); splashScreen.hide(); this.androidPermissions

getUserMedia frozen at first frame on Android Chrome

独自空忆成欢 提交于 2019-12-19 09:47:11
问题 I have a working code on desktop browsers supporting getUserMedia Api, I can correctly see a video preview of my webcam in the div videoPreview . However, when running on Android device, this same code takes a picture with my front camera when I accept to share it in Chrome browser, then the preview keeps frozen on this first frame. navigator.getMedia = (navigator.getUserMedia || navigator.webkitGetUserMedia || navigator.mozGetUserMedia); navigator.getMedia( // constraints {video:true, audio

Speech recognition and getUserMedia

核能气质少年 提交于 2019-12-19 06:56:30
问题 I'm building a web application and plan on using both speechRecognition and navigator.getUserMedia for audio input. I noticed that my desktop browser (Chrome on Mac, v. 31.0.1650.63) asks twice for permission to use the microphone. While this may be a little bit annoying for the user, both voice recognition and audio input seem to work. However, if I open the same page on Android (Nexus 7, Android v4.4.2; Chrome v31.0.1650.59), it asks twice for permission to use my microphone, but I can only

Speech recognition and getUserMedia

假装没事ソ 提交于 2019-12-19 06:55:21
问题 I'm building a web application and plan on using both speechRecognition and navigator.getUserMedia for audio input. I noticed that my desktop browser (Chrome on Mac, v. 31.0.1650.63) asks twice for permission to use the microphone. While this may be a little bit annoying for the user, both voice recognition and audio input seem to work. However, if I open the same page on Android (Nexus 7, Android v4.4.2; Chrome v31.0.1650.59), it asks twice for permission to use my microphone, but I can only

how to enable screen/desktop capture in chrome?

浪尽此生 提交于 2019-12-18 15:54:29
问题 I am able to achive it in firefox by folowing below steps: make my server https append my domain to the user preference media.getusermedia.screensharing.allowed_domains in about:config to whitelist it for screen sharing. use constraint like {video: {mediaSource: "screen"}} , but in chrome, I am getting totally lost. most places keep telling: You'll need to first enable the flag called Enable screen capture support in getUserMedia() in chrome://flags. ( but I am unable to find this flag

Record Audio Stream from getUserMedia

核能气质少年 提交于 2019-12-18 11:54:20
问题 In recent days, I tried to use javascript to record audio stream. I found that there is no example code which works. Is there any browser supporting? Here is my code navigator.getUserMedia = navigator.getUserMedia || navigator.webkitGetUserMedia || navigator.mozGetUserMedia || navigator.msGetUserMedia; navigator.getUserMedia({ audio: true }, gotStream, null); function gotStream(stream) { msgStream = stream; msgStreamRecorder = stream.record(); // no method record :( } 回答1: You could check

WebRTC - Browser doesn't ask for mic access permission for local html file

て烟熏妆下的殇ゞ 提交于 2019-12-18 05:01:37
问题 I have some simple webRTC code which uses getUserMedia to gain access to user's mic. Now when I load that html file (saved at my localhost) in my browser, the browser doesn't ask for mic access permission and thus get failed to get access. But when I run the same html inside the w3schools.com editor, it asks for mic access permission and upon allowing it to access my mic, it works fine... Why is this strange behaviour? 回答1: When you open an html file right off the filesystem (file:// prefix),

iOS11 getUserMedia with apple web-app not working

徘徊边缘 提交于 2019-12-18 03:43:31
问题 Edit: Duplicate of How to access camera on iOS11 home screen web app? I'm running into a problem with using a apple web-app together with camera access through the getUserMedia API. I have some application that is working fine when accessed through safari, it asks for persmission to use the camera and upon approval I can see the camera feed. But if I save this same page to the home screen as an web-app this does not work anymore. There is no prompt for camera access, which seems to be the