1
+ {
2
+ "$schema" : " http://json-schema.org/draft-04/schema#" ,
3
+ "title" : " HLS Chapter Data" ,
4
+ "description" : " HLS chapter data format" ,
5
+ "type" : " array" ,
6
+ "items" : {
7
+ "description" : " chapter entry" ,
8
+ "type" : " object" ,
9
+ "properties" : {
10
+ "chapter" : {
11
+ "description" : " Chapter number (optional)" ,
12
+ "type" : " number" ,
13
+ "minimum" : 1
14
+ },
15
+ "start-time" : {
16
+ "description" : " Chapter start time" ,
17
+ "type" : " number" ,
18
+ "minimum" : 0
19
+ },
20
+ "duration" : {
21
+ "description" : " Chapter duration (optional)" ,
22
+ "type" : " number" ,
23
+ "minimum" : 0 ,
24
+ "exclusiveMinimum" : true
25
+ },
26
+ "titles" : {
27
+ "description" : " List of titles by language for chapter (optional)" ,
28
+ "type" : " array" ,
29
+ "items" : {
30
+ "description" : " Title object" ,
31
+ "type" : " object" ,
32
+ "properties" : {
33
+ "language" : {
34
+ "description" : " BCP 47 language code; und for undefined" ,
35
+ "type" : " string"
36
+ },
37
+ "title" : {
38
+ "description" : " Chapter title string" ,
39
+ "type" : " string"
40
+ }
41
+ },
42
+ "required" : [" language" , " title" ]
43
+ }
44
+ },
45
+ "images" : {
46
+ "description" : " List of images for chapter (optional)" ,
47
+ "type" : " array" ,
48
+ "items" : {
49
+ "description" : " Image object" ,
50
+ "type" : " object" ,
51
+ "properties" : {
52
+ "image-category" : {
53
+ "description" : " Image category" ,
54
+ "type" : " string"
55
+ },
56
+ "pixel-width" : {
57
+ "description" : " Pixel width" ,
58
+ "type" : " integer" ,
59
+ "minimum" : 0 ,
60
+ "exclusiveMinimum" : true
61
+ },
62
+ "pixel-height" : {
63
+ "description" : " Pixel height" ,
64
+ "type" : " integer" ,
65
+ "minimum" : 0 ,
66
+ "exclusiveMinimum" : true
67
+ },
68
+ "url" : {
69
+ "description" : " URL to image (relative or absolute)" ,
70
+ "type" : " string"
71
+ }
72
+ },
73
+ "required" : [" image-category" , " pixel-width" , " pixel-height" , " url" ]
74
+ }
75
+ },
76
+ "metadata" : {
77
+ "description" : " List of metadata entries for chapter (optional)" ,
78
+ "type" : " array" ,
79
+ "items" : {
80
+ "description" : " Metadata object" ,
81
+ "type" : " object" ,
82
+ "properties" : {
83
+ "key" : {
84
+ "description" : " Key value name" ,
85
+ "type" : " string"
86
+ },
87
+ "value" : {
88
+ "description" : " Metadata value" ,
89
+ "type" : [" string" , " number" , " boolean" , " array" , " object" ]
90
+ },
91
+ "language" : {
92
+ "description" : " BCP 47 language code (optional)" ,
93
+ "type" : " string"
94
+ }
95
+ },
96
+ "required" : [" key" , " value" ]
97
+ }
98
+ }
99
+ },
100
+ "required" : [" start-time" ]
101
+ }
102
+ }
0 commit comments