New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 769620 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner: ----
Closed: Oct 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug



Sign in to add a comment

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);
            });
 
Components: Internals>Media
Cc: divya.pa...@techmahindra.com
Labels: Triaged-ET Needs-Milestone Needs-Feedback
@Reporter: Would it be possible to attach any same test file with the above test case for trying a repro of this.

Thanks!

Comment 3 by mmzh...@gmail.com, 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
Project Member

Comment 4 by sheriffbot@chromium.org, Sep 29 2017

Labels: -Needs-Feedback
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
Components: -Internals>Media -Blink Blink>GetUserMedia
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.

Comment 7 Deleted

Comment 8 by mmzh...@gmail.com, Oct 9 2017

yes,you are right ,set minWidth can resolve my problem,thank you!
Status: WontFix (was: Unconfirmed)
Closing as WontFix as per #8

Sign in to add a comment