I found that, if the VideoDrawable is created in the onEnterFieldOfVision, then the onFinishedPlaying will not be fired, but there are no problem on others such as onLoaded & onPlaybackStarted.
Moreover, the video will keep looping.
When the VideoDrawable is created before the Trackable2DObject and using drawables: {cam: }, the onFinishedPlaying will be fired.
Is there a bug?
W
Wolfgang Damm
said
almost 10 years ago
Can you provide a complete example so we can verify and reproduce it easily on our side? What devices are you testing this on (incl. model name, os version)? Have you tried it on multiple devices?
That testing world is modified from your video sample 2.
I have tested on Android and iPhone.
Thanks.
W
Wolfgang Damm
said
almost 10 years ago
It looks to me as if you are starting the video with play(-1). -1 is the loop count and in this case means loop the video infinitely. As the video will never finish playing the trigger won't be called.
Exchange play(-1) with play(1) or just play() to play it only once. This should fire the onFinishedPlaying trigger.
Frederick Chung