-
Notifications
You must be signed in to change notification settings - Fork 129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Video autoplay not working if video is on first slide #146
Comments
@fkohrt This is not a bug, but browser policies kicking in. They decide whether a video will autoplay or not before the user has interacted with the web page. Please compare https://developers.google.com/web/updates/2017/09/autoplay-policy-changes for instance. |
I see, I didn't think about that. However, in my case the video is muted (has no audio track) and it plays fine if I manually add the attribute |
@fkohrt Muted videos are a special case of its own (see the link above). There's still just a general ruleset (not a guarantee) for autoplaying even if the |
Alright, I understand this is a web browser issue. |
However, even with...
...I can't get the video to play, so it seems to me this is not a browser policy issue. How to change Chromium's policy on GNU/LinuxWrite the following to {
"AutoplayAllowed": true
} Verify that it works at Source: Chromium Documentation for Administrators > Linux Quick Start |
@fkohrt Interesting find! It seems that Course Presentation takes control over autoplaying and media instances are only autoplayed when switching the slide. Not sure it that's a bug or in fact intended behavior. I guess the H5P core team will have to answer that question. |
Summary
If I enable autoplay for a video that is on the first slide, it does not play automatically when the presentation is viewed. Only if one goes to the next slide and back again the video starts to play.
Steps to reproduce
Expected behaviour
Video should start to play.
The text was updated successfully, but these errors were encountered: