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

WebRTC not supported #1

Closed mudrd8mz closed 4 years ago

mudrd8mz commented 4 years ago

I cannot get rid of the error message:

WebRTC not supported

Your browser offers limited or no support for WebRTC technologies yet, and cannot be used with this
type of question. Please switch or upgrade your browser.

whenever I try this. Attempted with Firefox 71.0 (64-bit) and Chrome 79.0.3945.79 (Official Build) (64-bit) on Linux, each with and without OpenGL / 3D discrete GPU available.

This seems clearly to be a local issue, I am just wondering if there are some debugging hints available as to what might be missing in my setup. TIA.

timhunt commented 4 years ago

That is strange. On the same computer, does the Record RTC button in atto work? We basically stole all that code, including the browser compatibility checks (https://github.com/moodle/moodle/blob/master/lib/editor/atto/plugins/recordrtc/yui/src/recording/js/compatcheckmodule.js#L41), although we then rewrote it to eliminate the YUI.

Firefox supports all the the necessary APIs, and we are using ogg format, so I would expect it to work.

mudrd8mz commented 4 years ago

No, it does not work in Atto, too.

timhunt commented 4 years ago

OK. I wonder what the difference is between Firefox on Win/Max and Firefox on Linux. Not something I am in a position to easily debug.

mudrd8mz commented 4 years ago

Aha! I think I got something. The Atto record button does work if I access the site via HTTPS. And I recall it has been a requirement for some of these features.

mudrd8mz commented 4 years ago

And yes, I can confirm that once I access my local testing environment under HTTPS, it works.

timhunt commented 4 years ago

Yes, that is a requirement for these APIs. The Atto plugin gives a more specific error message in this case. We shuld probably do the same. Thank you for reporting the issue, and your help with diagnosis. Now we just need time to fix is.

timhunt commented 4 years ago

We now have a more specific error message for this case. Closing.