OPPG-446: Autoplay video does not work on mobile devices, changed to play()

pull/1/head
Frank Ronny Larsen 2013-07-19 10:24:13 +02:00
parent 840bcf19c6
commit 3d10a111cd
1 changed files with 2 additions and 1 deletions

View File

@ -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 () {