element-hq / element-call

Group calls powered by Matrix
https://call.element.io
GNU Affero General Public License v3.0
561 stars 90 forks source link

Video from camera does not rotate on mobile #2036

Open govynnus opened 8 months ago

govynnus commented 8 months ago

Steps to reproduce

On a phone browser, open element call (tested on both call.element.io and call.element.dev) and:

  1. Start a call in portrait orientation
  2. Rotate phone to landscape

or:

  1. Start a call in landscape mode

Outcome

What did you expect?

Camera video is in same orientation as content on the screen

What happened instead?

Camera video is sideways (as if always in portrait orientation)

Operating system

Android (LineageOS 20.0)

Browser information

Fennec F-Droid 121.0.0 (firefox mobile)

URL for webapp

call.element.dev

Will you send logs?

Yes There was no option to send logs when sending feedback

robintown commented 1 month ago

Looks like this is a TODO in LiveKit: https://github.com/livekit/components-js/blob/d2b518ca2f9c93985b8bbef7c6ae15cf0d4752b1/packages/react/src/hooks/useMediaTrackBySourceOrName.ts#L70