clmtrackr
clmtrackr copied to clipboard
Event to detect that video tracking has started
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.
For my experience, just put ctracker.getCurrentPosition()
in an if
statement :
positions = ctracker.getCurrentPosition()
if(positions) {
// do your stuff here
}