Questions tagged [getusermedia]

Access to media data streams--webcam video, microphone audio--from browser Javascript. Abbreviated gUM

getUserMedia provides access to data streams from media devices such as webcams and microphones. It is used from Javascript running in a user's web browser. It supports the development of front-end web application code for capturing media.

Support varies from browser to browser and device to device. See CanIUse.com for up-to-date information.

getUserMedia forms part of browser-resident WebRTC support (see ). It can be used by itself without establishing WebRTC connections.

getUserMedia is often abbreviated gUM. It's often used in conjunction with MediaRecorder; see .

Further references:

See also:

964 questions
0
votes
2 answers

What do I need, to make getUserMedia() work?

I am pretty new to javascript, and I want to make use of getUserMedia(). When I go on this page everything works fine for me, chrome is asking me to allow access to my camera. But when I download source code of their site from their github and try…
ojek
  • 8,047
  • 16
  • 65
  • 106
0
votes
0 answers

Facial recognition with props in PHP lagging when changing props

I found a facial recognition library with props but wanted for it to be able to change props that you use instead of only one prop. I put the function of face.html inside a onclick function where you send the src and it will make the camera with…
jhdj
  • 631
  • 1
  • 13
  • 26
0
votes
1 answer

getUserMedia permission denied after clicking the "allow" button

I'm trying to use the navigator.getUserMedia() and as expected on my webpage (or for example https://apprtc.appspot.com/) I'm asked to allow or deny access to my webcam/microphone. But after I click "allow" nothing happens and on my log I can…
calude
  • 303
  • 2
  • 8
0
votes
1 answer

How do I play a video file after selecting a video on my iPhone via getUserMedia in mobile Safari?

To anyone who can help, I'm at my wit's end and can't figure out how to play a tmp video file from my iphone. I'm using getUserMedia and I can save the file to my database and play it after upload. However, I'd like to preview a video before…
0
votes
1 answer

can we store LocalMediaStream locally?

in WebRTC , getUserMedia() gives you a MediaStreamObject - LocalMediaStream. HTML5ROCKS has a tutorial in which you can relay the camera. Is it possible to store the LocalMediaStream in localstorage & then pass on the raw bytearray data to the…
fineTuneFork
  • 67
  • 3
  • 14
-1
votes
2 answers

How to call a Jquery function in Ajax callback

I have Two different file I am calling a jquery Function which is created in my File2.js from file1.php #file1.php In my first file I am calling a Jquery Function in ajax
Deepak pal
  • 61
  • 6
-1
votes
1 answer

cannot read property 'getusermedia' of undefined over https

I have a react application that should record audio from microphone and send it to a backend. The microphone input is implemented with navigator.mediaDevices.getUserMedia. The page runs perfectly over localhost and from other devices in my wifi…
guzgftt
  • 3
  • 1
-1
votes
1 answer

Record (and stop) an already running Webcam/Media Stream

I’ve created a minimal WebRTC test site that is able to request the user’s webcam/audio stream, to record it, and to playback the recording after it has been stopped. Demo: https://output.jsbin.com/tabosipefo/ Edit1:…
Kalaschnik
  • 364
  • 2
  • 15
-1
votes
1 answer

wait on async fuction +

I want to get the last deviceId. Please try the following code on a smartphone. https://www.ofima.ch/file1.html Inside the function "getConnectedDevices" the variable deviceId ok. But outside is returned a promise and not the variable deviceId. How…
-1
votes
1 answer

Figuring out current torch state

Suppose I have a MediaStream captured through getUserMedia. If this is a rear facing camera on a smartphone, I can turn on/off the light like so: const videoTrack = mediaStream.getVideoTracks()[0]; videoTrack.applyConstraints({ advanced: [ {…
Brad
  • 146,404
  • 44
  • 300
  • 476
-1
votes
3 answers

How to change the value of a variable using input field?

I have created a wordpress website. I want to extract each user's data using php through his/her id. I have created this code;
Axmed nuur
  • 117
  • 3
  • 13
-1
votes
1 answer

getUserMedia throws "Use of undefined constant..."

I've recently migrated my website to PHP 7.3. There is an input box where I allow the user to upload a picture using their media device. Since upgrading, I get a few "Use of undefined constant..." errors. Here is the PHP code: function…
-1
votes
1 answer

DOMException when calling getUserMedia using React

I am building a web application for mobile. I am trying to access the camera using getUserMedia in google chrome. My application is built in react and i am having issues when trying this, giving me the following error. Error: DOMException import…
Kay
  • 11,044
  • 31
  • 100
  • 173
-1
votes
1 answer

cordova-plugin-crosswalk-webview and I'm getting navigator.getUserMedia is not a function

I am developing an ionic WebRTC app using cordova-plugin-crosswalk-webview and I'm getting navigator.getUserMedia is not a function when running on the android device any idea why? navigator.getUserMedia({audio: true, video: true}, …
Hdia Saad
  • 1
  • 2
-1
votes
1 answer

Get back video format after

Is there way to get the video from webcamera (getUserMedia), pass it to canvas, make some effects with this video and get back in video format (mp4 for example)? I'm looking for a way to be done on client side only. And also it should be a real time…
1 2 3
64
65