Start a new topic

How to make a custom "isTransparent" method for Video Drawable.

How to make a custom "isTransparent" method for Video Drawable.


Hi, in the section of Video Drawables, it was discussed that there was function "isTransparent" to detect black pixels in the video and remove it to achieve the transparent feel. However I have a video with black colors on it (see attached video) and when I use the isTransparent method, the look of the video is completely changed because the black parts cannot be seen. Now I think another workaround is to change the background of the video(maybe pink) and make a JS method that will detect the color of the background and remove it. Any ideas how to implement it? Thanks!

Hi Miguel,

Please have a look here on how to produce the transparent video.

Greetings

Nicola
Login or Signup to post a comment