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

可以手动在代码里面设置宽高吗 #147

Open
Destroyer716 opened this issue Feb 16, 2022 · 0 comments
Open

可以手动在代码里面设置宽高吗 #147

Destroyer716 opened this issue Feb 16, 2022 · 0 comments

Comments

@Destroyer716
Copy link

我尝试用正常view的方式获取BaseVideoView的宽高 都为-1,并且代码里面设置layoutParams 只有也没用。
请问有提供手动设置宽高的地方吗,因为我们有需求 视频默认是16:9 但是如果设置成AspectRatio_16_9的方式万一有非16:9的视频
就回拉伸,如果设置成AspectRatio_ORIGIN,那么在很多手机上16:9的视频就无法正常填充满控件,所以想自己根据手机宽度来
设置BaseVideoView的高度。

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

1 participant