Implement aspectRatio constraint for cameras
Categories
(Core :: WebRTC: Audio/Video, enhancement, P2)
Tracking
()
People
(Reporter: jib, Unassigned)
References
()
Details
(Keywords: parity-chrome, parity-safari, Whiteboard: webcompat:risk-moderate )
User Story
Updated•9 years ago
|
Comment 1•8 years ago
|
||
Comment 2•7 years ago
|
||
Updated•4 years ago
|
Comment 3•3 years ago
|
||
Is there any plan to implement the aspectRatio constraint?
All major browsers have supported this for at least 4 years, but in Firefox it is necessary to go through a hardcoded list of resolutions if you need a specific ratio. The constraint would be really helpful.
Updated•3 years ago
|
Updated•3 years ago
|
Comment 4•2 years ago
•
|
||
Chrome and Safari will now both support aspectRatio on MediaStreamTrack as of WebKit preview 171.
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
| Reporter | ||
Comment 5•4 months ago
|
||
With Firefox now supporting "crop-and-scale" (bug 1286945), having this constraint is more pressing. Up-prioritizing.
This gUM demo shows one way to preserve aspect ratio is to only constrain on width OR height. But e.g. on macOS if constrained only on height, there's a risk of ending up with a vertical mode (like 1080x1920). aspectRatio would help here.
ofc websites that constrain both width and height don't have this problem but still.
Updated•2 months ago
|
Description
•