Steps to reproduce:
* Join a appr.tc room with Safari on Mac OS.
* Join the same room with Safari on iOS with camera enabled.
* Execute the following command in the desktop console:
document.addEventListener('click', () => document.querySelector('#remote-video').webkitSetPresentationMode('picture-in-picture'));
* Click anywhere in the viewport.
Expected result: a picture in picture popup is shown, showing the video of the iOS camera
Actual result: the popup and video are show, but the video is rotated 180deg.
This result can be reproduced on different websites.
I haven't found any other combination of browser where it occurs (tested with different combinations of mobile Safari, desktop Safari, mobile Chrome and desktop Chrome).
Munging the `a=extmap:13 urn:3gpp:video-orientation` line from the SDP appears to fix this issue for what it's worth.
Regarding the previous comment about the SDP munging fix, did some more testing and we don't think that fixes it. Apologies for the false positive. In any case, will continue to look into a workaround and report back if we find one.
Nevermind the nevermind. Michael was correct. Munging the SDP makes the issue go away. I made some mistakes during testing.
Sorry for all the noise everyone.