Bug 210958 - pictureInPicture with iOS MediaStream source is rotated 180deg
Summary: pictureInPicture with iOS MediaStream source is rotated 180deg
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebRTC (show other bugs)
Version: Safari 13
Hardware: Mac macOS 10.14
: P2 Normal
Assignee: Nobody
Keywords: InRadar
Depends on:
Reported: 2020-04-24 01:50 PDT by seppe
Modified: 2022-06-26 22:28 PDT (History)
5 users (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description seppe 2020-04-24 01:50:02 PDT
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).
Comment 1 Radar WebKit Bug Importer 2020-04-25 17:36:17 PDT
Comment 2 Michael Whittemore 2022-06-24 17:23:39 PDT
Munging the `a=extmap:13 urn:3gpp:video-orientation` line from the SDP appears to fix this issue for what it's worth.
Comment 3 Kongpheng 2022-06-25 12:12:46 PDT
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.
Comment 4 Kongpheng 2022-06-26 22:28:45 PDT
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.