question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Camera orientation 90* off when rotating phone after pausing/unpausing camera

See original GitHub issue

Expected 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:

img_1776

To this:

img_1777

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:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
bighitbiker3commented, Dec 9, 2017

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

On Dec 8, 2017, at 11:36 PM, zxcpoiu notifications@github.com wrote:

are you doing what #220 https://github.com/oney/react-native-webrtc/issues/220 says to lock orientation?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/oney/react-native-webrtc/issues/387#issuecomment-350430377, or mute the thread https://github.com/notifications/unsubscribe-auth/AO4cpYAyx_nYER_mV9sJOOUfEP73JXlfks5s-jhqgaJpZM4Q2opR.

0reactions
zxcpoiucommented, Dec 12, 2017

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 👍

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found