- From: Anthony Minessale via GitHub <sysbot+gh@w3.org>
- Date: Wed, 01 Jul 2020 16:51:00 +0000
- To: public-webrtc@w3.org
anthmFS has just created a new issue for https://github.com/w3c/mediacapture-main: == MediaStreamTrack resizeMode constraint is too vague to request specific strategy == Currently, when you want to ask for a specific resolution using height, width, aspectRatio and resizeMode there is no way to specify that you do not want to crop. Situation: You want to use 640x360 res. The camera supports 640x480, 1280x720, and 1920x1080 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. 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. So the spec needs to be precise enough to entice the browser developers to implement something that allows this specificity. Perhaps a resize mode of "scale-only" or "preserve-aspect-ratio" or just some interpretation of a combination of existing params such as "crop-and-scale" when used with an exact aspect ratio, limits the source video to those who meet the required aspect ratio. Please view or discuss this issue at https://github.com/w3c/mediacapture-main/issues/702 using your GitHub account
Received on Wednesday, 1 July 2020 16:51:05 UTC