Open Bug 1900455 Opened 1 year ago Updated 1 year ago

The video streamed locally from the mobile device's camera did not rotate when the phone was turned and automatic phone rotation was enabled.

Categories

(Firefox for Android :: Media, defect)

Firefox 126
All
Android
defect

Tracking

()

UNCONFIRMED

People

(Reporter: lexxai, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:125.0) Gecko/20100101 Firefox/125.0

Steps to reproduce:

Video streamed locally from the mobile device's camera using JavaScript.

navigator.mediaDevices.getUserMedia({ audio: false, video: { deviceId, width: { max: 640 }, height: { max: 480 }, },}) .then(function (stream) { video.srcObject = stream; video.play();}....

Actual results:

The video is displayed both vertically and horizontally.
However, in the horizontal position, the image from the front camera does not rotate, and the face is rotated 90 degrees.

Although Chromium browsers display this normally.

For compatibility, you have to write code for Frifox Mobile that will convert the image to canvas through transformations.

Expected results:

The user should always have a normally oriented view.

You can test the tasks on our educational project:
https://fastparking.x-server.net/api/v1/cam_client?dct_br=0

Where dct_br=0 means that Mozilla browser detection is disabled.

The severity field is not set for this bug.
:tthibaud, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(tthibaud)
Severity: -- → S3
Flags: needinfo?(tthibaud)
You need to log in before you can comment on or make changes to this bug.