I am creating an online psychological experiment using the calibration setup of webgazer. However, I would like to calibrate more often than just once.
How can I check whether an instance of Webgazer is already running, so that .setGazeListener won't be ran multiple times and mess up the setup? I would love to know how to check whether Webgazer is paused, running, or has not (yet) started.
I think what you're looking for is webgazer.isReady(), which should check if webgazer has already been initialized (i.e. if webgazer.begin() has been called and completed)
I am creating an online psychological experiment using the calibration setup of webgazer. However, I would like to calibrate more often than just once. How can I check whether an instance of Webgazer is already running, so that
.setGazeListener
won't be ran multiple times and mess up the setup? I would love to know how to check whether Webgazer is paused, running, or has not (yet) started.