New issue
Advanced search Search tips

Issue 884582 link

Starred by 2 users

Issue metadata

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



Sign in to add a comment

高さを基準にスケールされてしまう

Reported by tanaka.k...@synamon.jp, Sep 17

Issue description

UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3553.2 Safari/537.36

Steps to reproduce the problem:
ちょっと気になった点がありますので報告します。
chromeの拡張機能にあるchooseDesktopMedia(type:'screen')を使い解像度1920x1080のモニターの映像をキャプチャーしました。
キャプチャーしている最中に、Windowsのディスプレイの設定でキャプチャーしているモニターの向きを横から縦に変更しました。
キャプチャー映像も縦に変わりますがキャプチャーサイズが608x1080となりました。

What is the expected behavior?
getUserMedia()を実行する際のconstraintsは
{
    video: {
        mandatory: {
            chromeMediaSource: 'desktop',
            chromeMediaSourceId: id
        }
    }
}
としており、widthやheightに関する制約は設定していないため、キャプチャーサイズが1080x1920に変更されることを期待していました。

What went wrong?
ありません。

Did this work before? N/A 

Does this work in other browsers? N/A

Chrome version: 71.0.3553.2  Channel: canary
OS Version: 10.0
Flash Version:
 
Labels: Needs-Triage-M71
Components: Blink>GetUserMedia>Desktop
Cc: susan.boorgula@chromium.org
Labels: Triaged-ET Needs-Feedback
tanaka.kenji@ Thanks for the issue.

Request you to provide sample extension where this issue can be reproduced, which will help in further triaging.

Thanks..
拡張機能は単純にchooseDesktopMediaおよびgetUserMediaを行うものです。
cs.zip
959 bytes Download
Project Member

Comment 5 by sheriffbot@chromium.org, Sep 21

Labels: -Needs-Feedback
Thank you for providing more feedback. Adding the requester to the cc list.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Cc: braveyao@chromium.org
This is kind of working by design. 
Even you didn't set the resolution constraints, chrome will have a default setting, i.e. 1920x1080 as max width/height. So when you rotate the screen from landscape to portrait, the captured frame will be 1080x1920, and chrome will clamp the height to the maximum setting 1080, and width to 680 to keep the aspect ratio.

I think there can be several workaround:
- set the resolution constraints with a range, i.e. min 1080 and max 1920.
- when your app detects monitor orientation change, try to call track.applyConstraints() to apply the new resolution.

Let me know if they work.
Status: WontFix (was: Unconfirmed)

Sign in to add a comment