android texturevideoview 缓存,android - How can I set the background of VideoView or TextureVideoView?...

And I edited some sample videos and then made it have transparent background. When I play it with VideoView or TextureVideoView, both shows messy grey background. However, when I tested it on the sample site(https://simpl.info/videoalpha/), the background is very clear as I expected.

And I checked the CSS property, and it has this properties.

video#video1, video#video2 {

-moz-animation-duration: 3s;

-ms-animation-duration: 3s;

-o-animation-duration: 3s;

-webkit-animation-duration: 3s;

animation-duration: 3s;

background: transparent;

position: absolute;

}

As you can see, it has background: transparent; value. So, I wanted to try to give the views the transparent background. However, the XML can't set background attribute for the two Views.

So, I tried it programatically, and it also had a problem. Is there any way to set the background color? or remove the grey background?

oRZ8n.png

7FWJg.png

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值