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

屏幕旋转时,如何更改录制方向? #208

Open
WeDoX opened this issue Nov 6, 2019 · 4 comments
Open

屏幕旋转时,如何更改录制方向? #208

WeDoX opened this issue Nov 6, 2019 · 4 comments

Comments

@WeDoX
Copy link

WeDoX commented Nov 6, 2019

大佬,能做到屏幕旋转时,切换录制方向(在不销毁Activity或者销毁对象重新推流的情况下)

 android:configChanges="orientation|keyboardHidden|navigation|screenSize"
@lakeinchina
Copy link
Owner

reSetVideoSize是动态改变推流大小的方法,你可以把里面isPortrait同时改一下
应该就差不多了,但是我也没有测过,而且我也不再更新这个库了

@hike2008
Copy link

reSetVideoSize是动态改变推流大小的方法,你可以把里面isPortrait同时改一下
应该就差不多了,但是我也没有测过,而且我也不再更新这个库了

貌似不行,初始化时,有个 checkDirection,感觉这个对于动态切换横竖屏有影响吧?

@pangff
Copy link

pangff commented Jul 28, 2020

@hike2008 解决了吗?

@zhouqunhuang
Copy link

我也遇见同样的问题改变不了方向

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

5 participants