Click here to Skip to main content
15,889,842 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
This is the instruction provided by them for a website:
Include JavaScript

<script src="https://api.gazerecorder.com/GazeCloudAPI.js" ></script>

1. Start eye tracking <pre lang="Javascript">GazeCloudAPI.StartEyeTracking()
;
2. Define your results data callback
JavaScript
GazeCloudAPI.OnResult = function (GazeData) { GazeData.state // 0: valid gaze data; -1 : face tracking lost, 1 : gaze data uncalibrated GazeData.docX // gaze x in document coordinates GazeData.docY // gaze y in document coordinates GazeData.time // timestamp }

3. After you finish your test stop eye-tracking
JavaScript
GazeCloudAPI.StopEyeTracking();


What I have tried:

I am relatively new to flutter. I have experience in integrating API into flutter projects but I have never worked with this kind of JS API. Please help me out. It will be a more step towards growth.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900