From 3d10a111cd851b7f9953faaa0431a6047c1542f4 Mon Sep 17 00:00:00 2001 From: Frank Ronny Larsen Date: Fri, 19 Jul 2013 10:24:13 +0200 Subject: [PATCH] OPPG-446: Autoplay video does not work on mobile devices, changed to play() --- js/questionset.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/questionset.js b/js/questionset.js index 2cce20e..28d0ea0 100644 --- a/js/questionset.js +++ b/js/questionset.js @@ -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) { $('').click(function () {