How can I use transparent webm for Android?

删除回忆录丶 提交于 2020-06-29 03:54:11

问题


I am trying to use some video resources. And I wanna get rid of the background and change the color as I want.

I used VideoView for easy implementation. However, it gave black background. I don't want that. So, I am trying to use TextureVideoView.

implementation 'com.sprylab.android.texturevideoview:texturevideoview:1.2.1'

However, when I play the webm files, it seems it's not transparency.

What's the reason???

It's weird because I also exported and played a few clips to Webm with alpha channel. And it gives white or broken color background. (VideoView also gives gray background like this.)

Source Video: https://simpl.info/videoalpha/video/dancer1.webm, https://simpl.info/videoalpha/video/soccer1.webm

(It's totally fine here: https://simpl.info/videoalpha/)

来源:https://stackoverflow.com/questions/62300799/how-can-i-use-transparent-webm-for-android

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!