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

可以更改后置摄像头的预览角度吗? #2

Open
xieyilong opened this issue Jan 13, 2021 · 3 comments
Open

可以更改后置摄像头的预览角度吗? #2

xieyilong opened this issue Jan 13, 2021 · 3 comments

Comments

@xieyilong
Copy link

我有一个设备,执法仪,他的后置摄像头安装的角度和手机的不一致,使用你们的sdk,预览切换到后置摄像头后,角度被旋转了,有没有方法api 更改过来?

@LukeSong07
Copy link
Contributor

我有一个设备,执法仪,他的后置摄像头安装的角度和手机的不一致,使用你们的sdk,预览切换到后置摄像头后,角度被旋转了,有没有方法api 更改过来?

角度被旋转是左右还是上下颠倒?

@xieyilong
Copy link
Author

xieyilong commented Jan 14, 2021 via email

@LukeSong07
Copy link
Contributor

画面被顺时针旋转了90 度 1 -> __ 在 2021-01-14 09:53:34,"LukeSong07" [email protected] 写道: 我有一个设备,执法仪,他的后置摄像头安装的角度和手机的不一致,使用你们的sdk,预览切换到后置摄像头后,角度被旋转了,有没有方法api 更改过来? 角度被旋转是左右还是上下颠倒? — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

尝试下这个api
UCloudRtcSdkEnv.setPushOrientation
参数UCloudRtcSdkPushOrentation.UCLOUD_RTC_PUSH_PORTRAIT_MODE为竖屏
UCloudRtcSdkPushOrentation.UCLOUD_RTC_PUSH_LANDSCAPE_MODE是横屏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants