Re: [mediacapture-main] MediaStreamTrack resizeMode constraint is too vague to request specific strategy (#702)

> Despite the resizeMode "none" or "crop-and-scale" Chrome for instance will take the 4:3 640x480 and crop it to 16:9 ratio which effectively zooms the image leaving barely enough room for someone's head to fit.

I'd say this is a bug in Chrome. `none` [says](https://w3c.github.io/mediacapture-main/getusermedia.html#idl-def-VideoResizeModeEnum.user): _"This resolution is offered by the camera, its driver, or the OS."_

> There is not a way using the spec to insist that you want to scale down the nearest 16:9 res (1280x720) to 640x360
Even if you say you want an exact aspect of 16:9 it still chooses the crop technique.

Good point. I think I like the idea of standardizing a `"scale-only"` mode better than user agents trying to infer a client's preference from whether they used `exact` or not with `aspectRatio`.

Note, if this is for web conferencing, you may be able to [work around this problem](https://blog.mozilla.org/webrtc/fiddle-week-downscale-video-peerconnection/) by using `scaleResolutionDownBy`.

-- 
GitHub Notification of comment by jan-ivar
Please view or discuss this issue at https://github.com/w3c/mediacapture-main/issues/702#issuecomment-681495029 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Thursday, 27 August 2020 05:10:31 UTC