-
Notifications
You must be signed in to change notification settings - Fork 207
/
semantics.json
1140 lines (1140 loc) · 37 KB
/
semantics.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
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
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
[
{
"name": "interactiveVideo",
"type": "group",
"widget": "wizard",
"label": "Interactive Video Editor",
"importance": "high",
"fields": [
{
"name": "video",
"type": "group",
"label": "Upload/embed video",
"importance": "high",
"fields": [
{
"name": "files",
"type": "video",
"label": "Add a video",
"importance": "high",
"description": "Click below to add a video you wish to use in your interactive video. You can add a video link or upload video files. It is possible to add several versions of the video with different qualities. To ensure maximum support in browsers at least add a version in webm and mp4 formats.",
"extraAttributes": [
"metadata"
],
"enableCustomQualityLabel": true
},
{
"name": "startScreenOptions",
"type": "group",
"label": "Start screen options (unsupported for YouTube videos)",
"importance": "low",
"fields": [
{
"name": "title",
"type": "text",
"label": "The title of this interactive video",
"importance": "low",
"maxLength": 60,
"default": "Interactive Video",
"description": "Used in summaries, statistics etc."
},
{
"name": "hideStartTitle",
"type": "boolean",
"label": "Hide title on video start screen",
"importance": "low",
"optional": true,
"default": false
},
{
"name": "shortStartDescription",
"type": "text",
"label": "Short description (Optional)",
"importance": "low",
"optional": true,
"maxLength": 120,
"description": "Optional. Display a short description text on the video start screen. Does not work for YouTube videos."
},
{
"name": "poster",
"type": "image",
"label": "Poster image",
"importance": "low",
"optional": true,
"description": "Image displayed before the user launches the video. Does not work for YouTube Videos."
}
]
},
{
"name": "textTracks",
"type": "group",
"label": "Text tracks (unsupported for YouTube videos)",
"importance": "low",
"fields": [
{
"name": "videoTrack",
"type": "list",
"label": "Available text tracks",
"importance": "low",
"optional": true,
"entity": "Track",
"min": 0,
"defaultNum": 1,
"field": {
"name": "track",
"type": "group",
"label": "Track",
"importance": "low",
"expanded": false,
"fields": [
{
"name": "label",
"type": "text",
"label": "Track label",
"description": "Used if you offer multiple tracks and the user has to choose a track. For instance 'Spanish subtitles' could be the label of a Spanish subtitle track.",
"importance": "low",
"default": "Subtitles",
"optional": true
},
{
"name": "kind",
"type": "select",
"label": "Type of text track",
"importance": "low",
"default": "subtitles",
"options": [
{
"value": "subtitles",
"label": "Subtitles"
},
{
"value": "captions",
"label": "Captions"
},
{
"value": "descriptions",
"label": "Descriptions"
}
]
},
{
"name": "srcLang",
"type": "text",
"label": "Source language, must be defined for subtitles",
"importance": "low",
"default": "en",
"description": "Must be a valid BCP 47 language tag. If 'Subtitles' is the type of text track selected, the source language of the track must be defined."
},
{
"name": "track",
"type": "file",
"label": "Track source (WebVTT file)",
"importance": "low"
}
]
}
},
{
"name": "defaultTrackLabel",
"type": "text",
"label": "Default text track",
"description": "If left empty or not matching any of the text tracks the first text track will be used as the default.",
"importance": "low",
"optional": true
}
]
}
]
},
{
"name": "assets",
"type": "group",
"label": "Add interactions",
"importance": "high",
"widget": "interactiveVideo",
"video": "video/files",
"poster": "video/startScreenOptions/poster",
"fields": [
{
"name": "interactions",
"type": "list",
"field": {
"name": "interaction",
"type": "group",
"fields": [
{
"name": "duration",
"type": "group",
"widget": "duration",
"label": "Display time",
"importance": "low",
"fields": [
{
"name": "from",
"type": "number"
},
{
"name": "to",
"type": "number"
}
]
},
{
"name": "pause",
"label": "Pause video",
"importance": "low",
"type": "boolean"
},
{
"name": "displayType",
"label": "Display as",
"importance": "low",
"description": "<b>Button</b> is a collapsed interaction the user must press to open. <b>Poster</b> is an expanded interaction displayed directly on top of the video",
"type": "select",
"widget": "imageRadioButtonGroup",
"options": [
{
"value": "button",
"label": "Button"
},
{
"value": "poster",
"label": "Poster"
}
],
"default": "button"
},
{
"name": "buttonOnMobile",
"label": "Turn into button on small screens",
"importance": "low",
"type": "boolean",
"default": false
},
{
"name": "label",
"type": "text",
"widget": "html",
"label": "Label",
"importance": "low",
"description": "Label displayed next to interaction icon.",
"optional": true,
"enterMode": "p",
"tags": [
"p"
]
},
{
"name": "x",
"type": "number",
"importance": "low",
"widget": "none"
},
{
"name": "y",
"type": "number",
"importance": "low",
"widget": "none"
},
{
"name": "width",
"type": "number",
"widget": "none",
"importance": "low",
"optional": true
},
{
"name": "height",
"type": "number",
"widget": "none",
"importance": "low",
"optional": true
},
{
"name": "libraryTitle",
"type": "text",
"importance": "low",
"optional": true,
"widget": "none"
},
{
"name": "action",
"type": "library",
"importance": "low",
"options": [
"H5P.Nil 1.0",
"H5P.Text 1.1",
"H5P.Table 1.2",
"H5P.Link 1.3",
"H5P.Image 1.1",
"H5P.Summary 1.10",
"H5P.SingleChoiceSet 1.11",
"H5P.MultiChoice 1.16",
"H5P.TrueFalse 1.8",
"H5P.Blanks 1.14",
"H5P.DragQuestion 1.14",
"H5P.MarkTheWords 1.11",
"H5P.DragText 1.10",
"H5P.GoToQuestion 1.3",
"H5P.IVHotspot 1.2",
"H5P.Questionnaire 1.3",
"H5P.FreeTextQuestion 1.0",
"H5P.MultiMediaChoice 0.3"
]
},
{
"name": "adaptivity",
"type": "group",
"label": "Adaptivity",
"importance": "low",
"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",
"code"
],
"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",
"code"
],
"label": "Message"
},
{
"name": "seekLabel",
"type": "text",
"label": "Label for seek button"
}
]
},
{
"name": "requireCompletion",
"type": "boolean",
"label": "Require full score for task before proceeding",
"description": "For best functionality this option should be used in conjunction with the \"Disable navigation forward in a video\" option of Interactive Video."
}
]
},
{
"name": "visuals",
"label": "Visuals",
"importance": "low",
"type": "group",
"fields": [
{
"name": "backgroundColor",
"type": "text",
"label": "Background color",
"widget": "colorSelector",
"default": "rgb(255, 255, 255)",
"spectrum": {
"showInput": true,
"showAlpha": true,
"preferredFormat": "rgb",
"showPalette": true,
"palette": [
[
"rgba(0, 0, 0, 0)"
],
[
"rgb(67, 67, 67)",
"rgb(102, 102, 102)",
"rgb(204, 204, 204)",
"rgb(217, 217, 217)",
"rgb(255, 255, 255)"
],
[
"rgb(152, 0, 0)",
"rgb(255, 0, 0)",
"rgb(255, 153, 0)",
"rgb(255, 255, 0)",
"rgb(0, 255, 0)",
"rgb(0, 255, 255)",
"rgb(74, 134, 232)",
"rgb(0, 0, 255)",
"rgb(153, 0, 255)",
"rgb(255, 0, 255)"
],
[
"rgb(230, 184, 175)",
"rgb(244, 204, 204)",
"rgb(252, 229, 205)",
"rgb(255, 242, 204)",
"rgb(217, 234, 211)",
"rgb(208, 224, 227)",
"rgb(201, 218, 248)",
"rgb(207, 226, 243)",
"rgb(217, 210, 233)",
"rgb(234, 209, 220)",
"rgb(221, 126, 107)",
"rgb(234, 153, 153)",
"rgb(249, 203, 156)",
"rgb(255, 229, 153)",
"rgb(182, 215, 168)",
"rgb(162, 196, 201)",
"rgb(164, 194, 244)",
"rgb(159, 197, 232)",
"rgb(180, 167, 214)",
"rgb(213, 166, 189)",
"rgb(204, 65, 37)",
"rgb(224, 102, 102)",
"rgb(246, 178, 107)",
"rgb(255, 217, 102)",
"rgb(147, 196, 125)",
"rgb(118, 165, 175)",
"rgb(109, 158, 235)",
"rgb(111, 168, 220)",
"rgb(142, 124, 195)",
"rgb(194, 123, 160)",
"rgb(166, 28, 0)",
"rgb(204, 0, 0)",
"rgb(230, 145, 56)",
"rgb(241, 194, 50)",
"rgb(106, 168, 79)",
"rgb(69, 129, 142)",
"rgb(60, 120, 216)",
"rgb(61, 133, 198)",
"rgb(103, 78, 167)",
"rgb(166, 77, 121)",
"rgb(91, 15, 0)",
"rgb(102, 0, 0)",
"rgb(120, 63, 4)",
"rgb(127, 96, 0)",
"rgb(39, 78, 19)",
"rgb(12, 52, 61)",
"rgb(28, 69, 135)",
"rgb(7, 55, 99)",
"rgb(32, 18, 77)",
"rgb(76, 17, 48)"
]
]
}
},
{
"name": "boxShadow",
"type": "boolean",
"label": "Box shadow",
"default": true,
"description": "Adds a subtle shadow around the interaction. You might want to disable this for completely transparent interactions"
}
]
},
{
"name": "goto",
"label": "Go to on click",
"importance": "low",
"type": "group",
"fields": [
{
"name": "type",
"label": "Type",
"type": "select",
"widget": "selectToggleFields",
"options": [
{
"value": "timecode",
"label": "Timecode",
"hideFields": [
"url"
]
},
{
"value": "url",
"label": "Another page (URL)",
"hideFields": [
"time"
]
}
],
"optional": true
},
{
"name": "time",
"type": "number",
"widget": "timecode",
"label": "Go To",
"description": "The target time the user will be taken to upon pressing the hotspot. Enter timecode in the format M:SS.",
"optional": true
},
{
"name": "url",
"type": "group",
"label": "URL",
"widget": "linkWidget",
"optional": true,
"fields": [
{
"name": "protocol",
"type": "select",
"label": "Protocol",
"options": [
{
"value": "http://",
"label": "http://"
},
{
"value": "https://",
"label": "https://"
},
{
"value": "/",
"label": "(root relative)"
},
{
"value": "other",
"label": "other"
}
],
"optional": true,
"default": "http://"
},
{
"name": "url",
"type": "text",
"label": "URL",
"optional": true
}
]
},
{
"name": "visualize",
"type": "boolean",
"label": "Visualize",
"description": "Show that interaction can be clicked by adding a border and an icon"
}
]
}
]
}
},
{
"name": "bookmarks",
"importance": "low",
"type": "list",
"field": {
"name": "bookmark",
"type": "group",
"fields": [
{
"name": "time",
"type": "number"
},
{
"name": "label",
"type": "text"
}
]
}
},
{
"name": "endscreens",
"importance": "low",
"type": "list",
"field": {
"name": "endscreen",
"type": "group",
"fields": [
{
"name": "time",
"type": "number"
},
{
"name": "label",
"type": "text"
}
]
}
}
]
},
{
"name": "summary",
"type": "group",
"label": "Summary task",
"importance": "high",
"fields": [
{
"name": "task",
"type": "library",
"options": [
"H5P.Summary 1.10"
],
"default": {
"library": "H5P.Summary 1.10",
"params": {}
}
},
{
"name": "displayAt",
"type": "number",
"label": "Display at",
"description": "Number of seconds before the video ends.",
"default": 3
}
]
}
]
},
{
"name": "override",
"type": "group",
"label": "Behavioural settings",
"importance": "low",
"optional": true,
"fields": [
{
"name": "startVideoAt",
"type": "number",
"widget": "timecode",
"label": "Start video at",
"importance": "low",
"optional": true,
"description": "Enter timecode in the format M:SS"
},
{
"name": "autoplay",
"type": "boolean",
"label": "Auto-play video",
"default": false,
"optional": true,
"description": "Start playing the video automatically"
},
{
"name": "loop",
"type": "boolean",
"label": "Loop the video",
"default": false,
"optional": true,
"description": "Check if video should run in a loop"
},
{
"name": "showSolutionButton",
"type": "select",
"label": "Override \"Show Solution\" button",
"importance": "low",
"description": "This option determines if the \"Show Solution\" button will be shown for all questions, disabled for all or configured for each question individually.",
"optional": true,
"options": [
{
"value": "on",
"label": "Enabled"
},
{
"value": "off",
"label": "Disabled"
}
]
},
{
"name": "retryButton",
"type": "select",
"label": "Override \"Retry\" button",
"importance": "low",
"description": "This option determines if the \"Retry\" button will be shown for all questions, disabled for all or configured for each question individually.",
"options": [
{
"value": "on",
"label": "Enabled"
},
{
"value": "off",
"label": "Disabled"
}
]
},
{
"name": "showBookmarksmenuOnLoad",
"type": "boolean",
"label": "Start with bookmarks menu open",
"importance": "low",
"default": false,
"description": "This function is not available on iPad when using YouTube as video source."
},
{
"name": "showRewind10",
"type": "boolean",
"label": "Show button for rewinding 10 seconds",
"importance": "low",
"default": false
},
{
"name": "preventSkippingMode",
"type": "select",
"label": "Disable navigation",
"importance": "low",
"description": "These options will disable user video navigation as specified.",
"optional": true,
"options": [
{
"label": "None",
"value": "none"
},
{
"label": "Forward",
"value": "forward"
},
{
"label": "Forward and backward",
"value": "both"
}
],
"default": "none"
},
{
"name": "deactivateSound",
"type": "boolean",
"default": false,
"label": "Deactivate sound",
"importance": "low",
"description": "Enabling this option will deactivate the video's sound and prevent it from being switched on."
}
]
},
{
"name": "l10n",
"type": "group",
"label": "Localize",
"importance": "low",
"common": true,
"optional": true,
"fields": [
{
"name": "interaction",
"type": "text",
"label": "Interaction title",
"importance": "low",
"default": "Interaction",
"optional": true
},
{
"name": "play",
"type": "text",
"label": "Play title",
"importance": "low",
"default": "Play",
"optional": true
},
{
"name": "pause",
"type": "text",
"label": "Pause title",
"importance": "low",
"default": "Pause",
"optional": true
},
{
"name": "mute",
"type": "text",
"label": "Mute title",
"importance": "low",
"default": "Mute, currently unmuted",
"optional": true
},
{
"name": "unmute",
"type": "text",
"label": "Unmute title",
"importance": "low",
"default": "Unmute, currently muted",
"optional": true
},
{
"name": "quality",
"type": "text",
"label": "Video quality title",
"importance": "low",
"default": "Video Quality",
"optional": true
},
{
"name": "captions",
"type": "text",
"label": "Video captions title",
"importance": "low",
"default": "Captions",
"optional": true
},
{
"name": "close",
"type": "text",
"label": "Close button text",
"importance": "low",
"default": "Close",
"optional": true
},
{
"name": "fullscreen",
"type": "text",
"label": "Fullscreen title",
"importance": "low",
"default": "Fullscreen",
"optional": true
},
{
"name": "exitFullscreen",
"type": "text",
"label": "Exit fullscreen title",
"importance": "low",
"default": "Exit Fullscreen",
"optional": true
},
{
"name": "summary",
"type": "text",
"label": "Summary title",
"importance": "low",
"default": "Open summary dialog",
"optional": true
},
{
"name": "bookmarks",
"type": "text",
"label": "Bookmarks title",
"importance": "low",
"default": "Bookmarks",
"optional": true
},
{
"name": "endscreen",
"type": "text",
"label": "Submit screen title",
"importance": "low",
"default": "Submit screen",
"optional": true
},
{
"name": "defaultAdaptivitySeekLabel",
"type": "text",
"label": "Default label for adaptivity seek button",
"importance": "low",
"default": "Continue",
"optional": true
},
{
"name": "continueWithVideo",
"type": "text",
"label": "Default label for continue video button",
"importance": "low",
"default": "Continue with video",
"optional": true
},
{
"name": "more",
"type": "text",
"label": "Default label for more player options",
"importance": "low",
"default": "More player options",
"optional": true
},
{
"name": "playbackRate",
"type": "text",
"label": "Set playback rate",
"importance": "low",
"default": "Playback Rate",
"optional": true
},
{
"name": "rewind10",
"type": "text",
"label": "Rewind 10 Seconds",
"importance": "low",
"default": "Rewind 10 Seconds",
"optional": true
},
{
"name": "navDisabled",
"type": "text",
"label": "Navigation is disabled text",
"importance": "low",
"default": "Navigation is disabled",
"optional": true
},
{
"name": "navForwardDisabled",
"type": "text",
"label": "Navigating forward is disabled text",
"importance": "low",
"default": "Navigating forward is disabled",
"optional": true
},
{
"name": "sndDisabled",
"type": "text",
"label": "Sound is disabled text",
"importance": "low",
"default": "Sound is disabled",
"optional": true
},
{
"name": "requiresCompletionWarning",
"type": "text",
"label": "Warning that the user must answer the question correctly before continuing",
"importance": "low",
"default": "You need to answer all the questions correctly before continuing.",
"optional": true
},
{
"name": "back",
"type": "text",
"label": "Back button",
"importance": "low",
"default": "Back",
"optional": true
},
{
"name": "hours",
"type": "text",
"label": "Passed time hours",
"importance": "low",
"default": "Hours",
"optional": true
},
{
"name": "minutes",
"type": "text",
"label": "Passed time minutes",
"importance": "low",
"default": "Minutes",
"optional": true
},
{
"name": "seconds",
"type": "text",
"label": "Passed time seconds",
"importance": "low",
"default": "Seconds",
"optional": true
},
{
"name": "currentTime",
"type": "text",
"label": "Label for current time",
"importance": "low",
"default": "Current time:",
"optional": true
},
{
"name": "totalTime",
"type": "text",
"label": "Label for total time",
"importance": "low",
"default": "Total time:",
"optional": true
},
{
"name": "singleInteractionAnnouncement",
"type": "text",
"label": "Text explaining that a single interaction with a name has come into view",
"importance": "low",
"default": "Interaction appeared:",
"optional": true
},
{
"name": "multipleInteractionsAnnouncement",
"type": "text",
"label": "Text for explaining that multiple interactions have come into view",
"importance": "low",
"default": "Multiple interactions appeared.",
"optional": true
},
{
"name": "videoPausedAnnouncement",