Closed Tom-jia closed 1 year ago
Yes, you can do it. You can just change the screen orientation to landscape in the project example and streaming will work in horizontal.
Also if you want change streaming orientation manually you can set the orientation to prepareVideo method with values of (0, 90, 180 or 270) but CameraHelper.getCameraOrientation(context) do it for you
Hello, I set the resolution to 19201080 when pushing the stream. Use this method onTakePhoto to get the picture and save it to 10801920. Is there any way to solve this problem? @pedroSG94
Do you mean that using landscape with resolution 1920x1080 and saving image the result is 1080x1920? Because I tested it but it is working fine in the app example. Basically i replaced switch camera button to a take photo and it is working fine.
This is the configuration code and the code to get the image
Hello,
I tested again like you but the result is working fine:
I think you are not locking screen to landscape properly. Can you share me a screenshot of the app?
Hi, I have found a solution to this problem. Thank you very much for your support
Is there any way to set it?