Camera orientation 90* off when rotating phone after pausing/unpausing camera
See original GitHub issueExpected behavior
The RTCView should know the correct orientation after pausing/unpausing the camera.
Observerd behavior
When rotating my phone after getting the local mediastream the view is calculated correctly. However if my phone is in portrait mode, and I pause and unpause the local stream using track.enabled = {bool}
and then rotate my phone, goes from this:
To this:
In the landscape wonky state above, if I then toggle the video tracks enabled state it’ll then show correctly.
Steps to reproduce the problem
Toggle video enabled
and then rotate phone.
Platform information
- React Native version: 0.50.1
- Plugin version: 1.58.3
- OS: iOS
- OS version: 11.1.2
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:6 (6 by maintainers)
Top Results From Across the Web
Rotating the Camera Activity 180 degrees when in landscape ...
END EDIT. I have a custom camera which when rotated by 180 degrees say from one landscape to another shows an inverted preview.I...
Read more >Adjusting your video — Camo - Reincubate
Rotation : This lets you rotate your video feed in 90° adjustments. In almost all cases, it's better to disable orientation lock on...
Read more >Trouble rotating player camera when paused. - Blueprint
After unpausing the camera quickly snaps to a new position which means that an update indeed occurred when paused.
Read more >How can I pause the first person character camera rotation in ...
Unity is the ultimate game development platform. Use Unity to build high-quality 3D and 2D games, deploy them across mobile, desktop, VR/AR, ...
Read more >Open Camera History
UPDATED Now supports portrait and landscape system orientations, ... FIXED When using "Pause after taking photo", touching to unpause no ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’m not. Originally I did and then figured I might as well try it without and I ended up not needing to lock the orientation
Thanks for sharing @bighitbiker3 !
But it’s still a little bit weird to me that by adding a
Podfile
config solves this problem though. 😕Going to close this, if anyone has the same issue, try the solution above 👍