-
Notifications
You must be signed in to change notification settings - Fork 88
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
Detect screenshare rotation #552
Conversation
🦋 Changeset detectedLatest commit: ccd01e3 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
These changes look very similar to what is required to fix this issue #535. Especially since it's possible for the device to be in landscape while screensharing when switching between apps. I would greatly appreciate if you took another look at a robust orientation handling solution for the camera in addition to screensharing. |
@bennnjamin As I noted in #535, the camera is already following the rotation of the device's UI, so I'm not sure what's actionable there. |
@davidliu it doesn't follow the device's UI when switching apps or when there is no foreground activity. It's certainly jarring to a subscriber to see the camera swapping between landscape and portrait orientation during normal operation of the phone. The expectation from a UX perspective is that the video orientation matches the device even when switching apps or multitasking. The action is to use |
@bennnjamin that's possible to do with a VideoProcessor, though you shouldn't have to for rotation. If you can provide a repro example, I'll gladly recheck it and provide a fix if needed, but it was working fine for me. |
@davidliu I appreciate your willingness to help with this. Perhaps I was looking in the wrong place to override rotation. Can you link to a method that is overridable? Here is are the methods I found for frame rotation but they are all private. client-sdk-android/livekit-android-camerax/src/main/java/livekit/org/webrtc/CameraXSession.kt Line 305 in dcbb36b
And in WebRTC: |
@davidliu kindly checking to see if you are able to provide further guidance on the correct place to override frame rotation for |
No description provided.