问题
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