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

横竖平切换时,录屏尺寸不会更改? #21

Open
shesio opened this issue Jun 27, 2019 · 1 comment
Open

横竖平切换时,录屏尺寸不会更改? #21

shesio opened this issue Jun 27, 2019 · 1 comment

Comments

@shesio
Copy link

shesio commented Jun 27, 2019

我发现横竖屏切换时,录屏的尺寸不会跟着修改,如何修改service?

@myrao
Copy link
Owner

myrao commented Jul 1, 2019

因为编码器在初始化的时候就已经设置好分辨率了,如果录制时很竖屏切换很可能会因为分辨率不同导致流的编码出问题,但其实官方似乎已经对这个问题做了workaround,在横屏的时候会自动把流进行通分辨率的黑边适配; MediaRecorder 有 setOrientationHint 这个属性,你可以试试在录制过程中设置是否生效,实在不行在动态改编码器的参数吧

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