-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.xml
237 lines (237 loc) · 14 KB
/
config.xml
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
<?xml version="1.0" encoding="utf-8"?>
<control xmlns="http://www.askia.com/2.0.0/ADCSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.askia.com/2.0.0/ADCSchema https://raw.githubusercontent.com/AskiaADX/ADXSchema/2.0.0/ADCSchema.xsd"
version="2.0.0"
askiaCompat="5.3.3">
<info>
<name>Camera</name>
<guid>d7c94a7c-10f9-4d31-8e51-82dc9c96c089</guid>
<version>1.1.0</version>
<date>2022-09-29</date>
<description><![CDATA[Video or image capture via the webcam,
v1.0.1 - change the `stopRecordingVideo` func code to get the promise instead of a blob
v1.0.2 - image capture issue when uploading - fixed
v1.0.3 -
v1.0.4 - photo button caption disappears when mobile - fixed
v1.1.0 - WebRTC,RecordRTC library update
- Fixed - DOF runtime errors]]></description>
<company>Askia</company>
<author><![CDATA[Quentin Legrand <quentin@askia.com>]]></author>
<site>http://www.askia.com</site>
<helpURL></helpURL>
<categories>
<category>General</category>
</categories>
<style width="400" height="300" />
<constraints>
<constraint on="questions" single="false" multiple="false" numeric="false" date="false" open="true" chapter="false" requireParentLoop="false" />
<constraint on="controls" responseblock="false" checkbox="false" label="false" listbox="false" radiobutton="false" textbox="true" />
<constraint on="responses" max="*" min="*" />
</constraints>
</info>
<outputs defaultOutput="default">
<output id="default">
<description><![CDATA[Default output]]></description>
<content fileName="open.html" type="html" mode="dynamic" position="none" />
<content fileName="default.css" type="css" mode="static" position="head" />
<content fileName="default.html" type="html" mode="dynamic" position="placeholder" />
<content fileName="overlay.css" type="css" mode="static" position="head" />
<content fileName="default.css" type="css" mode="dynamic" position="head" />
<content fileName="adc_camera.js" type="javascript" mode="static" position="head" />
<content fileName="RecordRTC.js" type="javascript" mode="static" position="head" />
<content fileName="adapter-latest.js" type="javascript" mode="static" position="head" />
</output>
<output id="fallback_not_supported">
<description><![CDATA[Fallback for IE]]></description>
<condition><![CDATA[Browser.Name.ToUpperCase() = "INTERNET EXPLORER"]]></condition>
<content fileName="adc_camera.js" type="javascript" mode="static" position="head" />
<content fileName="default.css" type="css" mode="static" position="head" />
<content fileName="overlay.css" type="css" mode="static" position="head" />
<content fileName="fallback_default.html" type="html" mode="dynamic" position="placeholder" />
<content fileName="fallback_open.html" type="html" mode="dynamic" position="none" />
<content fileName="default.css" type="css" mode="dynamic" position="head" />
</output>
<output id="fallback_mobiles">
<description><![CDATA[Fallback for mobiles and tablets]]></description>
<condition><![CDATA[(Browser.Mobile = 1) Or (Browser.UserAgent.ToUpperCase().Split("IPAD").Count > 1) Or (Browser.UserAgent.ToUpperCase().Split("ANDROID").Count > 1)]]></condition>
<content fileName="adc_camera_mobiles.js" type="javascript" mode="static" position="head" />
<content fileName="default.css" type="css" mode="static" position="head" />
<content fileName="overlay.css" type="css" mode="static" position="head" />
<content fileName="default.css" type="css" mode="dynamic" position="head" />
<content fileName="fallback_mobiles_open.html" type="html" mode="dynamic" position="none" />
<content fileName="fallback_mobiles_default.html" type="html" mode="dynamic" position="placeholder" />
</output>
</outputs>
<properties>
<category id="AskiaUploadService" name="Askia Upload Service">
<property xsi:type="standardProperty" id="AusUrl" name="Url" type="string" mode="static" require="true" visible="true">
<description><![CDATA[AskiaUploaderService.svc url]]></description>
<value></value>
</property>
<property xsi:type="standardProperty" id="AusApiKey" name="API Key" type="string" mode="static" require="true" visible="true">
<description><![CDATA[Api key for AskiaUploadService]]></description>
<value></value>
</property>
<property xsi:type="standardProperty" id="AusSecretKey" name="Secret Key" type="string" mode="static" require="true" visible="true">
<description><![CDATA[Secret key for AskiaUploadService]]></description>
<value></value>
</property>
<property xsi:type="standardProperty" id="UploadButtonText" name="Upload Button Text" type="string" mode="static" require="true" visible="true">
<description><![CDATA[Upload Button Text]]></description>
<value><![CDATA[Upload]]></value>
</property>
<property xsi:type="standardProperty" id="AusProjectName" name="Project Name" type="string" require="false" visible="true">
<description><![CDATA[]]></description>
<value><![CDATA[AskiaProject]]></value>
</property>
<property xsi:type="standardProperty" id="AusMaxFileSize" name="Maximum file size (KB)" type="number" require="true" visible="true" min="1" max="102400">
<description><![CDATA[]]></description>
<value><![CDATA[2048]]></value>
</property>
<property xsi:type="standardProperty" id="typeOfCapture" name="Type of capture" type="string" mode="static" require="true" visible="true">
<description><![CDATA[Photo / Video]]></description>
<value></value>
<options>
<option value="image" text="Image" />
<option value="video" text="Video" />
</options>
</property>
<property xsi:type="standardProperty" id="allowSaveFile" name="Allow save file" type="boolean" require="false" visible="true">
<description><![CDATA[Allowing the user to save the file ]]></description>
<value><![CDATA[false]]></value>
</property>
<property xsi:type="standardProperty" id="disableBtnUpload" name="Disable upload button" type="boolean" require="false" visible="true">
<description><![CDATA[Disable upload button after first uploaded file.]]></description>
<value></value>
</property>
<property xsi:type="standardProperty" id="allowUploadFileChange" name="Allow upload on file change" type="boolean" require="false" visible="true">
<description><![CDATA[]]></description>
<value></value>
</property>
<property xsi:type="standardProperty" id="btnSaveFileText" name="Save button text" type="string" require="false" visible="true">
<description><![CDATA[]]></description>
<value><![CDATA[Save]]></value>
</property>
<property xsi:type="standardProperty" id="nextAfterUpload" name="Next after upload" type="boolean" require="false" visible="true">
<description><![CDATA[Enabled Next button after upload]]></description>
<value><![CDATA[false]]></value>
</property>
<property xsi:type="standardProperty" id="autoSubmitUpload" name="Auto submit after upload" type="boolean" require="false" visible="true">
<description><![CDATA[]]></description>
<value><![CDATA[false]]></value>
</property>
</category>
<category id="error_messages" name="Error Messages">
<property xsi:type="standardProperty" id="file_size_exceed_error" name="File Size Exceed Error" type="string" mode="static" require="false" visible="true">
<description><![CDATA[]]></description>
<value><![CDATA[File Size Exceeded]]></value>
</property>
<property xsi:type="standardProperty" id="invalid_api_secret_error" name="Invalid Api or Secret key Error" type="string" mode="static" require="false" visible="true">
<description><![CDATA[]]></description>
<value><![CDATA[Invalid api key or secret key.]]></value>
</property>
<property xsi:type="standardProperty" id="error_occured_at_upload_error" name="Error occured at file upload. Please contact support" type="string" mode="static" require="false" visible="true">
<description><![CDATA[]]></description>
<value><![CDATA[Error occured at file upload]]></value>
</property>
<property xsi:type="standardProperty" id="error_select_file_error" name="Please select a file" type="string" mode="static" require="false" visible="true">
<description><![CDATA[]]></description>
<value><![CDATA[Please select a file]]></value>
</property>
<property xsi:type="standardProperty" id="error_while_generating_token" name="Error while generating token" type="string" mode="static" require="false" visible="true">
<description><![CDATA[]]></description>
<value><![CDATA[Error while generating token]]></value>
</property>
<property xsi:type="standardProperty" id="stop_recording_error" name="Stop redording error" type="string" require="false" visible="true">
<description><![CDATA[]]></description>
<value><![CDATA[Stop recording error]]></value>
</property>
<property xsi:type="standardProperty" id="start_recording_error" name="Start recording error" type="string" require="false" visible="true">
<description><![CDATA[]]></description>
<value><![CDATA[Cannot start video recording.]]></value>
</property>
<property xsi:type="standardProperty" id="user_media_access_error" name="User media access" type="string" require="false" visible="true">
<description><![CDATA[]]></description>
<value><![CDATA[Cannot access media devices.]]></value>
</property>
<property xsi:type="standardProperty" id="save_error" name="Save error" type="string" require="false" visible="true">
<description><![CDATA[]]></description>
<value><![CDATA[Cannot save file.]]></value>
</property>
</category>
<category id="SuccessMessage" name="Success message">
<property xsi:type="standardProperty" id="success_message_color" name="Success message color" type="color" mode="static" require="false" visible="true">
<description><![CDATA[]]></description>
<value><![CDATA[0,170,0]]></value>
</property>
<property xsi:type="standardProperty" id="success_message_upload" name="Success message on upload" type="string" mode="static" require="false" visible="true">
<description><![CDATA[]]></description>
<value><![CDATA[Upload successful]]></value>
</property>
<property xsi:type="standardProperty" id="success_message_save" name="Success message on save" type="string" require="false" visible="true">
<description><![CDATA[]]></description>
<value><![CDATA[File saved successfully]]></value>
</property>
</category>
<category id="Style" name="Style">
<property xsi:type="standardProperty" id="controlWidth" name="Width" type="string" require="false" visible="true">
<description><![CDATA[]]></description>
<value><![CDATA[90%]]></value>
</property>
<property xsi:type="standardProperty" id="controlAlign" name="Alignement" type="string" mode="dynamic" require="false" visible="true">
<description><![CDATA[]]></description>
<value></value>
<options>
<option value="center" text="Center" />
<option value="left" text="Left" />
<option value="right" text="Right" />
</options>
</property>
</category>
<category id="Video" name="Video">
<property xsi:type="standardProperty" id="showControls" name="Show controls" type="boolean" require="false" visible="true">
<description><![CDATA[]]></description>
<value></value>
</property>
<property xsi:type="standardProperty" id="videoWidth" name="Video width" type="string" require="false" visible="true">
<description><![CDATA[]]></description>
<value><![CDATA[60%]]></value>
</property>
<property xsi:type="standardProperty" id="autoplay" name="Autoplay" type="boolean" require="false" visible="true">
<description><![CDATA[Video plays automatically]]></description>
<value><![CDATA[true]]></value>
</property>
<property xsi:type="standardProperty" id="loop" name="Loop" type="boolean" require="false" visible="true">
<description><![CDATA[Video plays in loop]]></description>
<value><![CDATA[true]]></value>
</property>
<property xsi:type="standardProperty" id="startBtnText" name="Start button text" type="string" require="false" visible="true">
<description><![CDATA[]]></description>
<value><![CDATA[Start]]></value>
</property>
<property xsi:type="standardProperty" id="stopBtnText" name="Stop button text" type="string" require="false" visible="true">
<description><![CDATA[]]></description>
<value><![CDATA[Stop]]></value>
</property>
<property xsi:type="standardProperty" id="video_uploader_mobile_text" name="Video uploader mobiles text" type="string" require="false" visible="true">
<description><![CDATA[Text for the video uploader on the fallback for mobiles and tablets]]></description>
<value><![CDATA[Take a video]]></value>
</property>
<property xsi:type="standardProperty" id="facingMode" name="Facing mode" type="string" require="false" visible="true">
<description><![CDATA[Which camera to use on mobiles]]></description>
<value></value>
<options>
<option value="user" text="Front" />
<option value="environment" text="Back" />
</options>
</property>
</category>
<category id="Image" name="Image">
<property xsi:type="standardProperty" id="captureBtnText" name="Capture button text" type="string" require="false" visible="true">
<description><![CDATA[]]></description>
<value><![CDATA[Take a photo]]></value>
</property>
</category>
</properties>
</control>