New issue
Advanced search Search tips

Issue 746000 link

Starred by 2 users

Issue metadata

Status: Duplicate
Merged: issue 786880
Owner: ----
Closed: Aug 24
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug



Sign in to add a comment

<video> tag is rotating on orientationchange for getUserMedia() source on Microsoft Surface pro3/4

Reported by michael....@gmail.com, Jul 18 2017

Issue description

UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36

Steps to reproduce the problem:
1. Open https://simpl.info/getusermedia with chrome on windows surface pro 3 or 4
2. Allow access to the camera
3. change orientation of the device

What is the expected behavior?
If the device changes orientation from landscape to portrait mode, the active video element should not rotate.

What went wrong?
I'm developing a web application with a camera function using plain js (navigator.getUserMedia()) for the microsoft surface. When I change the orientation of the device, it seems that the active video element/source is rotating too.

Did this work before? N/A 

Does this work in other browsers? No
 On firefox the same problem occurs but it works with edge.

Chrome version: 59.0.3071.115  Channel: stable
OS Version: 10.0
Flash Version: 

On android the chrome browser is working as expected.
 
example.pdf
179 KB Download
Labels: Needs-Triage-M59
Components: Internals>Media>Video
Labels: TE-NeedsTriageFromMTV
Currently surface pro is not available with Chrome-HYD TE team, Requesting MTV team to look in to this issue.

Thanks!
Cc: pbomm...@chromium.org
Components: Blink>ScreenOrientation Internals>Input>Touch>Screen
Components: -Internals>Media>Video Blink>GetUserMedia

Comment 5 by guidou@chromium.org, Jul 29 2017

Owner: guidou@chromium.org
Status: Assigned (was: Unconfirmed)
Project Member

Comment 6 by bugdroid1@chromium.org, Aug 1 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/2180df87cd71d5c8e1bf55174669696f66472473

commit 2180df87cd71d5c8e1bf55174669696f66472473
Author: Guido Urdaneta <guidou@chromium.org>
Date: Tue Aug 01 07:38:52 2017

Enable rotation heuristic for MediaStreams for all platforms.

It was originally enabled only on Android, but the bug the heuristic
fixes has been reported on Microsoft Surface devices running Windows.

BUG= 746000 

Change-Id: Ibb4214cc6c461012679c84e33a977ccf2fe1ff01
Reviewed-on: https://chromium-review.googlesource.com/594407
Reviewed-by: Emircan Uysaler <emircan@chromium.org>
Commit-Queue: Guido Urdaneta <guidou@chromium.org>
Cr-Commit-Position: refs/heads/master@{#490900}
[modify] https://crrev.com/2180df87cd71d5c8e1bf55174669696f66472473/content/renderer/media/media_stream_video_source_unittest.cc
[modify] https://crrev.com/2180df87cd71d5c8e1bf55174669696f66472473/content/renderer/media/video_track_adapter.cc

michael.hochwieser@gmail.com: Can you try again with the latest Chrome Canary to see if the issue is fixed?
Labels: Needs-Feedback
The video element still does not rotate correctly.
The Problem does not seem to be completely solved yet.
(Chrome Canary Version 62.0.3180.0 64bit)

michael.hochwieser@gmail.com:
Do you notice any difference in behavior between Canary and Stable?
Cc: chfremer@chromium.org
Components: Internals>Media>Capture
I just got access to a Surface pro and saw the bug.
It is not fixed by #6.
The issue seems to be that the lower capture layers are marking frames as requiring rotation to be displayed correctly, but in this case the frame does not need rotation to be displayed correctly.
The only thing that needs to change with a device rotation is the size of the frame, but its contents should be displayed without rotation.


Components: -Blink>GetUserMedia -Internals>Input>Touch>Screen -Blink>ScreenOrientation Blink>GetUserMedia>Webcam
Status: Available (was: Assigned)
Making the bug available since I think this should be fixed in the lower layers of device capture, where some metadata is incorrectly set.
Cc: guidou@chromium.org
Owner: ----
I'd like to take a look at this, but I don't have access to any Surface pro. I'll try to find one.
Project Member

Comment 16 by sheriffbot@chromium.org, Aug 20

Labels: Hotlist-Recharge-Cold
Status: Untriaged (was: Available)
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue.

Sorry for the inconvenience if the bug really should have been left as Available.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Mergedinto: 786880
Status: Duplicate (was: Untriaged)

Sign in to add a comment