R&D for screen grabbing functionalities on the browser.
- Run
npm install
to install the dummy server - Run
npm start
to run the dummy server - Open
http://localhost:3210/demo.html
on the browser to check the demo
-
Include the proctoring library on the HTML file. In the future we will store this file in Astronaut's public CDN.
<script src="proctor.js"></script>
-
Initialize the proctor class. Example:
const proctor = new Proctor();
Trigger the start of the proctoring process by calling this method:
proctor.start();
To take a screenshot, use this method:
proctor.capture(qid, random, maxLimit);
This method takes three parameters.
qid
: Mandatory parameter for passing the question's id.random
: Optional parameter, default value istrue
. If set tofalse
, the screenshot will be taken immediately.maxLimit
: Optional paramater, default value is5000
. Max time limit in milliseconds of when the screenshot is taken after the method is called.
To stop of the proctoring process:
proctor.stop();
There are three types (with the current iteration) of result stored on the backend. All of the files are stored on the /uploads
directory.
Screenshot of the user's screen during the session, stored as PNG files.
Ambient sound recording during the session, stored as a raw audio file.
A log of the browser activity (getting in and out of the session's browser tab) during the session, stored as CSV. Example:
Timestamp,Tab is in focus
2020-08-28 02:21:15,true
2020-08-28 02:21:38,false
2020-08-28 02:21:57,true
2020-08-28 02:21:58,false