getusermedia

Capture high resolution video/image html5

元气小坏坏 提交于 2021-02-06 08:57:12
问题 I use geUserMedia() to capture image from webcam Intro. Best resolution that I get is 640 X 480 , but I have HD webcam that records video with 1280 X 720 , takes a picture 2592 X 1944 . How can I capture High Resolution photos? Here is one sample of code. It doesn't care about canvas size: <video autoplay id="vid" style="display:none;"></video> <canvas id="canvas" width="1280" height="720" style="border:1px solid #d3d3d3;"></canvas><br> <button onclick="snapshot()">Take Picture</button>

Event listener that “camera and microphone blocked” is allowed

百般思念 提交于 2021-01-29 14:40:44
问题 By getUserMedia, it is possible that UserMedia is blocked by user. navigator.mediaDevices.getUserMedia({ audio: true }) .then((stream) => { ... }) .catch(() => { this.usermedia_blocked = true; }); When the setting is changed to "always allow", I want to continue the subsequent task. But how can I detect that "always allow & done" is clicked? Appear.in start video call after "always allow & done " is clicked. I want to do the same thing. 回答1: appear.in developer here. What do is to poll

How can I pass a fake media stream to safari IOS in browserStack capability?

£可爱£侵袭症+ 提交于 2021-01-29 02:58:14
问题 I am using protractor and selenium with browser stack and trying to automate a webrtc web application, I need to get rid of browser asking for permission and using a fake stream instead of real camera and mic as available in chrome. I have tried using these options they both do not work. Option 1: var capabilities = { 'browserName': 'iPhone', 'device': 'iPhone 6S', 'realMobile': 'true', 'os_version': '11.4', "media.navigator.permission.disabled": true, "media.navigator.streams.fake": true };

Why when both audio and video MediaStreamTracks enabled parameter set to false, “on-air” indicator keeps being turned on?

我是研究僧i 提交于 2021-01-27 15:50:38
问题 W3C http://www.w3.org/TR/mediacapture-streams/#life-cycle-and-media-flow article on media flow lifecycle says: When all tracks connected to a source are muted or disabled, the "on-air" or "recording" indicator for that source can be turned off; when the track is no longer muted or disabled, it must be turned back on. Is mentioned behaviour implemented in Chrome or not? 回答1: Update: Firefox now supports turning off the camera light on mute. Edits in bold . I gather from the subject that you