From a9d205b799a18a6e97433e591a37086c11489251 Mon Sep 17 00:00:00 2001 From: Frode Petterson Date: Mon, 25 Feb 2013 14:15:06 +0100 Subject: [PATCH] Fixed video format. --- js/questionset.js | 2 +- semantics.json | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/js/questionset.js b/js/questionset.js index b523ebe..e848d7e 100644 --- a/js/questionset.js +++ b/js/questionset.js @@ -208,7 +208,7 @@ H5P.QuestionSet = function (options, contentId) { if (params.endGame.animations.showAnimations) { var videoData = success ? params.endGame.animations.successVideo : params.endGame.animations.failVideo; if (videoData) { - H5P.playVideo($myDom, videoData, cp, function () { + H5P.playVideo($myDom, videoData, params.endGame.animations.skipButtonText, cp, function () { displayResults(); }); return; diff --git a/semantics.json b/semantics.json index 1b38b56..6b1e2e3 100644 --- a/semantics.json +++ b/semantics.json @@ -191,6 +191,17 @@ "type": "boolean", "label": "Show animations" }, + { + "name": "skippable", + "type": "boolean", + "label": "Skippable" + }, + { + "name": "skipButtonText", + "type": "text", + "label": "Skip button text", + "common": true + }, { "name": "successVideo", "type": "video",