clmtrackr icon indicating copy to clipboard operation
clmtrackr copied to clipboard

Event to detect that video tracking has started

Open cincplug opened this issue 9 years ago • 1 comments

Hi, one more 'thank you' for this incredibly useful library!

Is there an event to to detect when the video tracking, started by ctracker.start(), has started actually tracking? Because it takes some minimal time, during which, if you try to fire ctracker.getCurrentPosition(), it will return false and there will be a JS error. Sorry if this is already listed somewhere.

cincplug avatar Nov 20 '15 08:11 cincplug

For my experience, just put ctracker.getCurrentPosition() in an if statement :

positions = ctracker.getCurrentPosition()
if(positions) {
// do your stuff here
}

antoine1000 avatar Nov 29 '16 16:11 antoine1000