getusermedia Questions
6
I'm playing with the html5/javascript getUserMedia api to write a js app that will use the device's camera if available. I'm using Modernizr to detect the capability (of the browser) like this:
if...
Charitacharitable asked 14/10, 2012 at 19:48
4
Solved
The desktopCapturer api example shows how to write a screen capture stream to a <video> element.
// In the renderer process.
var desktopCapturer = require('electron').desktopCapturer;
deskt...
Sepulchral asked 20/4, 2016 at 19:24
3
Solved
How can I detect width and height of the camera to use it on canvas and maintain the proportions??
I need to detect width and height of the camera and then use it on a canvas. In the new canvas I ...
Hilversum asked 1/12, 2017 at 12:23
2
In order to capture output audio stream from a tab in manifest v2 one could use chrome.tabCapture.capture API in the background script to get the stream. But, in manifest v3 tabCapture has been mov...
Doby asked 6/1, 2022 at 20:9
3
I need to capture an image from a web camera and convert to base64. Should be able to capture multiple frames and concatenate them and again convert to base 64. This code works well for capturing b...
Bloodstain asked 11/4, 2020 at 9:2
4
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 ...
Spout asked 25/3, 2018 at 15:52
5
Solved
Is it possible to control the camera's flashlight on a phone via a website? Say through Chrome or Firefox. I know it's possible using an Android or iOS app, which is implemented by all the flashlig...
Multitude asked 16/6, 2016 at 1:35
4
Solved
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 MediaDev...
Charitycharivari asked 14/12, 2017 at 10:46
2
Solved
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 o...
Michaelamichaele asked 23/5, 2021 at 20:14
1
I've built a Chrome extension that captures screen activity and microphone input and outputs a video file. Since chrome.desktopCapture can't record audio input alongside screen capture, I'm getting...
Outcross asked 26/6, 2018 at 12:25
17
Solved
I opened a webcam by using the following JavaScript code:
const stream = await navigator.mediaDevices.getUserMedia({ /* ... */ });
Is there any JavaScript code to stop or close the webcam?
Bingaman asked 25/7, 2012 at 4:51
2
Solved
I am recording my browser window using MediaStream and MediaRecorder.
But need to disable the mouse cursor from being recorded, so when I create my video track, i use the following code:
stream['in...
Fokine asked 7/10, 2020 at 19:16
4
I'm using getUserMedia to get access to screen sharing. When user clicks a stop button, I want to stop screen sharing.
According to MediaStream API, the stop() function should be called to stop s...
Vanquish asked 21/7, 2014 at 5:11
4
Solved
I am capturing audio data using getUserMedia() and I want to send it to my server so I can save it as a Blob in a MySQL field.
This is all I am trying to do. I have made several attempts to do thi...
Eolanda asked 27/8, 2014 at 9:17
2
Solved
i wanted to take screenshots from a mobilephone camera using javascript getUserMedia function but resolution is very bad.
if (navigator.mediaDevices) {
// access the web cam
navigator.mediaDevic...
Germanic asked 11/9, 2019 at 9:0
2
I'm working on a C code which interacts with hardware (an external USB device) and outputs video frames in realtime, which is eventually built as a DLL file:
int get_frame() {
// interacts with ha...
Decker asked 30/9, 2022 at 16:38
1
I'm using getUserMedia() to capture a camera stream on iOS 11's Safari. When I get the list of cameras using the MediaDevices API, the labels are blank. Is there a way to reliably determine which c...
Acquaintance asked 21/11, 2017 at 17:41
2
Solved
We're trying to make a video conferencing app.
When running the app on Windows for testing, the video turns on just fine but when we run it on a physical device (an Android phone), the following er...
Chard asked 3/8, 2022 at 5:12
2
I wanted to record Laptop's webcam video stream on safari browser.
I am accessing the stream on browser by using MediaDevices.getUserMedia().
It seems MediaRecorder interface will do the trick (h...
Asha asked 19/4, 2017 at 23:44
4
With browser Web API, I'd like to set MediaDevices.getUserMedia constraints attributes, suitable to record audio speech (voice messages), e.g. setting these parameters:
mono
16bit
16KHz
Here my...
Engenia asked 15/6, 2020 at 16:9
0
I'm trying to capture the camera input and play it in a video element. This code always works on desktop Chrome and Safari. On iOS it always works while in browser mode using Safari.
The problem I'...
Parlor asked 2/6, 2022 at 23:10
7
Solved
It's November of 2019, this JavaScript code works in
FireFox (70.0.1 (64-bit)),
Safari (13.0.2 (15608.2.30.1.1)),
Opera (Version:65.0.3467.48),
On a Windows Chrome Version 70.0.3538.77 (64-bit)...
Inelastic asked 22/11, 2019 at 19:26
3
Solved
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 ...
Disharoon asked 14/8, 2014 at 12:50
3
Solved
Hey I would like to know if there is any way to choose codecs when creating the offer/answer in WebRTC. There are currently not many video codecs to choose from, but there are audio codecs like Opu...
Posturize asked 28/1, 2014 at 10:27
2
I am trying to capture a 5 minute long video from a web cam in a website.
I am currently using an html5 video element to display the getUserMedia result stream.
Is there anyway for me to get the ...
Prolamine asked 20/10, 2014 at 19:38
1 Next >
© 2022 - 2025 — McMap. All rights reserved.