Skip to content
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

[Bug]: How to rorate orientation when streaming #78

Open
2 tasks done
dunghacknicktao opened this issue Nov 23, 2024 · 2 comments
Open
2 tasks done

[Bug]: How to rorate orientation when streaming #78

dunghacknicktao opened this issue Nov 23, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@dunghacknicktao
Copy link

Version

v1.2.0

Which operating systems have you used?

  • Android
  • iOS

Environment that reproduces the issue

Both

Is it reproducible in the example application?

Not tested

RTMP Server

my local

Reproduction steps

  1. init and start startStreaming
  2. Rotate the phone from portrait to landscape or vice versa

Expected result

The frame changes according to the device's rotation direction

Actual result

In live stream video result, the frame does not change at all, there is even a slight pause when the phone direction is changed

Additional context

Hello,

During the process of rotating the device from portrait to landscape, or landscape to portrait, the transmission to the system begins; the image doesn't change according to my rotation direction.

If I rotate the device before setting up and starting the streaming session, the frame image flows back to the server with the original orientation

I tried stopping and restarting the streaming session at rotation time, but it crashed my app and the image remained the same.
Please help me with a solution to do this device rotation during streaming!

Thanks

Relevant logs output

No response

@dunghacknicktao dunghacknicktao added the bug Something isn't working label Nov 23, 2024
@ThibaultBee
Copy link
Member

Most players/decoders/container do not handle a resolution change. Resolution change implies a change in the resolution for going from landscape to portrait and vice versa. Can your decoding pipeline handle that?

Do you turn your phone when recording with the default camera?

@dunghacknicktao
Copy link
Author

I don't want to say how the interface displays on my application will change when I rotate the device, but what I noticed is that when I rotate the device, the image streamed to the server does not change direction. Does your library do anything when I rotate?
Regards,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants