-
-
Notifications
You must be signed in to change notification settings - Fork 759
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
How to keep streaming when rotating device #1480
Comments
Hello, You have a code example to support rotation here: |
I am trying to streaming portrait and landscape mode and both make output of 1920x1080, so in portrait mode I get black space on the sides, is any way to make the output same size as the video? I see OK when in the device which is streaming but in the "player" device its wrong, see next comment: |
Hello, This is the expected result. You can't change the video size while you are streaming/recording so the video is adapted depend of the device orientation to avoid distortion. |
I mean I am not trying to change video size while streaming. Use case: -I have portrait camera, it show in my preview fullscreen and good, then I start recording and in the player I get an output of 1920x1080 with the streaming small in the middle, and black on the sides This is my code. Its working in landscape but not in portrait. bestSize is 2400 width 1080 height
|
@pedroSG94 I was able to fix this with the rotation in prepareVideo() method with this code, similar to the example you gave:
How can I set just the orientation like you using Java, without setting fps and iFrameInterval param? If not possible, which are the default values for fps and iFrameInterval ? |
Hello, I have a problem when streaming in landscape mode. I want to keep streaming when rotating screen so video output now should be in portrait mode. I have this code but it seems release() method cancels the streaming. I need to keep sending video without stopping streaming and starting again, any idea?
The text was updated successfully, but these errors were encountered: