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