-
Notifications
You must be signed in to change notification settings - Fork 2.4k
黑边的问题总结 #1204
Comments
@OverRide 我是这样解决的,好像没什么问题. |
上面的是通过修改容器的高宽 |
但是如果设置了
或者 VIDEO_IMAGE_DISPLAY_TYPE_FILL_PARENT 在点击全屏后反而会充满整个屏幕, |
JZVideoPlayer.setVideoImageDisplayType这个函数随时设置随时生效 你可以继承JZVideoPlayerStandard,复写onClick函数,监听全屏的点击。参考demo的MYJZVideoPlayerStandard。 |
@OverRide |
@yixiu30 demo中生效吗 |
如果视频的高宽比例和屏幕的高宽比例不一致,肯定会有黑边的。
如果非要去掉黑边,一种方法是指定视频的的比例和容器的比例一致,比如16:9 或 4:3。另一种方法复写onVideoSizeChanged函数,放大textureView的大小
The text was updated successfully, but these errors were encountered: