-
-
Notifications
You must be signed in to change notification settings - Fork 791
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
Preview/Streaming is rotated upside down on Nexus 6P #266
Comments
|
OpenGlView, front and back camera, portrait/landscape, livestream/preview |
If this is only with nexus 6P you can do it in onCreate method: if (is6p) {
openGlView.setCameraFlip(false, true);
} |
I would like to add that with the Nexus 5X we experience the same behavior. As far as I have been able to tell, this is in the preview only, using a SurfaceView. This is with version |
Try use openglview with camera1 and camera2 and use setCameraFlip. Other way could be change rotate in prepareVideo method only with nexus 5x and with camera2. I had a nexus 5x years ago and I know that camera is rotated for some reason(I think this is a hardware problem). Unfortunately I haven't this device anymore so I can't find a valid solution to work with all devices (Maybe it is not possible with surfaceview). |
Thanks for the quick reply. I followed your advice and changed my standard |
Also, I don't know how much the emulator differs. But I use a 5X image in the emulator and the preview there is fine. So probably hardware issue? |
I have found that specifically on Nexus 6P camera is rotated upside down for some reason.
The text was updated successfully, but these errors were encountered: