get screen stream with 1536*1002,But the actual results is 1534*1002
Reported by
mmzh...@gmail.com,
Sep 28 2017
|
|||||
Issue description
UserAgent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.78 Safari/537.36
Steps to reproduce the problem:
1. remote control pc and computer resolution is 1584*1034(tools:Remote Desktop Organizer)
2. try to get screen stream with the resolution is 1536*1002
3.
What is the expected behavior?
can get the screen stream is 1536*1002
What went wrong?
the stream from navigator.mediaDevices.getUserMedia is 1534*1002
Did this work before? N/A
Chrome version: 60.0.3112.78 Channel: n/a
OS Version: 6.1 (Windows 7, Windows Server 2008 R2)
Flash Version:
let constraints = {};
constraints.video = {mandatory: {
chromeMediaSource: 'desktop',
chromeMediaSourceId: event.data.sourceId,
maxWidth: 1536,
maxHeight: 1002,
}
};
window.navigator.mediaDevices.getUserMedia(constraints).then(function(mediaStream) {
stid.srcObject = mediaStream;
}).catch(function(err) {
console.log(err);
});
,
Sep 29 2017
@Reporter: Would it be possible to attach any same test file with the above test case for trying a repro of this. Thanks!
,
Sep 29 2017
https://www.webrtc-experiment.com/Pluginfree-Screen-Sharing/#2941564300450792 Please build on localhost and remote control pc with resolution is 1584*1034(tools:Remote Desktop Organizer) let constraints = {}; constraints.video = {mandatory: { chromeMediaSource: 'desktop', chromeMediaSourceId: event.data.sourceId, maxWidth: 1536, maxHeight: 1002, } }; you will get the stream is 1534*1002
,
Sep 29 2017
Thank you for providing more feedback. Adding requester "divya.padigela@techmahindra.com" to the cc list and removing "Needs-Feedback" label. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
Sep 29 2017
,
Oct 2 2017
I will take a look, but note that this does not look not like a bug at all. maxWidth: 1536 does not mean that you are guaranteed to get 1536. It means you will get something not larger that 1536 and 1534 satisfies that constraint. If you want exactly 1536 you can also try with minWidth: 1536. If you get 1534 with minWidth set to 1536 that would be a bug.
,
Oct 9 2017
yes,you are right ,set minWidth can resolve my problem,thank you!
,
Oct 9 2017
Closing as WontFix as per #8 |
|||||
►
Sign in to add a comment |
|||||
Comment 1 by ligim...@chromium.org
, Sep 28 2017