No sound in interactive videos

Hello,

we recently have occasional incidents in which H5P interactive videos are playing with no sound.

it's very random (can happen in a specific scenario and after a while not happen in the exact same scenario), so I can't supply accurate details.

  1. Happens randomly in all kinds of browsers.
  2. The platform is Moodle3.11.
  3. Desktop
  4. All kinds of browsers.
  5. H5P plugin version - Interavtive video 1.24.
  6.   Interavtive video 1.21.10, 1.22.5, a sample URL - https://moodle.tau.ac.il/mod/hvp/view.php?id=89594.
  7. Usually there were no browser console errors, once an error appeared which I ajoin a screen shot of.
  8. No PHP errors

I will apreciate any help. It's quite critical for us.

thanks,

Lihi

Attachments: 
otacke's picture

Hi!

The error message is from hls.js not from H5P. H5P does not have support for HLS. Am I right to assume that you are using some instance of hls.js to provide H5P with videos? That's where you need to locate the issue.

Best,

Oliver 

Thank you, Oliver.

We use Panopto to play videos, so we're not really determine anything regarding the streaming ourselves.

About the hls error - as I wrote,  it only happend once. It didn't appear in all the (many) other cases there was no sound.

Thank you, Oliver.

We use Panopto to play videos, so we're not really determine anything regarding the streaming ourselves.

About the hls error - as I wrote, it only happend once. It didn't appear in all the (many) other cases there was no sound.

otacke's picture

Hi!

I don't know how Panopto works internally, but given that H5P doesn't support HLS, the issue seems to be on Panopto's end.

Best,

Oliver 

Hi, we still experiencing the sound problems. Our interactive video libraries are - 1.21.10, 1.22.5,1.24.2. It is possible that the problematic videos are only from the first two. What can you recommend us?  We thought of upgrading all videos to library 1.24.2.

Thanks, Lihi

otacke's picture

Hi Lihi!

You can try. Version 1.21 and 1.22 both use the the library H5P.Video 1.5 to connect to Panopto. Version 1.24 uses H5P.Video 1.6 that has seen some changes to the Panopto integration.

However, as I mentioned before, the error message that you attached initially stems from the server that runs Panopto outside of H5P's control. It's possible that this is a bug in the hls.js library that Panopto is using (cmp. https://github.com/video-dev/hls.js/issues/2893) and then this bug needs to be fixed on hls.js and Panopto needs to adopt that fix.

Cheers,

Oliver

We're still experiencing the same problems of occasionly no sound in h5p videos. The versions of h5p we use are 1.21,10, 1.22.5, 1.24.2.

It's possible that the problems are only in the first 2. Do you recommand to upgrade all to the third one? 

We're concerned we will encounter other problems.

Hi Oliver,
We don't think that the problem is with HLS. This message is written in the console also when the sound is on. The problem is in H5P, with a interactive video of Panopto link. By the way, in Incognito - we hear the sound of the same recording. Also, when we set the chrome to "Block third-party cookies" - the sound works in the regular Chrome (not Incognito). So how can you help us with it? Thanks, Yossi 

otacke's picture

Hi Jossi!

I am merely looking at what I was presented with, the, the error message, and don't have a Panopto server to play with, so maybe someone else (could be the H5P core team, could be someone else from the community) will need to take a look.

Best,

Oliver 

Hello Oliver,

In a video that has sound we have the ajoind error, that might be a clue.

soundjs-0.6.2.min.js?ver=1.0.2:20 The AudioContext was not allowed to start. It must be resumed (or created) after a user gesture on the page. https://goo.gl/7K7WLu

Thanks,

Lihi

Attachments: 
otacke's picture

Hi!

Soundjs is not used by Interactive Video. It is used by some other content types, e.g. "Single Choice Set", but that's not related to playing the video audio.

The message, in general, just indicates that sound was tried to be played before the user has interacted with the site, usually if some "autoplay" option was chosen. Browsers have a policy that prevents that, because autoplaying sound was too often used by annoying advertising. Blocking autoplay depends on certain rules that differ from browser to browser and scenario to scenario. That's nothing that H5P or any other web application can influence.

When a user clicks "play", that's counted as a user interaction and then audio is allowed to play. Before that "click", the application is at the mercy of the browser.

Cheers,
Oliver

Thank you very much, Oliver, for the detailed explanation, Lihi.