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.

Update rotation during stream and keep it consistent with preview

See original GitHub issue

Hi @pedroSG94. First of all, thank you for the cool library.

Is it possible to change stream rotation during the stream? I can pass a rotation parameter to prepareVideo() method and it works fine, however, I don’t know how to change it during the stream. I’d like to have the same behavior as in Streamlabs app - when I live stream to YouTube using this app and rotate the phone, the stream updates its rotation.

I also struggle with keeping the same rotation on preview and stream. I use OpenGlView, have my Activity orientation set to portrait. When I call prepareVideo(roatation) I pass rotation param based on sensor rotation. The stream rotation and preview rotation is fine when I start streaming in portait calling prepareVideo(rotation = 90), but when I start streaming in landscape calling prepareVideo(rotation = 0), then stream rotation is fine but preview rotation is wrong. I’ve tried playing with OpenGlView.setRotation() but it affects both stream and preview in a way I can’t understand.

Please guide me a bit or maybe update the sample app if you’d have some time. Thanks!

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:57 (44 by maintainers)

github_iconTop GitHub Comments

1reaction
pedroSG94commented, Nov 28, 2021

Screen orientation must be locked after call startStream or startRecord:

1reaction
pedroSG94commented, Oct 24, 2021

I will do it. Currently it is possible without modify library code. I will create a example soon.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How To FREELY ROTATE SOURCES in OBS - Quick Tips
The BEST Streaming Assets • https://nerdordie.com/shop/ref/9wuitu/ UPGRADE YOUR STREAM ...
Read more >
Rotate and modify shapes added to a PDF in Preview on Mac
In the Preview app on your Mac, open the PDF you want to change. Do any of the following: Rotate a shape: Select...
Read more >
Manage creative rotation - Campaign Manager 360 Help
Click the menu next to "Creative rotation" and choose a rotation option. See below for guidance on rotation options. Make sure your creatives...
Read more >
CameraX use case rotations - Android Developers
This topic showcases how to set up CameraX use cases inside your app to get images with the correct rotation information, whether it's...
Read more >
Public preview: Rotate SSH keys on existing AKS nodepools
You can now update SSH keys on existing AKS nodepools post deployment.
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