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

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}}` which on my Samsung s8 produces:
  "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 using your GitHub account

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