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,
|
files: videoData,
|
||||||
fitToWrapper: true,
|
fitToWrapper: true,
|
||||||
controls: false,
|
controls: false,
|
||||||
autoplay: true
|
autoplay: false
|
||||||
}, contentId);
|
}, contentId);
|
||||||
video.endedCallback = function () {
|
video.endedCallback = function () {
|
||||||
displayResults();
|
displayResults();
|
||||||
$videoContainer.hide();
|
$videoContainer.hide();
|
||||||
};
|
};
|
||||||
video.attach($videoContainer);
|
video.attach($videoContainer);
|
||||||
|
video.play();
|
||||||
|
|
||||||
if (params.endGame.skipButtonText) {
|
if (params.endGame.skipButtonText) {
|
||||||
$('<a class="button skip">' + params.endGame.skipButtonText + '</a>').click(function () {
|
$('<a class="button skip">' + params.endGame.skipButtonText + '</a>').click(function () {
|
||||||
|
|
Loading…
Reference in New Issue