-
Notifications
You must be signed in to change notification settings - Fork 54
/
properties.schema
473 lines (473 loc) · 13.5 KB
/
properties.schema
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
{
"type": "object",
"$schema": "http://json-schema.org/draft-04/schema",
"id": "http://jsonschema.net",
"$ref": "http://localhost/plugins/content/component/model.schema",
"globals": {
"ariaRegion": {
"type": "string",
"required": true,
"default": "Media player{{#any _transcript._inlineTranscript _transcript._externalTranscript}} and transcript{{/any}}.",
"inputType": "Text",
"validators": [],
"translatable": true
},
"skipToTranscript": {
"type": "string",
"required": true,
"default": "Skip to transcript",
"inputType": "Text",
"validators": [],
"translatable": true
},
"playText": {
"type": "string",
"required": true,
"default": "Play",
"inputType": "Text",
"validators": [],
"translatable": true
},
"pauseText": {
"type": "string",
"required": true,
"default": "Pause",
"inputType": "Text",
"validators": [],
"translatable": true
},
"stopText": {
"type": "string",
"required": true,
"default": "Stop",
"inputType": "Text",
"validators": [],
"translatable": true
},
"audioPlayerText": {
"type": "string",
"required": true,
"default": "Audio Player",
"inputType": "Text",
"validators": [],
"translatable": true
},
"videoPlayerText": {
"type": "string",
"required": true,
"default": "Video Player",
"inputType": "Text",
"validators": [],
"translatable": true
},
"tracksText": {
"type": "string",
"required": true,
"default": "Captions/Subtitles",
"inputType": "Text",
"validators": [],
"translatable": true
},
"timeSliderText": {
"type": "string",
"required": true,
"default": "Time Slider",
"inputType": "Text",
"validators": [],
"translatable": true
},
"muteText": {
"type": "string",
"required": true,
"default": "Mute Toggle",
"inputType": "Text",
"validators": [],
"translatable": true
},
"unmuteStatusText": {
"type": "string",
"required": true,
"default": "Unmute",
"inputType": "Text",
"validators": [],
"translatable": true
},
"muteStatusText": {
"type": "string",
"required": true,
"default": "Mute",
"inputType": "Text",
"validators": [],
"translatable": true
},
"volumeSliderText": {
"type": "string",
"required": true,
"default": "Volume Slider",
"inputType": "Text",
"validators": [],
"translatable": true
},
"fullscreenText": {
"type": "string",
"required": true,
"default": "Fullscreen",
"inputType": "Text",
"validators": [],
"translatable": true
},
"goFullscreenText": {
"type": "string",
"required": true,
"default": "Go Fullscreen",
"inputType": "Text",
"validators": [],
"translatable": true
},
"turnOffFullscreenText": {
"type": "string",
"required": true,
"default": "Turn off Fullscreen",
"inputType": "Text",
"validators": [],
"translatable": true
},
"noneText": {
"type": "string",
"required": true,
"default": "None",
"inputType": "Text",
"validators": [],
"translatable": true
},
"skipBackText": {
"type": "string",
"required": true,
"default": "Skip back %1 seconds",
"inputType": "Text",
"validators": [],
"translatable": true
},
"allyVolumeControlText": {
"type": "string",
"required": true,
"default": "Use Up/Down Arrow keys to increase or decrease volume.",
"inputType": "Text",
"validators": [],
"translatable": true
},
"progessHelpText": {
"type": "string",
"required": true,
"default": "Use Left/Right Arrow keys to advance one second, Up/Down arrows to advance ten seconds.",
"inputType": "Text",
"validators": [],
"translatable": true
}
},
"properties": {
"_supportedLayout": {
"type": "string",
"required": true,
"enum": ["full-width", "half-width", "both"],
"default": "both",
"editorOnly": true
},
"instruction": {
"type": "string",
"required": false,
"default": "Select the play button to start the video.",
"inputType": "Text",
"validators": [],
"help": "This is the instruction text",
"translatable": true
},
"_media": {
"type": "object",
"required": true,
"title": "Media",
"properties": {
"mp4": {
"type": "string",
"required": false,
"default": "",
"title": "MP4 Link",
"inputType": "Asset:video",
"validators": [],
"help": "Link to an MP4 video"
},
"ogv": {
"type": "string",
"required": false,
"default": "",
"title": "OGV Link",
"inputType": "Asset:video",
"validators": [],
"help": "Link to an OGV video"
},
"webm": {
"type": "string",
"required": false,
"default": "",
"title": "WEBM Link",
"inputType": "Asset:video",
"validators": [],
"help": "Link to a WEBM video"
},
"mp3": {
"type": "string",
"required": false,
"default": "",
"title": "MP3 Link",
"inputType": "Asset:audio",
"validators": [],
"help": "Link to an MP3 audio"
},
"source": {
"type": "string",
"required": false,
"default": "",
"title": "Source URL",
"inputType": "Text",
"validators": [],
"help": "Enter an external link, such as a YouTube URL"
},
"type": {
"type": "string",
"required": false,
"enum": ["", "video/youtube", "video/vimeo"],
"default": "",
"title": "Type",
"inputType": {"type": "Select", "options":["", "video/youtube", "video/vimeo"]},
"validators": [],
"help": "Select the 'Source URL' type, for a YouTube link this would be 'video/youtube', and 'video/vimeo' for Vimeo."
},
"poster": {
"type": "string",
"required": false,
"default": "",
"title": "Poster Link",
"inputType": "Asset:image",
"validators": [],
"help": "Image displayed before the video is played (except on Vimeo)"
},
"cc": {
"type": "array",
"required": false,
"title": "Closed Captions",
"items": {
"type": "object",
"required": false,
"properties": {
"srclang": {
"type": "string",
"required": false,
"default": "",
"title": "Language Code",
"inputType": "Text",
"validators": ["required"]
},
"src": {
"type": "string",
"required": false,
"default": "",
"title": "Caption File",
"inputType": "Asset:other",
"validators": ["required"]
}
}
}
}
}
},
"_setCompletionOn": {
"type": "string",
"required": true,
"enum": ["inview", "play", "ended"],
"default": "play",
"title": "Completion trigger",
"inputType": {"type": "Select", "options":["inview", "play", "ended"]},
"validators": ["required"],
"help": "Defines what media event should trigger completion of this component."
},
"_useClosedCaptions": {
"type": "boolean",
"required": false,
"default": false,
"title": "Use Closed Captions",
"inputType": "Checkbox",
"validators": []
},
"_startLanguage": {
"type": "string",
"required": false,
"default": "en",
"title": "Initial Closed Captions language",
"inputType": "Text",
"validators": [],
"help": "Select which closed caption language to display by default. Only required when closed captions are enabled and there are multiple languages."
},
"_showVolumeControl": {
"type": "boolean",
"required": false,
"default": false,
"title": "Show Volume Control (Not supported on mobile devices)",
"inputType": "Checkbox",
"validators": [],
"help": "When enabled, the volume control will appear in the media player. On mobile devices the audio level is controlled the device's physical volume controls."
},
"_startVolume": {
"type": "string",
"required":true,
"enum": ["0%", "10%", "20%", "30%", "40%", "50%", "60%", "70%", "80%", "90%", "100%"],
"default": "80%",
"title": "Default volume (Not supported on mobile devices)",
"inputType": {"type": "Select", "options":["0%", "10%", "20%", "30%", "40%", "50%", "60%", "70%", "80%", "90%", "100%"]},
"validators": ["required"],
"help": "Defines the default volume. On mobile devices the audio level is under the user's physical control"
},
"_allowFullScreen": {
"type": "boolean",
"required": false,
"default": false,
"title": "Allow Full Screen",
"inputType": "Checkbox",
"validators": []
},
"_aspectRatio": {
"type": "string",
"required": true,
"default": "landscape",
"title": "Aspect ratio",
"enum": ["landscape", "portrait", "square"],
"inputType": {
"type": "Select",
"options": ["landscape", "portrait", "square"]
}
},
"_pauseWhenOffScreen": {
"type": "boolean",
"required": false,
"default": false,
"title": "Pause playback when video is no longer in view.",
"inputType": "Checkbox",
"validators": []
},
"_playsinline": {
"type": "boolean",
"required": false,
"default": false,
"title": "Play videos inline on iOS",
"inputType": "Checkbox",
"validators": [],
"help": "If enabled, videos will play 'inline' on iPhones (the same way they do on iPads). Note that this feature is only available in iOS10 and above."
},
"_preventForwardScrubbing": {
"type": "boolean",
"required": false,
"default": false,
"title": "Attempt to prevent media scrubbing?",
"inputType": "Checkbox",
"validators": [],
"help": "If enabled, will attempt to prevent users from skipping ahead in audio/video."
},
"_offsetMediaControls": {
"type": "boolean",
"required": false,
"default": false,
"title": "Offset media controls",
"inputType": "Checkbox",
"validators": [],
"help": "If enabled, the media control bar will be respositioned below the media container to remove the standard overlap style."
},
"_transcript": {
"type": "object",
"required": false,
"title": "Transcript Options",
"properties": {
"_setCompletionOnView": {
"type": "boolean",
"required": false,
"default": true,
"title": "Trigger completion?",
"inputType": "Checkbox",
"validators": [],
"help": "Whether to have this component mark as completed when the transcript is shown."
},
"_inlineTranscript": {
"type": "boolean",
"required": false,
"default": false,
"title": "Show Inline",
"inputType": "Checkbox",
"validators": []
},
"_externalTranscript": {
"type": "boolean",
"required": false,
"default": false,
"title": "Show Link",
"inputType": "Checkbox",
"validators": []
},
"inlineTranscriptButton": {
"type": "string",
"required": false,
"default": "",
"title": "Inline Open Button",
"inputType": "Text",
"validators": [],
"translatable": true
},
"inlineTranscriptCloseButton": {
"type": "string",
"required": false,
"default": "",
"title": "Inline Close Button",
"inputType": "Text",
"validators": [],
"translatable": true
},
"inlineTranscriptBody": {
"type": "string",
"required": false,
"default": "",
"title": "Inline Transcript",
"inputType": "TextArea",
"validators": [],
"help": "Optional text appears below the video",
"translatable": true
},
"transcriptLinkButton": {
"type": "string",
"required": false,
"default": "",
"title": "Link Open Button",
"inputType": "Text",
"validators": [],
"translatable": true
},
"transcriptLink": {
"type": "string",
"required": false,
"default": "",
"title": "Transcript Link",
"inputType": "Asset:other",
"validators": [],
"help": "Select a file for the transcript link"
}
}
},
"_playerOptions": {
"type": "object",
"default": {},
"title": "Player Options",
"inputType": {
"type": "CodeEditor",
"mode": "json"
},
"validators": [],
"help": "Optional object that can be used to customize the player"
}
}
}