I'm calling getUserMedia()
to get a video stream and simply setting the stream
as the srcObject
of a video element.
Specifically on Chrome on 2 different Windows Tablets, in Portrait mode the video is side ways.
I can't find any orientation info in the stream or video track objects and the width and height track info match the video element and are accurate to the aspect ratio track info.
You can duplicate with https://camera.stackblitz.io
How do I get the orientation info from the stream or logically rotate the video?
Edit:
I do not want the orientation of the device or screen, but of the video stream. Maybe "rotation" is the right verbiage. In other words how do I know when to rotate the video without a human looking at it?
Edit 2:
"Chrome on Windows Tablet in Portrait mode" is just what I experienced I don't know if the issue is isolated to that or the issue is with every Windows tablet but the main question is how do I tell if the video is sideways or rotated?