Skip to content

Instantly share code, notes, and snippets.

@cajones
Created June 2, 2014 11:27
Show Gist options
  • Save cajones/8ea9fe36150b5a841f06 to your computer and use it in GitHub Desktop.
Save cajones/8ea9fe36150b5a841f06 to your computer and use it in GitHub Desktop.
vmcq example json
{
"_id":"c-140",
"_parentId":"b-70",
"_type":"component",
"_component":"vmcq",
"_classes":"",
"_layout":"full",
"_attempts":1,
"_questionWeight":1,
"_isRandom":false,
"_selectable":1,
"_completeOnWatched":true,
"title": "Multi Video",
"displayTitle": "Multi Video",
"body": "Choose a scenario",
"instruction":"",
"_items": [
{
"text": "This is option 1 (Correct).",
"_shouldBeSelected":true,
"_shouldBeWatched":true,
"_media": {
"mp4": "course/en/video/big_buck_bunny.mp4",
"ogv": "course/en/video/big_buck_bunny.ogv",
"poster": "course/en/video/big_buck_bunny-small.jpg"
},
"footer": "Watched"
},
{
"text": "This is option 2.",
"_shouldBeSelected":false,
"_shouldBeWatched":true,
"_media": {
"mp4": "course/en/video/big_buck_bunny.mp4",
"ogv": "course/en/video/big_buck_bunny.ogv",
"poster": "course/en/video/big_buck_bunny-small.jpg"
},
"footer": "Watched"
},
{
"text": "This is option 3.",
"_shouldBeSelected":false,
"_shouldBeWatched":true,
"_media": {
"mp4": "course/en/video/big_buck_bunny.mp4",
"ogv": "course/en/video/big_buck_bunny.ogv",
"poster": "course/en/video/big_buck_bunny-small.jpg"
},
"footer": "Watched"
},
{
"text": "This is option 4.",
"_shouldBeSelected":false,
"_shouldBeWatched":true,
"_media": {
"mp4": "course/en/video/big_buck_bunny.mp4",
"ogv": "course/en/video/big_buck_bunny.ogv",
"poster": "course/en/video/big_buck_bunny-small.jpg"
},
"footer": "Watched"
}
],
"_feedback":{
"correct":"Congratulations, this is the correct feedback.",
"_incorrect": {
"notFinal": "",
"final": "This feedback will appear if you answered the question incorrectly."
},
"_partlyCorrect": {
"notFinal": "",
"final": "This feedback will appear if you answered part of the question correctly."
}
},
"_buttons": {
"submit": "",
"reset": "",
"showCorrectAnswer": "",
"hideCorrectAnswer": ""
},
"_pageLevelProgress": {
"_isEnabled": true
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment