So I have this weird problem that only occurs on Firefox for Android.
When I open a MediaStream using the Media Capture and Streams API and use the resulting stream as video source for a HTML5 Video Element the output looks proper when using my phone in portrait mode. However, when I turn my phone into landscape mode the output does not get rotated properly.
Please see below screenshots which showcase the problem:
Portrait Mode
Landscape Mode
When I use Chrome or try the same on an iPhone with Safari for iOS the output is adjusted for landscape rotation - as one would expect. I know for a fact that this behavior/bug/issue(?) was introduced in one of the updates for Firefox, but unfortunately I can not pinpoint which exact version it was.
I already tried stripping all css styles from the video element but to no avail. In the screenshots following css rules are applied:
background-color: black; width: 80%; aspect-ratio: 16/9; height: auto;

