Closed Gameheld closed 2 years ago
Also H5P do not have to be an <iframe>
though the code currently makes this assumption
@septatrix Do you have an example Moodle Room with h5p and without iframes? Mine are all with iframes
No, I just happen to know that it is part of the H5P standard and Moodle supports it
So I did something. The code now checks for iframes. Also, I changed the scanforlinks method in a way so that the h5p youtube links are added properly. I didnt really see the need to check for single
there, because we use findAll
anyways. I changed the else-case, because in my opinion it basically did the same. Tested the code with some courses that had h5p integrations aswell as normal youtube links. Everything worked as expected. Please tell me if I missed something.
Added support for the new moodle function with interactive video functionality. See here: https://docs.moodle.org/400/en/H5P_activity