forked from h5p/h5p-video
-
Notifications
You must be signed in to change notification settings - Fork 0
/
semantics.json
236 lines (236 loc) · 6.28 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
[
{
"name": "sources",
"type": "video",
"label": "Video sources",
"importance": "high",
"description": "To ensure that the video works in all browsers you should add both WebM and MP4 formatted sources."
},
{
"name": "visuals",
"type": "group",
"label": "Visuals",
"importance": "medium",
"fields": [
{
"name": "poster",
"type": "image",
"label": "Poster image",
"importance": "low"
},
{
"name": "fit",
"type": "boolean",
"label": "Fit video player to use all available space",
"importance": "low",
"default": true,
"description": "If not set the video player will have the same aspect ratio as the video."
},
{
"name": "controls",
"type": "boolean",
"label": "Show video player controls",
"importance": "low",
"default": true,
"description": "Add controls to the video player. This allows users to play, pause, etc."
}
]
},
{
"name": "playback",
"type": "group",
"label": "Playback",
"importance": "medium",
"fields": [
{
"name": "autoplay",
"type": "boolean",
"label": "Auto-play video",
"importance": "low",
"default": false,
"description": "Start playing the video automatically. May not work on mobile devices."
},
{
"name": "loop",
"type": "boolean",
"label": "Loop video",
"importance": "low",
"default": false,
"description": "Automatically start the video over again when it ends."
}
]
},
{
"name": "l10n",
"type": "group",
"label": "Video localization",
"importance": "low",
"common": true,
"fields": [
{
"name": "name",
"type": "text",
"label": "Name",
"importance": "low",
"default": "Video",
"description": "Helps identify content of this type."
},
{
"name": "loading",
"type": "text",
"label": "Loading",
"importance": "low",
"default": "Video player loading..."
},
{
"name": "noPlayers",
"type": "text",
"label": "No players found",
"importance": "low",
"default": "Found no video players that supports the given video format."
},
{
"name": "noSources",
"type": "text",
"label": "No sources",
"importance": "low",
"default": "Video is missing sources."
},
{
"name": "aborted",
"type": "text",
"label": "Aborted",
"importance": "low",
"default": "Media playback has been aborted."
},
{
"name": "networkFailure",
"type": "text",
"label": "Network failure",
"importance": "low",
"default": "Network failure."
},
{
"name": "cannotDecode",
"type": "text",
"label": "Cannot decode video source",
"importance": "low",
"default": "Unable to decode media."
},
{
"name": "formatNotSupported",
"type": "text",
"label": "Format not supported",
"importance": "low",
"default": "Video format not supported."
},
{
"name": "mediaEncrypted",
"type": "text",
"label": "Media encrypted",
"importance": "low",
"default": "Media encrypted."
},
{
"name": "unknownError",
"type": "text",
"label": "Unknown error",
"importance": "low",
"default": "Unknown error."
},
{
"name": "invalidYtId",
"type": "text",
"label": "Invalid YouTube ID",
"importance": "low",
"default": "Invalid YouTube ID."
},
{
"name": "unknownYtId",
"type": "text",
"label": "Unkown YouTube ID",
"importance": "low",
"default": "Unable to find video with the given YouTube ID."
},
{
"name": "restrictedYt",
"type": "text",
"label": "Restricted YouTube video",
"importance": "low",
"default": "The owner of this video does not allow it to be embedded."
}
]
},
{
"name": "a11y",
"type": "group",
"label": "Accessibility",
"importance": "medium",
"fields": [
{
"name": "videoTrack",
"type": "list",
"label": "Add video track",
"importance": "low",
"optional": true,
"entity": "Track",
"min": 0,
"field": {
"name": "track",
"type": "group",
"label": "Track",
"importance": "low",
"expanded": false,
"fields": [
{
"name": "label",
"type": "text",
"label": "Track label",
"importance": "low",
"optional": true
},
{
"name": "kind",
"type": "select",
"label": "Type kind, refer to <a target='_blank' href=https://html.spec.whatwg.org/multipage/embedded-content.html#the-track-element>HTML living standard</a>",
"importance": "low",
"default": "descriptions",
"options": [
{
"value": "subtitles",
"label": "Subtitles"
},
{
"value": "captions",
"label": "Captions"
},
{
"value": "descriptions",
"label": "Descriptions"
},
{
"value": "chapters",
"label": "Chapters"
}
]
},
{
"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 the kind attribute is set to subtitles, then srclang must be defined."
},
{
"name": "track",
"type": "file",
"label": "Track file (WebVTT)",
"importance": "low"
}
]
}
}
]
}
]