Summary: | [iOS] MediaRecorder incorrect screen orientation handling | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Igor Ievsiukov <igor> | ||||||||||||||||||
Component: | WebRTC | Assignee: | youenn fablet <youennf> | ||||||||||||||||||
Status: | RESOLVED FIXED | ||||||||||||||||||||
Severity: | Blocker | CC: | boris.stodic, eric.carlson, ews-watchlist, glenn, info, jer.noble, philipj, Senthil.Ramachandran, sergio, webkit-bug-importer, wildenrother, youennf, zach | ||||||||||||||||||
Priority: | P2 | Keywords: | InRadar | ||||||||||||||||||
Version: | WebKit Nightly Build | ||||||||||||||||||||
Hardware: | iPhone / iPad | ||||||||||||||||||||
OS: | iOS 12 | ||||||||||||||||||||
URL: | https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder | ||||||||||||||||||||
Bug Depends on: | |||||||||||||||||||||
Bug Blocks: | 85851, 216664 | ||||||||||||||||||||
Attachments: |
|
Description
Igor Ievsiukov
2019-06-17 03:27:09 PDT
I am facing same issue. Created new ticket with steps to reproduce bug: https://bugs.webkit.org/show_bug.cgi?id=201137 *** Bug 201137 has been marked as a duplicate of this bug. *** Created attachment 409265 [details]
Patch
Created attachment 409269 [details]
Patch
Created attachment 409270 [details]
Patch
Created attachment 409272 [details]
Patch
Created attachment 409276 [details]
Patch
Comment on attachment 409276 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=409276&action=review > Source/WebCore/platform/mediarecorder/cocoa/MediaRecorderPrivateWriterCocoa.mm:430 > + if (sample.videoMirrored()) > + videoTransform = CGAffineTransformScale(videoTransform, -1, 1); It would be nice to have internals API to test mirrored mode, like we have setCameraMediaStreamTrackOrientation to test rotation. (In reply to Eric Carlson from comment #9) > Comment on attachment 409276 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=409276&action=review > > > Source/WebCore/platform/mediarecorder/cocoa/MediaRecorderPrivateWriterCocoa.mm:430 > > + if (sample.videoMirrored()) > > + videoTransform = CGAffineTransformScale(videoTransform, -1, 1); > > It would be nice to have internals API to test mirrored mode, like we have > setCameraMediaStreamTrackOrientation to test rotation. I'll file a bug for that. As you noted, I'll remove setting the transform in case of no rotation or no mirroring. no rotation and no mirroring. Created attachment 409286 [details]
Patch for landing
Committed r267366: <https://trac.webkit.org/changeset/267366> All reviewed patches have been landed. Closing bug and clearing flags on attachment 409286 [details]. Reopening since this is not properly working Created attachment 410099 [details]
Patch
Comment on attachment 410099 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=410099&action=review > Source/WebCore/platform/mediarecorder/cocoa/MediaRecorderPrivateWriterCocoa.mm:433 > + m_videoTransform = CGAffineTransformScale(*m_videoTransform, -1, 1); Do we always want to flip the transform? (In reply to Eric Carlson from comment #16) > Comment on attachment 410099 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=410099&action=review > > > Source/WebCore/platform/mediarecorder/cocoa/MediaRecorderPrivateWriterCocoa.mm:433 > > + m_videoTransform = CGAffineTransformScale(*m_videoTransform, -1, 1); > > Do we always want to flip the transform? Indeed, will fix that. Created attachment 410201 [details]
Patch for landing
Committed r267828: <https://trac.webkit.org/changeset/267828> All reviewed patches have been landed. Closing bug and clearing flags on attachment 410201 [details]. |