-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinstall.json
169 lines (161 loc) · 4.12 KB
/
install.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
{
"resources": {
"head": [
{
"type": "script",
"src": "./vendor/media.js"
},
{
"type": "script",
"src": "./vendor/intersection-observer.js"
}
],
"body": [
{
"type": "style",
"src": "./build/app.css"
},
{
"type": "script",
"src": "./build/app.js"
}
]
},
"preview": {
"handlers": [
{
"options": ["_default"],
"execute": "INSTALL_SCOPE.setOptions(INSTALL_OPTIONS)"
},
{
"options": ["player"],
"execute": "INSTALL_SCOPE.setPlayerPosition(INSTALL_OPTIONS)"
}
]
},
"options": {
"properties": {
"videoSource": {
"title": "Video Source",
"order": 0,
"type": "object",
"properties": {
"location": {
"title": "Source",
"description": "Where is your video located?",
"order": 0,
"type": "string",
"format": "radios",
"enum": [
"youtube",
"vimeo",
"upload"
],
"enumNames": {
"youtube": "YouTube",
"vimeo": "Vimeo",
"upload": "My device"
}
},
"youtubeURL": {
"showIf": {
"videoSource.location": "youtube"
},
"title": "YouTube URL",
"description": "What is the full URL to your video or playlist?",
"placeholder": "https://www.youtube.com/watch?v=...",
"type": "string",
"format": "url",
"order": 1
},
"vimeoURL": {
"showIf": {
"videoSource.location": "vimeo"
},
"title": "Vimeo URL",
"description": "What is the full URL to your video?",
"placeholder": "https://vimeo.com/...",
"type": "string",
"format": "url",
"order": 1
},
"upload": {
"showIf": {
"videoSource.location": "upload"
},
"title": "Upload Video",
"description": "What is the full URL to your video?",
"type": "object",
"format": "video",
"order": 1
}
}
},
"player": {
"title": "Player",
"order": 1,
"type": "object",
"properties": {
"location": {
"title": "Location",
"description": "Where should the player appear on the page?",
"order": 0,
"type": "object",
"format": "element",
"default": {
"selector": "body",
"method": "prepend"
}
},
"horizontalAlignment": {
"order": 1,
"title": "Horizontal alignment",
"type": "string",
"default": "center",
"format": "radios",
"enum": [
"left",
"center",
"right"
],
"enumNames": {
"left": "Left",
"center": "Center",
"right": "Right"
}
},
"cornerAlignment": {
"title": "Corner Alignment",
"description": "Which corner should the player move to when the page is scrolled?",
"order": 2,
"type": "string",
"default": "bottom-right",
"format": "radios",
"enum": [
"top-left",
"top-right",
"bottom-left",
"bottom-right"
],
"enumNames": {
"top-left": "Top left",
"top-right": "Top right",
"bottom-left": "Bottom left",
"bottom-right": "Bottom right"
}
},
"autoplay": {
"order": 3,
"title": "Autoplay",
"type": "boolean"
},
"hideControls": {
"order": 4,
"title": "Hide controls",
"type": "boolean"
}
}
}
}
}
}