getusermedia

Changing FocusMode not working using MediaStream API in Google Chrome

落爺英雄遲暮 提交于 2019-12-07 05:23:31
问题 In Google Chrome Browser i was able to get live feed of my connected USB Camera using getUserMedia() API. I have a slider to change the brightness value and this is working fine. I also want focusMode to toggle from continuous to manual (The camera always starts with continuous focusMode). I have the below Javascript code to change FocusMode. const video_constraints ={}; //Create the following keys for Constraint video_constraints.video = {}; video_constraints.video.width = {}; video

getUserMedia is not working in chrome version 48.0.2560.0 while working in 46.0

扶醉桌前 提交于 2019-12-07 05:02:14
问题 my confusion is that i had used the gerUSerMedia() in my page which is not working from our our server while in some of the machine had chrome with version of 48.0.2560.0 in those chrome browser it will give following warning : getUserMedia() no longer works on insecure origins. To use this feature, you should consider switching your application to a secure origin, such as HTTPS. See https://goo.gl/rStTGz for more details. while in with chrome 46.0 its working fine with the same code and with

Polyfill file input with accept capture (using getUserMedia to capture?)

二次信任 提交于 2019-12-07 03:30:35
问题 I want to enable image (& audio & video) uploads in a survey framework. To do so, input file is nearly sufficient for my purposes. On some mobile browsers <input type="file" accept="image/*;capture=camera"> is a really simple way of letting users choose to upload an existing image or to take a new one. Of course the UI for viewing and choosing among the pictures is provided too. Desktop browsers did not go this route. Instead, some pretty nice stuff seems to be possible using getUserMedia() .

Firefox: drawImage(video) fails with NS_ERROR_NOT_AVAILABLE: Component is not available

安稳与你 提交于 2019-12-06 21:52:04
问题 Trying to call drawImage with a video whose source is a webcam feed seems to fail in Firefox with an NS_ERROR_NOT_AVAILABLE: Component is not available . I have tried to wait for every event the video tag fires: play , playing , canplay , loadeddata , loadedmetadata , and so on, and nothing works. This seems to be because these events are firing before the stream is properly loaded into the <video> element. JSFiddle with error (You can view the error in the console) A side effect is that the

Recording audio from multiple microphones simultaneously with getUserMedia()

本秂侑毒 提交于 2019-12-06 21:50:48
问题 it is possible to access different microphones at the same time using getUserMedia() ? This whould be useful to filter out background noise; create some sort of stereoscopic effect; make available multiple audio tracks for an international streaming conference. Apparently, it is quite tricky for video source: Capture video from several webcams with getUserMedia I was wondering if, for the audio source, the problem was different. 回答1: You should be able to do this but I imagine the browser

getUserMedia alternative for iOS

懵懂的女人 提交于 2019-12-06 14:12:30
问题 Does anyone know if there are any (near) future plans to enable getUserMedia for Safari on iOS? Secondarily, does anyone know of any work-arounds to access the camera from a standard mobile website on an iPhone? I saw a post that referenced: <input type="file" accept="image/*" capture="camera"> Can anyone confirm that this really works, and would I use this in lieu of getUserMedia, or would I do a browser/device detect first to determine if I should go the getUserMedia v. capture="camera"

What's the state of the art for getting user media in browsers?

ⅰ亾dé卋堺 提交于 2019-12-06 10:25:55
From MDN's page on Navigator.getUserMedia() : Deprecated This feature has been removed from the Web standards. Though some browsers may still support it, it is in the process of being dropped. Do not use it in old or new projects. Pages or Web apps using it may break at any time. ... So how in heaven can we access user media in browsers? I see around some webapps that are perfectly capable to detect a smartphone camera so what is the solution? For example this doesn't work anymore http://www.html5rocks.com/en/tutorials/getusermedia/intro/ jib The state of the art at the moment is navigator

Why getUserMedia() showing permission denied error in chrome

僤鯓⒐⒋嵵緔 提交于 2019-12-06 06:57:05
问题 I am using getUserMedia() for video streaming in node.js and angular project(MEAN). My <video> tag is inside partial file. This project is running smoothly & compatible in Google Chrome, Opera and Firefox in local server. But when I am trying to run it over Ubuntu server using Google Chrome (only problem with Chrome), video is not showing. Error details in console as follows: (program):84 navigator.getUserMedia error: PermissionDeniedError(error name) I am using chrome version 47.0.2526.80 .I

Is it possible to embed two webcam streams on one Html page from one or more cameras.

ⅰ亾dé卋堺 提交于 2019-12-06 06:24:44
Im trying to Embed two webcam streams on one HTML page. I am use to a get user media script that I got from this site https://www.kirupa.com/html5/accessing_your_webcam_in_html5.htm It works fine for one steam but when I try to make two different video streams on the same page it doesn't work. I have tried making a div tag with a grid in it and putting one video element in each cell. This results in only one stream. Here is my most recent try <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta content="stuff, to, help, search, engines, not" name="keywords"> <meta content="What this page

WebRTC getUserMedia promise api support in Chrome

时光总嘲笑我的痴心妄想 提交于 2019-12-06 05:09:31
问题 Does chrome support promise based APIs for WebRTC? I am not able to get the getUserMedia() promised based API working in Chrome. <!DOCTYPE html> <html> <head> <title> Mitel WebRTC client </title> <script src="https://webrtc.github.io/adapter/adapter-latest.js"></script> <script src='dist/webrtc.min.js'></script> <script type="text/javascript"> function startUp() { var options = { audio: true, video: true }; if (getUserMedia) { getUserMedia(options) .then(function (stream) { console.log(