hiukim / mind-ar-js

Web Augmented Reality. Image Tracking, Face Tracking. Tensorflow.js
MIT License
2.16k stars 399 forks source link

Video won't stop #269

Closed graboid0110 closed 1 year ago

graboid0110 commented 1 year ago

Hey hukkim! Thank you for your work! For me this is something new. I'm just starting to learn different programming languages. And I am very interested in your project. In your example: https://hiukim.github.io/mind-ar-js-doc/examples/interative/ the video doesn't stop when the target is lost. I tried to fix this for a long time, but my knowledge is not enough yet. could you explain how to catch this video and pause or at least stop. Thanks in advance!

hiukim commented 1 year ago

you can pause the video using the targetLost event. Ref: https://hiukim.github.io/mind-ar-js-doc/examples/events-handling#targetfound-and-targetlost