Re: [mediacapture-main] ResizeMode (crop-and-scale) is underspecified (#584)

Didn't see this question for a whole year, sorry.

If Chrome gets video params update applied with a specified width and height, it will crop and scale to that res cutting off part of it depending on the aspect ratio of the window. So seems like that's breaking the rule.

If you don't send media params you continue to get the native resolution.

The request is for a way to scale it to some constraints like if you supply a width and height, to make the output small enough to fit inside that rectangle but do not change the proportions or crop it at all.

Chrome used to just do this which seemed more right
I could say width: 1280 height: 720 and it would just send the screen share at a size that would fit in such params but didn't actually alter anything other than the scale.

But I guess this is tangential but slightly offtopic







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


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

Received on Tuesday, 12 July 2022 23:57:00 UTC