Closed
Bug 1182938
Opened 10 years ago
Closed 10 years ago
getUserMedia fake constraint always returns 640x480 resolution
Categories
(Core :: WebRTC: Audio/Video, defect, P2)
Tracking
()
RESOLVED
DUPLICATE
of bug 1088621
| backlog | webrtc/webaudio+ |
People
(Reporter: fippo, Unassigned)
Details
User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/43.0.2357.81 Chrome/43.0.2357.81 Safari/537.36
Steps to reproduce:
call getUserMedia with a resolution constraint (e.g. for 640x360) and fake: true and attach it to a video element. The following snippet does that:
var vid = document.createElement('video');
vid.onresize = function() { console.log(vid.videoWidth, vid.videoHeight); };
navigator.mozGetUserMedia({fake: true, audio:false, video: {width: {exact: 1280}, height: {exact: 720}}}, function (stream) { vid.mozSrcObject = stream; }, function (err) { console.log(err); })
Actual results:
the resulting stream is 640x480
Expected results:
the resulting stream is 1280x720, the width/height constraints are ignored.
Comment 1•10 years ago
|
||
Would be useful for tests. Note that we may not want to return the requested resolution, but instead mimic a camera with a set of resolutions (352x288, 320x240, 640x480, 1024x768, 1280x720, 1920x1080, etc.)
Status: UNCONFIRMED → NEW
backlog: --- → webRTC+
Rank: 25
Ever confirmed: true
Priority: -- → P2
Updated•10 years ago
|
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•