Skip to content

Instantly share code, notes, and snippets.

@cormac-work
Created February 5, 2018 15:30
Show Gist options
  • Save cormac-work/b84e7a1cb78b71cdd7275d1ce9a855ed to your computer and use it in GitHub Desktop.
Save cormac-work/b84e7a1cb78b71cdd7275d1ce9a855ed to your computer and use it in GitHub Desktop.
wotd.json
{
"_id": "c-15",
"_parentId": "b-10",
"_type": "component",
"_component": "media",
"_classes": "",
"_layout": "left",
"title": "Title of the media component",
"displayTitle": "Title of the media component",
"body": "This is optional body text. Select the play button to start the video.",
"instruction": "",
"_setCompletionOn": "inview",
"_useClosedCaptions": true,
"_startLanguage": "en",
"_allowFullScreen": true,
"_showVolumeControl": true,
"_startVolume": "80%",
"_playsinline": false,
"_media": {
"mp4": "course/assets/big_buck_bunny.mp4",
"ogv": "course/assets/big_buck_bunny.ogv",
"poster": "course/assets/big-buck-bunny.jpg",
"cc": [
{
"srclang": "en",
"src": "course/en/video/big_buck_bunny_sub.vtt"
},
{
"srclang": "pl",
"src": "course/en/video/big_buck_bunny_sub-pl.vtt"
}
]
},
"_transcript": {
"_setCompletionOnView": true,
"_inlineTranscript": true,
"_externalTranscript": false,
"inlineTranscriptButton": "Transcript",
"inlineTranscriptCloseButton": "Close Transcript",
"inlineTranscriptBody": "Transcript body text should go here",
"transcriptLinkButton": "Transcript",
"transcriptLink": "assets/transcript.pdf"
},
"_playerOptions": {
"poster": "",
"showPosterWhenEnded": false,
"defaultVideoWidth": 480,
"defaultVideoHeight": 270,
"videoWidth": -1,
"videoHeight": -1,
"defaultAudioWidth": 400,
"defaultAudioHeight": 30,
"defaultSeekBackwardInterval": "(media.duration * 0.05)",
"defaultSeekForwardInterval": "(media.duration * 0.05)",
"audioWidth": -1,
"audioHeight": -1,
"startVolume": 0.8,
"loop": false,
"autoRewind": true,
"enableAutosize": true,
"alwaysShowHours": false,
"showTimecodeFrameCount": false,
"framesPerSecond": 25,
"autosizeProgress" : true,
"alwaysShowControls": false,
"hideVideoControlsOnLoad": false,
"clickToPlayPause": true,
"iPadUseNativeControls": false,
"iPhoneUseNativeControls": false,
"AndroidUseNativeControls": false,
"features": ["playpause","current","progress","duration","tracks","volume","fullscreen"],
"isVideo": true,
"enableKeyboard": true,
"pauseOtherPlayers": true,
"startLanguage": "",
"tracksText": "mejs.i18n.t('Captions/Subtitles')",
"hideCaptionsButtonWhenEmpty": true,
"toggleCaptionsButtonWhenOnlyOne": false,
"slidesSelector": ""
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment