Interactive Video : Interactive Video does not play in Firefox in Moodle
Submitted by kbxxus on Wed, 09/06/2023 - 10:29
Forums:
I have an issue with interactive videos inside the interactive book in moodle 4.1. In firefox the interactive video does not play in non full screen mode. The only error get in firefox console: "No ajax path found"
any ideas?
Kathrin
Content types:
BV52
Wed, 09/06/2023 - 18:35
Permalink
Hi Kathrin,In order to give
Hi Kathrin,
In order to give your bug report the best chance of getting answered, please include the following information:
If it worked before:
The more information you provide, the quicker the community will be able to fix it and the quicker you'll have a working solution!
-BV
kbxxus
Thu, 09/07/2023 - 15:58
Permalink
additional information
hi BV,
here some additional information:
- Steps: click on “Play Button” of interactive video inside course presentation inside interactive book; video does not play or just plays a short while.
- Moodle 4.1; recently upgraded, before it worked
- Desktop
- Browser: only Firefox
- Browser console error: "Uncaught (in promise) DOMException: The play method is not allowed by the user agent or the platform in the current context, possibly because the user denied permission."
Kathrin
kbxxus
Fri, 09/08/2023 - 13:47
Permalink
Cause of bug: use of Latex/Mathjax
At least we found out why the video does not play: The interactive book has also content with formulas which require to load mathjax. Without the formulas the video plays ok
BV52
Mon, 09/11/2023 - 17:55
Permalink
Hi Kathrin,At least you were
Hi Kathrin,
At least you were able to narrow down what is causing the issue. Would it be possible to share your content. I am unable to reproduce this on my end.
-BV
kbxxus
Thu, 10/05/2023 - 15:31
Permalink
Source
Hi BV,
here is the link to the interactive book/video: Lernsequenz Energieerhaltung (Kopie) (ruhr-uni-bochum.de). It is in German. In Firefox the video does not play if not in fullscreen mode,
Kathrin
BV52
Thu, 10/05/2023 - 19:19
Permalink
Hi Kathrin,Thank you for
Hi Kathrin,
Thank you for sharing the link. I can see the same issue when using Firefox. However, when I uploaded your content into H5P.com the video plays without any issues. Can you try disabling other plugins in Moodle and see if it helps.
-BV
otacke
Thu, 10/05/2023 - 21:48
Permalink
The culprit seems to be the
The culprit seems to be the MathDisplay library that is used. I didn't track everything down, but something (potentially some side effect of the MutationObserver, seems to make the video element trigger the `pause` event, and Interactive Video just reacts to that one.
The RUB server seems to run version 1.0.4 whereas on H5P.com we can find 1.0.20 while the version that can be officially downloaded is 1.0.7 - and the latest one that is tagged on github is 1.0.22 even. What happened to
That aside: version 1.0.7 does not seem to contain the bug that 1.0.4 has, so downloading the former from https://h5p.org/mathematical-expressions and installing that on the RUB moodle instance should solve the issue.
Best,
Oliver
BV52
Fri, 10/06/2023 - 18:44
Permalink
Thank you for the hint Oliver
Thank you for the hint Oliver!
kbxxus
Wed, 10/18/2023 - 14:46
Permalink
MathDisplay library updated
Hi Oliver,
thank you for the hint. We updated the Math Display lib to version 1.0.7 and now it works,
best regards
Kathrin
kbxxus
Wed, 10/18/2023 - 14:46
Permalink
MathDisplay library updated
Hi Oliver,
thank you for the hint. We updated the Math Display lib to version 1.0.7 and now it works,
best regards
Kathrin