moodleou / moodle-qtype_recordrtc

A manually graded Moodle question type, where the student records a short audio response to answer the question asked.
3 stars 11 forks source link

Start recording automatically when the user loads the page #12

Open adityagoel28 opened 2 years ago

adityagoel28 commented 2 years ago

How to start audio recording automatically when the user loads the page instead of clicking the button - Start Recording

timhunt commented 2 years ago

That is not possible. the question type does not support it.

I expect it is impossible to do - it would open serious privacy concerns if the WebRTC API allowed recording to start without the user taking an action.

Also, surely the student needs time to read the question and think about it before they can answer?

adityagoel28 commented 2 years ago

But I could just use onload function to run the js function when the page loads, right?

timhunt commented 2 years ago

My guess is that if you try, the browser will block you. But, don't ask me. You can just try it. Let us know what you find.