getusermedia

How to make getUserMedia() method works on Chromium Web browser inside WinForms application?

陌路散爱 提交于 2019-12-12 03:50:35
问题 I'm trying to get access to my webcam from my WinForms application using Chromium webbrowser control, to do that I installed my HTML file - which is shown below - to a server (on my machine) then I tried to navigate to it from my application but the error callback of getUserMedia() method was executed showing "Permission Denied Error", on the other hand it's working fine if I tried to navigate to it directly from chrome. So, is there anyone could know what causes this error ? // client.js

Cannot access camera in gonative.io app

大城市里の小女人 提交于 2019-12-11 14:13:56
问题 I have a webpage and show the camera stream to a user so that the user can take a snapshot later. I am using navigator.mediaDevices.getUserMedia: <video autoplay id="mycamtestvideo"></video> <script> navigator.mediaDevices.getUserMedia({video: true}) .then(function(stream){ video.src = window.URL.createObjectURL(stream); localMediaStream = stream; }) .catch(function(err){ console.log("error: "+err); }); </script> I can open the webpage in a browser on my PC and my android phone and see the

Record Video with Audio using Webcam in HTML Webpage

跟風遠走 提交于 2019-12-11 12:41:27
问题 I wish to know how to record a video from webcam which also records audio, currently the solutions out there like getUserMedia only records Video or Audio, one at a time, it does not record video that has audio in it. I need to create a website that allows users to RECORD LIVE VIDEO and save it in the website. I tried using some of the existing plugins like navigator.getUserMedia to record the video but that video get's recorded without any audio. So I just wish to know what changes do I need

getUserMedia - what if user makes no choice?

假如想象 提交于 2019-12-11 08:18:57
问题 I've adapted a library to record MP3 audio via the user's microphone. If the user allows or rejects the microphone access request, I'm fine, but I note that MDN says this: Note that it is possible for the returned promise to neither resolve nor reject, as the user is not required to make a choice. But it doesn't seem to say what, if anything, I can do catch that "no choice made" action. If the user merely quits the dialog, or blurs out of it without making a choice, can I catch that and

Instruct getUserMedia to use best available camera resolution

怎甘沉沦 提交于 2019-12-10 18:12:54
问题 I am using the getUserMedia function to record video from a webcam. Everyting works fine, except that it was only recording in 640x480 resolution, when I just specified video: true for the constraint. If I set the constraint as below, I now get better quality recording on my laptop: var mediaConstraints = { audio: true, video: { width: { min: 1280 }, height: { min: 720 } } }; But what if another device is capable of better than 1280x720, or has even lower capabilities? I tried playing around

Web Audio Api input from specific microphone

北慕城南 提交于 2019-12-10 17:46:48
问题 I'm using the Web Audio Api ( navigator.getUserMedia({audio: true}, function, function) ) for audio recording. If the user has several microphone devices, can I select the desired recording device? I've came across a problematic situation where a brand new Dell laptop (running Windows 8.1) has 2 microphone devices (on board and external) and the external device was set to default (set to default by the operation system). As expected, when recording, the input comes from the external

Make video stream Optional in getUserMedia

亡梦爱人 提交于 2019-12-10 16:53:45
问题 In my application a user can make calls if he can produce an audio stream. So, I need to require access to the microphone (audio stream). Without it the application should throw an error. Video is optional. So, I call navigator.getUserMedia and put constraints like this: { audio: true, video: false } And it throws an error when a microphone is not present, just like I need. But a side effect from this is that if the user also has access to a camera, video is not present in stream. But if I

Audio recording with HTML5

▼魔方 西西 提交于 2019-12-09 22:55:26
问题 I'm trying to implement audio recording in a website. Basically the user should be able to press a button and speak something into the microphone. The recorded audio should then be sent to the server for further processing. I realise that you can do this with Flash, but for now I'm trying to avoid that. I found several resources on the internet about it (i.e. link) but as it seems, this functionality is not widly supported yet. I experienced differences betweet the used browser and between

Can I get a live camera image inside my App in Firefox OS?

筅森魡賤 提交于 2019-12-09 22:08:15
问题 So I am having a look into Firefox OS right now. One thing I would like to try is to manipulate the device camera's live feed using canvas et.al. From what I can see in the blog posts (like this one ) and the code in the boilerplate app this is always done using a MozActivity , meaning that the user is leaving the application, takes a picture and passes this picture back to the application, where I could post-process it. But for live manipulation I would need to have a live camera feed inside

stop the webcam streaming of getUserMedia without page refreshing [duplicate]

柔情痞子 提交于 2019-12-09 02:24:49
问题 This question already has answers here : Stop/Close webcam which is opened by navigator.getUserMedia (15 answers) Closed 3 years ago . I am trying to close the webcam with javascript function (it has to be closed after receive some Ajax response), but it seems impossible to close without refreshing the page. All the methods for close it like video.src = null, video.pause...etc don't work at all in any browser. The unique way is to close the stream passed as parameter on the success functions,