-
Notifications
You must be signed in to change notification settings - Fork 952
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
怎么清除videoview上面的图像 #97
Comments
@weizongwei5 请问你想在什么时候清除?如果是 播放完毕后 再清除的话,暂时可以用如下方法,后面我们再完善:
|
谢谢 |
@weizongwei5 还有一种更加简单的方法,播放完毕后调用: mVideoView.getSurfaceView().setBackgroundColor(Color.BLACK); |
非常非常!感谢 ! |
设置背景色的方案 以前在ijk上面 好像设置了背景 视频播放都出不来了 就直接黑了 |
@weizongwei5 嗯,注意,我说的是播放完毕后可以暂时这样处理,播放前这样设置的话,需要再加一条语句就不会黑屏了:
|
如果是PLVideoTextureView 怎么设置清屏。遇到个问题 就是 在listview 里面添加PLVideoTextureView 播放 ,在点击不同item 播放的时候 因为listview的view重用机制所以PLVideoTextureView 是在重用的,出现了点击一个新item 的播放 会先闪现一下之前item 播放过的画面。 |
怎么清除videoview上面的图像 设置为黑屏
The text was updated successfully, but these errors were encountered: