OPPG-446: Autoplay video does not work on mobile devices, changed to play()
parent
840bcf19c6
commit
3d10a111cd
|
@ -249,13 +249,14 @@ H5P.QuestionSet = function (options, contentId) {
|
|||
files: videoData,
|
||||
fitToWrapper: true,
|
||||
controls: false,
|
||||
autoplay: true
|
||||
autoplay: false
|
||||
}, contentId);
|
||||
video.endedCallback = function () {
|
||||
displayResults();
|
||||
$videoContainer.hide();
|
||||
};
|
||||
video.attach($videoContainer);
|
||||
video.play();
|
||||
|
||||
if (params.endGame.skipButtonText) {
|
||||
$('<a class="button skip">' + params.endGame.skipButtonText + '</a>').click(function () {
|
||||
|
|
Loading…
Reference in New Issue