-
Notifications
You must be signed in to change notification settings - Fork 2
/
example.json
85 lines (83 loc) · 3.19 KB
/
example.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
{
"_id": "c-05",
"_parentId": "b-05",
"_type": "component",
"_component": "mediagallery",
"_classes": "",
"_layout": "full",
"title": "Media Gallery",
"displayTitle": "Media Gallery",
"body": "Body text",
"instruction": "Select the play button to start the video.",
"_comment": "_setCompletionOn = inview | play | allPlayed | ended | allEnded",
"_setCompletionOn": "allPlayed",
"_useClosedCaptions": true,
"_allowFullScreen": true,
"_playsinline": false,
"_startLanguage": "en",
"_showVolumeControl": true,
"_startVolume": "80%",
"_items": [
{
"title": "Video 1",
"subtitle": "Subtitle",
"ariaLabel": "Select this to hear from Speaker 1",
"_graphic": {
"src": "course/en/video/video1_thumb.png"
},
"_media": {
"mp4": "course/en/video/placeholder.mp4",
"poster": "course/en/video/placeholder.jpg",
"cc": [
{
"srclang": "en",
"src": "course/en/video/placeholder.vtt"
}
]
},
"_transcript": {
"_comment": "_inlineTranscript = Enable item transcript",
"_inlineTranscript": true
}
},
{
"title": "Video 2",
"subtitle": "Subtitle",
"ariaLabel": "Select this to hear from Speaker 2",
"_graphic": {
"src": "course/en/video/video2_thumb.png"
},
"_media": {
"mp4": "course/en/video/placeholder.mp4",
"poster": "course/en/video/placeholder.png",
"cc": [
{
"srclang": "en",
"src": "course/en/video/placeholder.vtt"
}
]
},
"_transcript": {
"_comment": "_inlineTranscript = Enable item transcript with overrides",
"_inlineTranscript": true,
"inlineTranscriptBody": "Transcript for video 2"
}
}
],
"_comment": "_transcript = Global transcript",
"_transcript": {
"_setCompletionOnView": true,
"_inlineTranscript": true,
"_externalTranscript": false,
"inlineTranscriptButton": "Show transcript",
"inlineTranscriptCloseButton": "Hide transcript",
"inlineTranscriptBody": "Transcript body text should go here",
"transcriptLinkButton": "Transcript",
"transcriptLink": "assets/transcript.pdf"
},
"_playerOptions": {
"toggleCaptionsButtonWhenOnlyOne": true
}
}
// For additional player options please refer to the media components example json
// https://github.com/adaptlearning/adapt-contrib-media/blob/master/example.json