No sound in interactive videos
Submitted by [email protected] on Thu, 11/17/2022 - 07:34
Forums:
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.
- Happens randomly in all kinds of browsers.
- The platform is Moodle3.11.
- Desktop
- All kinds of browsers.
- H5P plugin version - Interavtive video 1.24.
- Interavtive video 1.21.10, 1.22.5, a sample URL - https://moodle.tau.ac.il/mod/hvp/view.php?id=89594.
- Usually there were no browser console errors, once an error appeared which I ajoin a screen shot of.
- No PHP errors
I will apreciate any help. It's quite critical for us.
thanks,
Lihi
otacke
Thu, 11/17/2022 - 18:18
Permalink
Hi!The error message is from
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
[email protected]
Sun, 11/20/2022 - 08:37
Permalink
Thank you, Oliver.We use
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.
[email protected]
Sun, 11/20/2022 - 10:01
Permalink
Thank you, Oliver.We use
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
Sun, 11/20/2022 - 12:47
Permalink
Hi!I don't know how Panopto
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
[email protected]
Sun, 11/27/2022 - 12:45
Permalink
Problem continues
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
Mon, 11/28/2022 - 16:21
Permalink
Hi Lihi!You can try. Version
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
[email protected]
Mon, 11/28/2022 - 13:20
Permalink
Problem continues
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.
yossi
Tue, 11/29/2022 - 11:50
Permalink
no HLS problem
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
Tue, 11/29/2022 - 17:13
Permalink
Hi Jossi!I am merely looking
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
[email protected]
Wed, 11/30/2022 - 14:17
Permalink
Another error
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
otacke
Wed, 11/30/2022 - 16:11
Permalink
Hi!Soundjs is not used by
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
[email protected]
Wed, 11/30/2022 - 19:25
Permalink
Thank you
Thank you very much, Oliver, for the detailed explanation, Lihi.