Fixed video format.
parent
368e085940
commit
a9d205b799
|
@ -208,7 +208,7 @@ H5P.QuestionSet = function (options, contentId) {
|
||||||
if (params.endGame.animations.showAnimations) {
|
if (params.endGame.animations.showAnimations) {
|
||||||
var videoData = success ? params.endGame.animations.successVideo : params.endGame.animations.failVideo;
|
var videoData = success ? params.endGame.animations.successVideo : params.endGame.animations.failVideo;
|
||||||
if (videoData) {
|
if (videoData) {
|
||||||
H5P.playVideo($myDom, videoData, cp, function () {
|
H5P.playVideo($myDom, videoData, params.endGame.animations.skipButtonText, cp, function () {
|
||||||
displayResults();
|
displayResults();
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -191,6 +191,17 @@
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
"label": "Show animations"
|
"label": "Show animations"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name": "skippable",
|
||||||
|
"type": "boolean",
|
||||||
|
"label": "Skippable"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "skipButtonText",
|
||||||
|
"type": "text",
|
||||||
|
"label": "Skip button text",
|
||||||
|
"common": true
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "successVideo",
|
"name": "successVideo",
|
||||||
"type": "video",
|
"type": "video",
|
||||||
|
|
Loading…
Reference in New Issue