mirror of
https://github.com/h5p/h5p-interactive-video.git
synced 2026-03-04 09:16:09 +08:00
382 lines
11 KiB
JSON
382 lines
11 KiB
JSON
[
|
|
{
|
|
"name": "interactiveVideo",
|
|
"type": "group",
|
|
"widget": "wizard",
|
|
"label": "Interactive Video Editor",
|
|
"fields": [
|
|
{
|
|
"name": "video",
|
|
"type": "group",
|
|
"label": "Upload video",
|
|
"fields": [
|
|
{
|
|
"name": "files",
|
|
"type": "video",
|
|
"label": "Video files",
|
|
"description": "Select the video files you wish to use in your interactive video. To ensure maximum support in browsers at least add a version of the video in webm and mp4 formats."
|
|
},
|
|
{
|
|
"name": "copyright",
|
|
"type": "text",
|
|
"widget": "html",
|
|
"enterMode": "p",
|
|
"label": "Video copyright information",
|
|
"optional": true,
|
|
"description": "Information regarding copyright of the video and elements used in the video.",
|
|
"tags": [
|
|
"strong",
|
|
"em",
|
|
"del",
|
|
"a"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "assets",
|
|
"type": "group",
|
|
"label": "Add interactions",
|
|
"widget": "interactiveVideo",
|
|
"video": "video/files",
|
|
"fields": [
|
|
{
|
|
"name": "interactions",
|
|
"type": "list",
|
|
"field": {
|
|
"name": "interaction",
|
|
"type": "group",
|
|
"fields": [
|
|
{
|
|
"name": "duration",
|
|
"type": "group",
|
|
"widget": "duration",
|
|
"label": "Display time",
|
|
"fields": [
|
|
{
|
|
"name": "from",
|
|
"type": "number"
|
|
},
|
|
{
|
|
"name": "to",
|
|
"type": "number"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "pause",
|
|
"label": "Pause",
|
|
"description": "Set playback on pause when this interaction is reached.",
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"name": "displayAsButton",
|
|
"label": "Display as an interactive button",
|
|
"description": "The user has to open the interaction.",
|
|
"type": "boolean",
|
|
"default": true,
|
|
"optional": true
|
|
},
|
|
{
|
|
"name": "label",
|
|
"type": "text",
|
|
"widget": "html",
|
|
"label": "Label",
|
|
"description": "Label displayed next to interaction icon.",
|
|
"optional": true,
|
|
"enterMode": "p",
|
|
"tags": [
|
|
"p"
|
|
]
|
|
},
|
|
{
|
|
"name": "x",
|
|
"type": "number",
|
|
"widget": "none"
|
|
},
|
|
{
|
|
"name": "y",
|
|
"type": "number",
|
|
"widget": "none"
|
|
},
|
|
{
|
|
"name": "width",
|
|
"type": "number",
|
|
"widget": "none",
|
|
"optional": true
|
|
},
|
|
{
|
|
"name": "height",
|
|
"type": "number",
|
|
"widget": "none",
|
|
"optional": true
|
|
},
|
|
{
|
|
"name": "action",
|
|
"type": "library",
|
|
"options": [
|
|
"H5P.Nil 1.0",
|
|
"H5P.Text 1.0",
|
|
"H5P.Table 1.0",
|
|
"H5P.Link 1.0",
|
|
"H5P.Image 1.0",
|
|
"H5P.Summary 1.2",
|
|
"H5P.SingleChoiceSet 1.1",
|
|
"H5P.MultiChoice 1.2",
|
|
"H5P.Blanks 1.2",
|
|
"H5P.DragQuestion 1.2",
|
|
"H5P.MarkTheWords 1.2",
|
|
"H5P.DragText 1.2"
|
|
]
|
|
},
|
|
{
|
|
"name": "adaptivity",
|
|
"type": "group",
|
|
"label": "Adaptivity",
|
|
"optional": true,
|
|
"fields": [
|
|
{
|
|
"name": "correct",
|
|
"type": "group",
|
|
"label": "Action on all correct",
|
|
"fields": [
|
|
{
|
|
"name": "seekTo",
|
|
"type": "number",
|
|
"widget": "timecode",
|
|
"label": "Seek to",
|
|
"description": "Enter timecode in the format M:SS"
|
|
},
|
|
{
|
|
"name": "allowOptOut",
|
|
"type": "boolean",
|
|
"label": "Allow the user to opt out and continue"
|
|
},
|
|
{
|
|
"name": "message",
|
|
"type": "text",
|
|
"widget": "html",
|
|
"enterMode": "p",
|
|
"tags": [
|
|
"strong",
|
|
"em",
|
|
"del",
|
|
"a"
|
|
],
|
|
"label": "Message"
|
|
},
|
|
{
|
|
"name": "seekLabel",
|
|
"type": "text",
|
|
"label": "Label for seek button"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "wrong",
|
|
"type": "group",
|
|
"label": "Action on wrong",
|
|
"fields": [
|
|
{
|
|
"name": "seekTo",
|
|
"type": "number",
|
|
"widget": "timecode",
|
|
"label": "Seek to",
|
|
"description": "Enter timecode in the format M:SS"
|
|
},
|
|
{
|
|
"name": "allowOptOut",
|
|
"type": "boolean",
|
|
"label": "Allow the user to opt out and continue"
|
|
},
|
|
{
|
|
"name": "message",
|
|
"type": "text",
|
|
"widget": "html",
|
|
"enterMode": "p",
|
|
"tags": [
|
|
"strong",
|
|
"em",
|
|
"del",
|
|
"a"
|
|
],
|
|
"label": "Message"
|
|
},
|
|
{
|
|
"name": "seekLabel",
|
|
"type": "text",
|
|
"label": "Label for seek button"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"name": "bookmarks",
|
|
"type": "list",
|
|
"field": {
|
|
"name": "bookmark",
|
|
"type": "group",
|
|
"fields": [
|
|
{
|
|
"name": "time",
|
|
"type": "number"
|
|
},
|
|
{
|
|
"name": "label",
|
|
"type": "text"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "summary",
|
|
"type": "group",
|
|
"label": "Summary task",
|
|
"fields": [
|
|
{
|
|
"name": "task",
|
|
"type": "library",
|
|
"options": [
|
|
"H5P.Summary 1.2"
|
|
],
|
|
"default": {
|
|
"library": "H5P.Summary 1.2",
|
|
"params": {}
|
|
}
|
|
},
|
|
{
|
|
"name": "displayAt",
|
|
"type": "number",
|
|
"label": "Display at",
|
|
"description": "Number of seconds before the video ends.",
|
|
"default": 3
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "override",
|
|
"type": "group",
|
|
"label": "Settings for \"Show solution\" button and \"Retry\".",
|
|
"description": "These options will let you override when to display \"Show solution\" button and \"Retry\" in integrated h5p content.",
|
|
"optional": true,
|
|
"fields": [
|
|
{
|
|
"name": "overrideButtons",
|
|
"type": "boolean",
|
|
"label": "Enable override for \"Show solution\" and \"Retry\" settings.",
|
|
"description": "If this is enabled the questions own settings will be ignored and the below settings will be used instead.",
|
|
"default": false
|
|
},
|
|
{
|
|
"name": "overrideShowSolutionButton",
|
|
"type": "boolean",
|
|
"label": "Enable \"Show solution\" buttons.",
|
|
"description": "Enabling this option will make questions show the \"Show solution\" button.",
|
|
"default": false
|
|
},
|
|
{
|
|
"name": "overrideRetry",
|
|
"type": "boolean",
|
|
"label": "Enable \"Retry\".",
|
|
"description": "Enabling this option will make the user able to \"Retry\" .",
|
|
"default": false
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "interaction",
|
|
"type": "text",
|
|
"label": "Interaction title",
|
|
"default": "Interaction",
|
|
"common": true,
|
|
"optional": true
|
|
},
|
|
{
|
|
"name": "play",
|
|
"type": "text",
|
|
"label": "Play title",
|
|
"default": "Play",
|
|
"common": true,
|
|
"optional": true
|
|
},
|
|
{
|
|
"name": "pause",
|
|
"type": "text",
|
|
"label": "Pause title",
|
|
"default": "Pause",
|
|
"common": true,
|
|
"optional": true
|
|
},
|
|
{
|
|
"name": "mute",
|
|
"type": "text",
|
|
"label": "Mute title",
|
|
"default": "Mute",
|
|
"common": true,
|
|
"optional": true
|
|
},
|
|
{
|
|
"name": "unmute",
|
|
"type": "text",
|
|
"label": "Unmute title",
|
|
"default": "Unmute",
|
|
"common": true,
|
|
"optional": true
|
|
},
|
|
{
|
|
"name": "quality",
|
|
"type": "text",
|
|
"label": "Video quality title",
|
|
"default": "Video Quality",
|
|
"common": true,
|
|
"optional": true
|
|
},
|
|
{
|
|
"name": "fullscreen",
|
|
"type": "text",
|
|
"label": "Fullscreen title",
|
|
"default": "Fullscreen",
|
|
"common": true,
|
|
"optional": true
|
|
},
|
|
{
|
|
"name": "exitFullscreen",
|
|
"type": "text",
|
|
"label": "Exit fullscreen title",
|
|
"default": "Exit Fullscreen",
|
|
"common": true,
|
|
"optional": true
|
|
},
|
|
{
|
|
"name": "summary",
|
|
"type": "text",
|
|
"label": "Summary title",
|
|
"default": "Summary",
|
|
"common": true,
|
|
"optional": true
|
|
},
|
|
{
|
|
"name": "bookmarks",
|
|
"type": "text",
|
|
"label": "Bookmarks title",
|
|
"default": "Bookmarks",
|
|
"common": true,
|
|
"optional": true
|
|
},
|
|
{
|
|
"name": "defaultAdaptivitySeekLabel",
|
|
"type": "text",
|
|
"label": "Default label for adaptivity seek button",
|
|
"default": "Continue",
|
|
"common": true,
|
|
"optional": true
|
|
}
|
|
]
|