RenderTextureAvailable value is getting false

0 votes
asked Jun 23, 2021 by sagarkoli (160 points)
Hey there! I've been using EasyAR sdk in one of my personal app where I am using AR scanning functionality on an image. So I am handling two transparent videos on a single Image which is been shown and switched with switcher in Android. So when user uses the switcher more frequently, then the AR video doesn't able to render the transparent video on that image. I do get video.isRenderTextureAvaialble() to false due to which the AR video isn't showing. How to handle such scenario to prevent AR video from not showing anything to make rendering available. Please let me know with the solution. It will be greatly appreciated.   .

1 Answer

0 votes
answered Jun 24, 2021 by kenn (18,790 points)
isRenderTextureAvailable is not guaranteed to always return true. You need to wait until it is true to do the rendering.

If I understand it correctly, you are using EasyAR in native way which in the sample there are a lot of OpenGL code. You have to make sure the OpenGL environment is working with changes and also with your usages. And make sure videos are open/close cleanly.
Welcome to EasyAR SDK Q&A, where you can ask questions and receive answers from other members of the community.
...