Capture Photo On Quiz attempt start

Capture Photo On Quiz attempt start

by SOUREN SEN -
Number of replies: 4

Hi,

I am using Moodle version-2020061501.02.

requirement:Here on "Attempt Quiz Now" button click i want to open a popup to capture the photo of the student.

Now i have developed local plugin called "proctoring" under quiz/accessrule,  here i have written a javascript alert in AMD repo and that javascript i am calling from "setup_attempt_page" in rule.php of my plugin.

But on click of that button the javascript is not getting called.
The way i am calling javascript is
$page->requires->js_call_amd('mod_quiz-quiz_accessrule_proctoring/photocapture', 'setup');

Please let me know asap how can i call my plugin javascript here.

Attachment proctoring javascript.JPG
Attachment rule.php.JPG
La media da valetaziuns: -
In reply to SOUREN SEN

Re: Capture Photo On Quiz attempt start

by Marcus Green -
Maletg da 	Core developers Maletg da 	Particularly helpful Moodlers Maletg da 	Plugin developers Maletg da 	Testers
Is anything being output to the browser developer console?
La media da valetaziuns: -
In reply to Marcus Green

Re: Capture Photo On Quiz attempt start

by SOUREN SEN -
Hi Marcus,
There is no output in browser console.Please let me know whether this is correct way to call javascript module of a plugin?
La media da valetaziuns: -
In reply to SOUREN SEN

Re: Capture Photo On Quiz attempt start

by Marcus Green -
Maletg da 	Core developers Maletg da 	Particularly helpful Moodlers Maletg da 	Plugin developers Maletg da 	Testers
Have you built/compiled your code, i.e.
cd yourplugin\amd\src
grunt amd
And then checked that there is content in your amd\build folder?
(The details of what I have described may be wrong but you get the drift)...
La media da valetaziuns: -
In reply to SOUREN SEN

Re: Capture Photo On Quiz attempt start

by Germán Valero -
Maletg da 	Documentation writers Maletg da 	Particularly helpful Moodlers Maletg da 	Plugin developers Maletg da 	Testers Maletg da 	Translators
This seems like a potentially very useful plugin, but there might be some privacy issue to consider.
Many institutions (such as my University) do not have the funds to pay for existing proctoring solutions.
Is there a GitHub page where we can have a look at it?
La media da valetaziuns: -