-
-
Notifications
You must be signed in to change notification settings - Fork 607
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Forced orientation sometimes not reflected in the image stream #1076
Comments
Did you set
|
Hi, Yes, we got this code:
And we are also calling this code when an UIDevice.orientationDidChangeNotification is triggered. See https://github.com/apivideo/api.video-ios-live-stream/blob/2aab29979327ec71ce6710f74d439fe12b28ebcb/Sources/ApiVideoLiveStream.swift#L286. |
I have the same issue and it's quite hard to reproduce. Sometimes the stream is started in portrait orientation and after the rotation to landscape, the output keeps being portrait. The stream looks like landscape video after aspect fit into portrait stream. After few minutes staying in this "portrait" mode, the stream becomes distorted. Also didn't have this before 1.3.0 or so.
So looks like the issue isn't about |
I can't reproduce this issue with native iOS. |
Describe the bug
I'm using following code to force change the orientation of the interface (and the stream):
Most of the time this seems to be working well and the stream changes to the correct orientation. However, sometimes it doesn't get updated and the stream stays in the old orientation (the UI would correctly update to the new orientation).
To Reproduce
There doesn't seem to be a way to consistently reproduce it but seems to happen more when the device is in landscape and portrait is forced.
When I keep rotating the phone and force flip between portrait and landscape it would eventually (usually quite soon) happen.
Interestingly the stream fixes itself when the device is rotated more than 45deg or even more interestingly is put flat without orientation change.
Expected behavior
I would expect the stream to adjust to set orientation.
Version
1.3.0
Smartphone info.
Tested on various iPhones, iOS versions ranging from iOS14 - iOS16.
Additional context
No response
Screenshots
No response
Relevant log output
No response
The text was updated successfully, but these errors were encountered: