Re: [mediacapture-main] Handling of rotation for camera capture streams (#660)

> Both Safari and Chrome (not sure about Firefox) do change width and height when capturing device (mobile device typically) is rotating.
Basically, width and height are swapped.

Firefox does as well. Tested with https://jsfiddle.net/jib1/6a0shctq/

Interestingly, `getCapabilities()` values are NOT swapped. Tested in all browsers except Safari (I don't have an iphone) and Firefox (doesn't implement it yet).

> More queries: What if width, height and/or aspect ratio are constrained to a specific value?

Looks like all browsers apply constraints to landscape. Tested with `{width: {min: 641}}` https://jsfiddle.net/jib1/e5dkao41/ which on my Samsung s8 produces:
```js
{
  "width": 480,
  "height": 720
}
```
Since we don't have the `overconstrained` event anymore, this is probably just as well.

Is this what we want to specify?

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

Received on Thursday, 23 April 2020 21:13:32 UTC