高さを基準にスケールされてしまう
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:
,
Sep 17
,
Sep 20
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..
,
Sep 21
拡張機能は単純にchooseDesktopMediaおよびgetUserMediaを行うものです。
,
Sep 21
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
,
Oct 5
,
Oct 5
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.
,
Oct 18
|
||||||
►
Sign in to add a comment |
||||||
Comment 1 by phanindra.mandapaka@chromium.org
, Sep 17