Displaying video with a transparent background in android app

+1 vote
asked Jan 15, 2019 by andshw (270 points)
We uploaded the android app example - HelloARVideo, and changed there transparentvideo.mp4 file.
New video started to play on the left side of the screen and without colore.
How we can make playing AR video colorefull and place it on the center of the screen?

Do we need to make changes in android source code?
Or in EasyAR.jar file?
How we can edit this EasyAR.jar file?

2 Answers

0 votes
answered Jan 15, 2019 by zhnagjian (11,130 points)

The video is completely covering your recognition target.
+1 vote
answered Jan 16, 2019 by yannick (430 points)
You don't have an alpha channel in your new video...  If you look at the example video, you'll see that there a grayscale duplicate of the video on the right side. it's the alpha.  So you need a video that is twice as large as the final width to be shown because you need the source video on the left and the alpha on the right ( you can do top/bottom too, see in the easyAR doc)

How you do this?

Check this out.

Welcome to EasyAR SDK Q&A, where you can ask questions and receive answers from other members of the community.