What you need to do is call the destroy method in order to make sure that you are not loading all the 20 videos. You can find more information regarding this method here.
You need to keep a reference to any created video drawable as e.g. member of the World object and then call destroy on the video object that is currently stored in the World object.
You can also have a look at this forum post describing a similar issue.
I change the code like the example reference that you provided me, but I can't get it work.
Could you give me a small example/snippet how to get this work with my code? Or even a easier one.
Thanks a lot
did I understand correctly, that the app is able to load the video drawables, but crashes later when you are actually recognising your targets? If so, does it crash when recognising the same image multiple times, or only when recognising different images?
What I'd like you to try is call stop rather than pause in onImageLost and check whether that makes any difference.
How can I prevent memory leaks? destroying the video after each view?
i'm sure I'm doing something wrong.
I would appreciate a small example of how to clean my code:
Thanks in advance!