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

moodle-qtype_recordrtc and iOS compatibility #16

Open acquaalta opened 2 years ago

acquaalta commented 2 years ago

Moodle version: 3.11. Plugin version: 1.5 for Moodle 3.11+ (2022011200)

Hi, I have an iPhone XR with iOS 16, and I succeeded submitting an audio answer using the plugin. However, when trying to submit a video question, the camera video feed is not presented in the mobile browser in real-time and also no video is recorded. Also, when stoping the alleged recording, an "Upload failed" message is shown. I tried it with both Safari Mobile and Chrome mobile, and the results are the same. I guess it's an OS issue and not a browser issue, so that's not surprising.

After investigating a little bit I already know that this plugin use the WebRTC and is based on RecordRTC feature for the Atto editor (https://docs.moodle.org/311/en/RecordRTC). And from some of the comments in the plugin page it's clear that iOS has issues with the WebRTC protocol.

However, it's still not clear to me: 1) Why the audio answer could be recorded and the video could not? 2) Are there any new developments regarding the support of iOS for WebRTC? Is there any hope? :-)

Thanks

timhunt commented 2 years ago

The cynical answer is that Apple has a business module around people developing and setting apps. Therefore, Apple is reluctant to support open web standards like WebRTC. This is a big pain. We did a work-around for audio, but we don't have a big need for video, so we have not done anything about that yet.

acquaalta commented 2 years ago

Thanks a lot, @timhunt, for the very quick answer :-)