Interactive Video : Interactive Video does not play in Firefox in Moodle

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's picture

Hi Kathrin,

In order to give your bug report the best chance of getting answered, please include the following information:

  1. Detailed steps to reproduce the bug (exactly how and when did it happen)
  2. Platform and version number. E.g. Drupal, Wordpress, Moodle.
  3. Mobile or Desktop
  4. Browser: Chrome, Firefox, Safari etc
  5. H5P plugin version
  6. H5P content type and version (if a content type was used), and a sample URL or attached H5P.
  7. Any browser console errors
  8. Any PHP errors
  9. Screenshots if it's a visual problem

If it worked before:

  1. Any recent changes to the environment (new plugins/modules, updates, configuration changes etc.)
  2. Any recent changes to the browser you're using (new extensions, updates etc.)

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

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

 

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's picture

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

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's picture

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's picture

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

The open source community will always be on the cutting edge for the H5P content types, H5P.com will receive content type updates about 2 week after public releases (except for security and bug fixes which will be instant for both .com and self hosting)

(https://h5p.org/how-h5pcom-will-drive-h5p-forward)

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's picture

Thank you for the hint Oliver!

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

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