Skip to content

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

@Destroyer716

Description

@Destroyer716

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions