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:

1098 questions
13
votes
3 answers

Which Camera will open getUserMedia API in mobile Device? Front or Rear?

While using getUserMedia API to access camera in desktop it will open web camera.of course it is help to video communication.but which camera is invoked when it is used in mobile device.Front cam or Rear cam?.is there needed code for selecting…
Nisham Mahsin
  • 1,399
  • 5
  • 19
  • 43
13
votes
5 answers

Record Audio Stream from getUserMedia

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…
Shih-En Chou
  • 4,007
  • 6
  • 20
  • 27
12
votes
1 answer

navigator.mediaDevices.getUserMedia API rejecting with error "NotReadableError: Concurrent mic process limit."

During an active media flow(voice) navigator.mediaDevices.getUserMedia works fine when connected to internal mic, as soon as I switch to Bluetooth device and rerun the same API to fetch the latest media stream, I get the error "NotReadableError:…
user3214392
  • 245
  • 4
  • 15
12
votes
4 answers

Poor audio quality with getUserMedia. Any ideas why?

I'm trying to set up an audio recorder in a React web application for recording large groups of people (15+) talking, but can't seem to get the recording quality right. I initially tried capturing the audio recordings by passing the following…
12
votes
1 answer

Is it possible to upload stream on amazon s3 from browser?

I want to capture webcam video stream, and directly stream it to S3 storage. I've learned that you can upload via stream to s3: https://aws.amazon.com/blogs/aws/amazon-s3-multipart-upload/ I've learned that you can upload via…
Muhammad Umer
  • 17,263
  • 19
  • 97
  • 168
12
votes
2 answers

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

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…
Brian Mansfield
  • 370
  • 2
  • 5
  • 18
12
votes
4 answers

How to Hide Firefox Camera Icon Overlay in Windows

I'm working on a kiosk project that uses Firefox and mozGetUserMedia to access an attached camera. The problem is, even using kiosk addons (like mKiosk) this icon appears at the top of the screen whenever the camera is accessed using…
Pop-A-Stash
  • 6,572
  • 5
  • 28
  • 54
12
votes
4 answers

How to remove track from MediaStream and "stop" webcam?

I'm trying to remove a track from a MediaStream. MediaStream.removeTrack() removes the track from the stream, but the camera light is left on indicating that the camera is still active.…
Jonathan
  • 2,968
  • 3
  • 24
  • 36
12
votes
2 answers

Capturing an image from a webcam

I'm attempting to randomly capture an image from a webcam and then save it to my server, right now i'm using getUserMedia to stream the webcam to video element then I can capture an image to a canvas using a button but i'm not sure how to save that…
TurtleTopiary
  • 133
  • 1
  • 2
  • 7
11
votes
2 answers

Detect UserMedia Permission Before Requesting It

I'd like to explain to users why the camera/microphone is needed before asking them, so that they can make a better choice if they want to grant it or not. In order to implement that I need a way to detect if the permission has previously been…
Florian Wendelborn
  • 1,667
  • 1
  • 19
  • 29
11
votes
4 answers

JavaScript GetUserMedia using Chrome with localhost without HTTPS

I didn't know how to express it in the title, but I'm having an issue with Chrome. I'm trying to use GetUserMedia() and GetPosition() in Chrome. I know that it requires SSL certification first, unless you're on localhost. The thing is, I can't try…
11
votes
3 answers

Web Audio: How can I get a mobile microphone to pick up audio from a distance?

Getting access to the user's microphone through navigator.getUserMedia is pretty easy. But what if I'm using a mobile browser and want to pick up audio from a distance, like with a "speakerphone" mode? How would I go about achieving this? There…
Ten Bitcomb
  • 2,316
  • 1
  • 25
  • 39
11
votes
1 answer

Only secure origins are allowed (see: https://goo.gl/Y0ZkNV)

Webcam not working. it display on a console that "Only secure origins are allowed", I accessing the web app in the server. I'am using 192.168.1.11/myApp to access my system. it is not working in chrome but in firefox its working. I update the…
L..
  • 307
  • 1
  • 3
  • 8
11
votes
1 answer

Get consistent audio quality with getUserMedia using different browsers

What I'm doing I'm using the getUserMedia API to record audio in the browser and then send this audio to a websocket server. Furthermore, to test the recordings, I use soundflower on a Mac as an input device, so I can play a wave file, instead of…
basilikum
  • 10,378
  • 5
  • 45
  • 58
11
votes
1 answer

Recording audio from multiple microphones simultaneously with getUserMedia()

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…
leonard vertighel
  • 1,058
  • 1
  • 18
  • 37