@arcware-cloud/pixelstreaming-websdk 0.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.npmiognore +1 -0
- package/LICENSE.md +24 -0
- package/README.md +237 -0
- package/index.cjs.js +73302 -0
- package/index.esm.js +73284 -0
- package/index.umd.js +73311 -0
- package/package.json +28 -0
- package/types/index.d.ts +3 -0
- package/types/lib/ApplyUrlHack.d.ts +2 -0
- package/types/lib/ArcwareApplication.d.ts +48 -0
- package/types/lib/ArcwareConfig.d.ts +35 -0
- package/types/lib/ArcwareInit.d.ts +15 -0
- package/types/lib/ArcwarePixelStreaming.d.ts +97 -0
- package/types/lib/MessageTypes.d.ts +4 -0
- package/types/lib/domain/ArcwareSettingsSchema.d.ts +201 -0
- package/types/lib/domain/ConnectionIdentifier.d.ts +27 -0
- package/types/lib/domain/EventHandler.d.ts +11 -0
- package/types/lib/domain/Session.d.ts +29 -0
- package/types/lib/domain/Stats.d.ts +36 -0
- package/types/lib/index.d.ts +6 -0
- package/types/lib/styles/ArcwarePixelStreamingApplicationStyles.d.ts +478 -0
- package/types/lib/ui/ArcwareLogoLoader/index.d.ts +5 -0
- package/types/lib/ui/AudioButton/AudioIcon.d.ts +7 -0
- package/types/lib/ui/AudioButton/index.d.ts +15 -0
- package/types/lib/ui/LoveLetters/index.d.ts +6 -0
- package/types/lib/ui/MicButton/index.d.ts +14 -0
- package/types/lib/ui/MicIcon/index.d.ts +7 -0
- package/types/lib/ui/MicrophoneOverlay/index.d.ts +11 -0
- package/types/lib/ui/PlayIcon/index.d.ts +5 -0
- package/types/lib/ui/StopButton/index.d.ts +16 -0
- package/types/lib/ui/StopIcon/index.d.ts +5 -0
- package/types/shared/index.d.ts +1 -0
- package/types/shared/lib/Messages/ErrorMessage.d.ts +18 -0
- package/types/shared/lib/Messages/LoveLetter.d.ts +18 -0
- package/types/shared/lib/Messages/Ping.d.ts +15 -0
- package/types/shared/lib/Messages/Queue.d.ts +58 -0
- package/types/shared/lib/Messages/SessionId.d.ts +12 -0
- package/types/shared/lib/Messages/Stats.d.ts +182 -0
- package/types/shared/lib/Messages/StreamInfo.d.ts +345 -0
- package/types/shared/lib/Messages/Version.d.ts +12 -0
- package/types/shared/lib/Messages/WebSdkSettings.d.ts +96 -0
- package/types/shared/lib/Messages/index.d.ts +192 -0
- package/types/shared/lib/index.d.ts +1 -0
|
@@ -0,0 +1,478 @@
|
|
|
1
|
+
export declare const ArcwareStyles: {
|
|
2
|
+
customStyles: {
|
|
3
|
+
":root": {
|
|
4
|
+
"--color0": string;
|
|
5
|
+
"--color1": string;
|
|
6
|
+
"--color2": string;
|
|
7
|
+
"--color3": string;
|
|
8
|
+
"--color4": string;
|
|
9
|
+
"--color5": string;
|
|
10
|
+
"--color6": string;
|
|
11
|
+
"--color7": string;
|
|
12
|
+
"--color8": string;
|
|
13
|
+
"--color9": string;
|
|
14
|
+
"--color10": string;
|
|
15
|
+
"--color11": string;
|
|
16
|
+
"--color12": string;
|
|
17
|
+
"--color13": string;
|
|
18
|
+
"--colorBoxShadow": string;
|
|
19
|
+
};
|
|
20
|
+
"*": {
|
|
21
|
+
fontFamily: string;
|
|
22
|
+
};
|
|
23
|
+
"#shared-stream-container": {
|
|
24
|
+
boxSizing: string;
|
|
25
|
+
};
|
|
26
|
+
"#shared-stream-container::-webkit-scrollbar": {
|
|
27
|
+
width: string;
|
|
28
|
+
};
|
|
29
|
+
"#shared-stream-container::-webkit-scrollbar-track": {
|
|
30
|
+
background: string;
|
|
31
|
+
opacity: string;
|
|
32
|
+
borderRadius: string;
|
|
33
|
+
borderTop: string;
|
|
34
|
+
borderRight: string;
|
|
35
|
+
borderBottom: string;
|
|
36
|
+
borderLeft: string;
|
|
37
|
+
};
|
|
38
|
+
"#shared-stream-container::-webkit-scrollbar-track-piece": {
|
|
39
|
+
background: string;
|
|
40
|
+
};
|
|
41
|
+
"#shared-stream-container::-webkit-scrollbar-thumb": {
|
|
42
|
+
background: string;
|
|
43
|
+
width: string;
|
|
44
|
+
borderRight: string;
|
|
45
|
+
borderLeft: string;
|
|
46
|
+
transition: string;
|
|
47
|
+
borderRadius: string;
|
|
48
|
+
};
|
|
49
|
+
"#shared-stream-container::-webkit-scrollbar-thumb:hover": {
|
|
50
|
+
transition: string;
|
|
51
|
+
background: string;
|
|
52
|
+
};
|
|
53
|
+
"#playerUI, #videoElementParent": {
|
|
54
|
+
position: string;
|
|
55
|
+
width: string;
|
|
56
|
+
height: string;
|
|
57
|
+
maxWidth: string;
|
|
58
|
+
maxHeight: string;
|
|
59
|
+
top: number;
|
|
60
|
+
right: number;
|
|
61
|
+
bottom: number;
|
|
62
|
+
left: number;
|
|
63
|
+
margin: string;
|
|
64
|
+
boxSizing: string;
|
|
65
|
+
pointerEvents: string;
|
|
66
|
+
};
|
|
67
|
+
"#streamingVideo": {
|
|
68
|
+
maxWidth: string;
|
|
69
|
+
maxHeight: string;
|
|
70
|
+
boxSizing: string;
|
|
71
|
+
background: string;
|
|
72
|
+
};
|
|
73
|
+
"#uiFeatures #controls": {
|
|
74
|
+
top: string;
|
|
75
|
+
left: string;
|
|
76
|
+
bottom: string;
|
|
77
|
+
right: string;
|
|
78
|
+
display: string;
|
|
79
|
+
flexDirection: string;
|
|
80
|
+
};
|
|
81
|
+
"#uiFeatures #connection": {
|
|
82
|
+
bottom: string;
|
|
83
|
+
left: string;
|
|
84
|
+
width: string;
|
|
85
|
+
heihgt: string;
|
|
86
|
+
};
|
|
87
|
+
"#uiFeatures button": {
|
|
88
|
+
backgroundColor: string;
|
|
89
|
+
border: string;
|
|
90
|
+
position: string;
|
|
91
|
+
width: string;
|
|
92
|
+
height: string;
|
|
93
|
+
padding: string;
|
|
94
|
+
textAlign: string;
|
|
95
|
+
cursor: string;
|
|
96
|
+
display: string;
|
|
97
|
+
flexDirection: string;
|
|
98
|
+
justifyContent: string;
|
|
99
|
+
alignItems: string;
|
|
100
|
+
boxShadow: string;
|
|
101
|
+
borderRadius: string;
|
|
102
|
+
outline: string;
|
|
103
|
+
};
|
|
104
|
+
"#uiFeatures button:hover, #uiFeatures button:active": {
|
|
105
|
+
padding: string;
|
|
106
|
+
border: string;
|
|
107
|
+
};
|
|
108
|
+
"#uiFeatures button #audioIconMuted, #uiFeatures button #audioIconUnmuted, #uiFeatures button #micIconMuted, #uiFeatures button #micIconUnmuted": {
|
|
109
|
+
width: string;
|
|
110
|
+
height: string;
|
|
111
|
+
};
|
|
112
|
+
"#uiFeatures button #maximizeIcon, #uiFeatures button #minimizeIcon": {
|
|
113
|
+
width: string;
|
|
114
|
+
height: string;
|
|
115
|
+
};
|
|
116
|
+
"#stopIcon, #playIcon": {
|
|
117
|
+
width: string;
|
|
118
|
+
height: string;
|
|
119
|
+
};
|
|
120
|
+
"#uiFeatures button .tooltiptext": {
|
|
121
|
+
right: string;
|
|
122
|
+
left: string;
|
|
123
|
+
boxShadow: string;
|
|
124
|
+
borderRadius: string;
|
|
125
|
+
backgroundColor: string;
|
|
126
|
+
width: string;
|
|
127
|
+
visibility: string;
|
|
128
|
+
};
|
|
129
|
+
"@media (hover: hover) and (pointer: fine)": {
|
|
130
|
+
"#uiFeatures button:hover .tooltiptext": {
|
|
131
|
+
visibility: string;
|
|
132
|
+
};
|
|
133
|
+
};
|
|
134
|
+
"#controls>*": {
|
|
135
|
+
marginBottom: string;
|
|
136
|
+
display: string;
|
|
137
|
+
lineHeight: string;
|
|
138
|
+
padding: string;
|
|
139
|
+
backgroundColor: string;
|
|
140
|
+
};
|
|
141
|
+
"#uiFeatures #settingsIcon, #uiFeatures #statsIcon": {
|
|
142
|
+
width: string;
|
|
143
|
+
height: string;
|
|
144
|
+
};
|
|
145
|
+
".svgIcon": {
|
|
146
|
+
fill: string;
|
|
147
|
+
};
|
|
148
|
+
"#uiFeatures button:hover .svgIcon, #uiFeatures button:active .svgIcon": {
|
|
149
|
+
fill: string;
|
|
150
|
+
};
|
|
151
|
+
".tgl-switch .tgl-slider, .tgl-flat:checked+.tgl-slider": {
|
|
152
|
+
border: string;
|
|
153
|
+
};
|
|
154
|
+
".tgl-switch .tgl-slider": {
|
|
155
|
+
background: string;
|
|
156
|
+
};
|
|
157
|
+
".tgl-switch .tgl-slider::before": {
|
|
158
|
+
content: string;
|
|
159
|
+
display: string;
|
|
160
|
+
background: string;
|
|
161
|
+
position: string;
|
|
162
|
+
height: string;
|
|
163
|
+
width: string;
|
|
164
|
+
borderRadius: string;
|
|
165
|
+
margin: string;
|
|
166
|
+
top: string;
|
|
167
|
+
bottom: string;
|
|
168
|
+
left: string;
|
|
169
|
+
right: string;
|
|
170
|
+
};
|
|
171
|
+
".tgl-switch .tgl-slider::after": {
|
|
172
|
+
height: string;
|
|
173
|
+
width: string;
|
|
174
|
+
borderRadius: string;
|
|
175
|
+
top: string;
|
|
176
|
+
left: string;
|
|
177
|
+
};
|
|
178
|
+
".tgl-flat:checked+.tgl-slider:after": {
|
|
179
|
+
left: string;
|
|
180
|
+
background: string;
|
|
181
|
+
};
|
|
182
|
+
".form-control": {
|
|
183
|
+
backgroundColor: string;
|
|
184
|
+
border: string;
|
|
185
|
+
borderRadius: string;
|
|
186
|
+
color: string;
|
|
187
|
+
textAlign: string;
|
|
188
|
+
fontFamily: string;
|
|
189
|
+
padding: string;
|
|
190
|
+
};
|
|
191
|
+
".btn-flat": {
|
|
192
|
+
background: string;
|
|
193
|
+
color: string;
|
|
194
|
+
border: string;
|
|
195
|
+
padding: string;
|
|
196
|
+
cursor: string;
|
|
197
|
+
borderRadius: string;
|
|
198
|
+
textTransform: string;
|
|
199
|
+
minWidth: string;
|
|
200
|
+
};
|
|
201
|
+
".btn-flat:disabled": {
|
|
202
|
+
background: string;
|
|
203
|
+
borderColor: string;
|
|
204
|
+
color: string;
|
|
205
|
+
cursor: string;
|
|
206
|
+
};
|
|
207
|
+
".btn-flat:focus": {
|
|
208
|
+
outline: string;
|
|
209
|
+
};
|
|
210
|
+
".arcware-logo-loader": {
|
|
211
|
+
position: string;
|
|
212
|
+
display: string;
|
|
213
|
+
width: string;
|
|
214
|
+
height: string;
|
|
215
|
+
};
|
|
216
|
+
"#playOverlay img#playButton": {
|
|
217
|
+
width: string;
|
|
218
|
+
};
|
|
219
|
+
"#disconnectOverlay, #errorOverlay": {
|
|
220
|
+
textTransform: string;
|
|
221
|
+
textAlign: string;
|
|
222
|
+
fontSize: string;
|
|
223
|
+
lineHeight: number;
|
|
224
|
+
};
|
|
225
|
+
"#disconnectOverlay .clickableState": {
|
|
226
|
+
textTransform: string;
|
|
227
|
+
textAlign: string;
|
|
228
|
+
color: string;
|
|
229
|
+
padding: string;
|
|
230
|
+
fontSize: string;
|
|
231
|
+
border: string;
|
|
232
|
+
margin: string;
|
|
233
|
+
width: string;
|
|
234
|
+
};
|
|
235
|
+
"#afkOverlay": {
|
|
236
|
+
background: string;
|
|
237
|
+
transition: string;
|
|
238
|
+
opacity: number;
|
|
239
|
+
pointerEvents: string;
|
|
240
|
+
};
|
|
241
|
+
"#afkOverlayInner": {
|
|
242
|
+
textTransform: string;
|
|
243
|
+
background: string;
|
|
244
|
+
padding: string;
|
|
245
|
+
fontSize: string;
|
|
246
|
+
width: string;
|
|
247
|
+
textAlign: string;
|
|
248
|
+
lineHeight: number;
|
|
249
|
+
};
|
|
250
|
+
"#afkOverlayInner center::first-line": {
|
|
251
|
+
textTransform: string;
|
|
252
|
+
color: string;
|
|
253
|
+
fontWeight: string;
|
|
254
|
+
fontSize: string;
|
|
255
|
+
};
|
|
256
|
+
"#afkOverlayInner #afkCountDownNumber": {
|
|
257
|
+
color: string;
|
|
258
|
+
fontSize: string;
|
|
259
|
+
lineHeight: string;
|
|
260
|
+
};
|
|
261
|
+
"#afkOverlayInner center .retry-button": {
|
|
262
|
+
textTransform: string;
|
|
263
|
+
textAlign: string;
|
|
264
|
+
color: string;
|
|
265
|
+
padding: string;
|
|
266
|
+
fontSize: string;
|
|
267
|
+
border: string;
|
|
268
|
+
margin: string;
|
|
269
|
+
width: string;
|
|
270
|
+
};
|
|
271
|
+
"#connectOverlay #connectButton": {
|
|
272
|
+
textTransform: string;
|
|
273
|
+
textAlign: string;
|
|
274
|
+
color: string;
|
|
275
|
+
padding: string;
|
|
276
|
+
fontSize: string;
|
|
277
|
+
border: string;
|
|
278
|
+
margin: string;
|
|
279
|
+
width: string;
|
|
280
|
+
};
|
|
281
|
+
"#connectOverlay .connection-text": {
|
|
282
|
+
textTransform: string;
|
|
283
|
+
textAlign: string;
|
|
284
|
+
margin: string;
|
|
285
|
+
};
|
|
286
|
+
"#connectOverlay .connection-text .title": {
|
|
287
|
+
color: string;
|
|
288
|
+
fontSize: string;
|
|
289
|
+
margin: string;
|
|
290
|
+
};
|
|
291
|
+
"#connectOverlay .connection-text .subtitle": {
|
|
292
|
+
color: string;
|
|
293
|
+
opacity: number;
|
|
294
|
+
fontSize: string;
|
|
295
|
+
margin: string;
|
|
296
|
+
};
|
|
297
|
+
"#infoOverlay.hiddenState": {
|
|
298
|
+
display: string;
|
|
299
|
+
};
|
|
300
|
+
"#disconnectOverlay, #playOverlay, #errorOverlay, #microphoneOverlay, #connectOverlay": {
|
|
301
|
+
background: string;
|
|
302
|
+
display: string;
|
|
303
|
+
transition: string;
|
|
304
|
+
opacity: number;
|
|
305
|
+
pointerEvents: string;
|
|
306
|
+
};
|
|
307
|
+
"#microphoneOverlay": {
|
|
308
|
+
textTransform: string;
|
|
309
|
+
padding: string;
|
|
310
|
+
fontSize: string;
|
|
311
|
+
height: string;
|
|
312
|
+
width: string;
|
|
313
|
+
textAlign: string;
|
|
314
|
+
lineHeight: number;
|
|
315
|
+
position: string;
|
|
316
|
+
margin: string;
|
|
317
|
+
top: string;
|
|
318
|
+
bottom: string;
|
|
319
|
+
left: string;
|
|
320
|
+
right: string;
|
|
321
|
+
justifyContent: string;
|
|
322
|
+
alignItems: string;
|
|
323
|
+
flexDirection: string;
|
|
324
|
+
zIndex: number;
|
|
325
|
+
};
|
|
326
|
+
"#microphoneOverlay .title": {
|
|
327
|
+
fontSize: string;
|
|
328
|
+
position: string;
|
|
329
|
+
marginBottom: string;
|
|
330
|
+
color: string;
|
|
331
|
+
};
|
|
332
|
+
"#microphoneOverlay .title:after": {
|
|
333
|
+
content: string;
|
|
334
|
+
display: string;
|
|
335
|
+
animation: string;
|
|
336
|
+
position: string;
|
|
337
|
+
};
|
|
338
|
+
"#microphoneOverlay p": {
|
|
339
|
+
margin: number;
|
|
340
|
+
color: string;
|
|
341
|
+
};
|
|
342
|
+
"#microphoneOverlay svg": {
|
|
343
|
+
height: string;
|
|
344
|
+
marginBottom: string;
|
|
345
|
+
marginTop: string;
|
|
346
|
+
};
|
|
347
|
+
"#microphoneOverlay .svgIcon": {
|
|
348
|
+
fill: string;
|
|
349
|
+
};
|
|
350
|
+
"#disconnectOverlay.hiddenState, #playOverlay.hiddenState, #errorOverlay.hiddenState, #afkOverlay.hiddenState, #microphoneOverlay.hiddenState": {
|
|
351
|
+
opacity: number;
|
|
352
|
+
pointerEvents: string;
|
|
353
|
+
};
|
|
354
|
+
"#disconnectOverlay.mic-overlay-is-visible, #errorOverlay.mic-overlay-is-visible, #infoOverlay.mic-overlay-is-visible": {
|
|
355
|
+
opacity: number;
|
|
356
|
+
pointerEvents: string;
|
|
357
|
+
};
|
|
358
|
+
"#infoOverlay.hiddenState, #connectOverlay.hiddenState": {
|
|
359
|
+
display: string;
|
|
360
|
+
};
|
|
361
|
+
"#connectOverlay": {
|
|
362
|
+
display: string;
|
|
363
|
+
flexDirection: string;
|
|
364
|
+
alignItems: string;
|
|
365
|
+
justifyContent: string;
|
|
366
|
+
};
|
|
367
|
+
"#infoOverlay": {
|
|
368
|
+
display: string;
|
|
369
|
+
};
|
|
370
|
+
".love-letters-box-root": {
|
|
371
|
+
display: string;
|
|
372
|
+
position: string;
|
|
373
|
+
width: string;
|
|
374
|
+
height: string;
|
|
375
|
+
color: string;
|
|
376
|
+
justifyContent: string;
|
|
377
|
+
alignItems: string;
|
|
378
|
+
flexDirection: string;
|
|
379
|
+
background: string;
|
|
380
|
+
zIndex: number;
|
|
381
|
+
};
|
|
382
|
+
".love-letters-box-root.fade-out": {
|
|
383
|
+
opacity: number;
|
|
384
|
+
transition: string;
|
|
385
|
+
};
|
|
386
|
+
"#letters-block": {
|
|
387
|
+
position: string;
|
|
388
|
+
top: number;
|
|
389
|
+
left: number;
|
|
390
|
+
right: number;
|
|
391
|
+
bottom: number;
|
|
392
|
+
margin: string;
|
|
393
|
+
color: string;
|
|
394
|
+
zIndex: number;
|
|
395
|
+
display: string;
|
|
396
|
+
flexDirection: string;
|
|
397
|
+
justifyContent: string;
|
|
398
|
+
alignItems: string;
|
|
399
|
+
fontSize: string;
|
|
400
|
+
textTransform: string;
|
|
401
|
+
textAlign: string;
|
|
402
|
+
};
|
|
403
|
+
"#letters-wrapper": {
|
|
404
|
+
height: string;
|
|
405
|
+
overflow: string;
|
|
406
|
+
position: string;
|
|
407
|
+
display: string;
|
|
408
|
+
flexDirection: string;
|
|
409
|
+
alignItems: string;
|
|
410
|
+
justifyContent: string;
|
|
411
|
+
marginTop: string;
|
|
412
|
+
paddingBottom: string;
|
|
413
|
+
};
|
|
414
|
+
"#letters-wrapper p": {
|
|
415
|
+
textAlign: string;
|
|
416
|
+
lineHeight: number;
|
|
417
|
+
fontSize: string;
|
|
418
|
+
};
|
|
419
|
+
".letter-animation:nth-last-of-type(1)::after": {
|
|
420
|
+
display: string;
|
|
421
|
+
animation: string;
|
|
422
|
+
content: string;
|
|
423
|
+
position: string;
|
|
424
|
+
};
|
|
425
|
+
".letter-animation": {
|
|
426
|
+
transition: string;
|
|
427
|
+
transformOrigin: string;
|
|
428
|
+
margin: string;
|
|
429
|
+
};
|
|
430
|
+
".letter-animation-enter": {
|
|
431
|
+
animation: string;
|
|
432
|
+
};
|
|
433
|
+
".letter-animation-exit": {
|
|
434
|
+
opacity: number;
|
|
435
|
+
scale: number;
|
|
436
|
+
transition: string;
|
|
437
|
+
margin: number;
|
|
438
|
+
};
|
|
439
|
+
"@keyframes dotty": {
|
|
440
|
+
"0%": {
|
|
441
|
+
content: string;
|
|
442
|
+
};
|
|
443
|
+
"25%": {
|
|
444
|
+
content: string;
|
|
445
|
+
};
|
|
446
|
+
"50%": {
|
|
447
|
+
content: string;
|
|
448
|
+
};
|
|
449
|
+
"75%": {
|
|
450
|
+
content: string;
|
|
451
|
+
};
|
|
452
|
+
"100%": {
|
|
453
|
+
content: string;
|
|
454
|
+
};
|
|
455
|
+
};
|
|
456
|
+
"@keyframes fadeInUp": {
|
|
457
|
+
from: {
|
|
458
|
+
opacity: number;
|
|
459
|
+
transform: string;
|
|
460
|
+
scale: number;
|
|
461
|
+
};
|
|
462
|
+
to: {
|
|
463
|
+
opacity: number;
|
|
464
|
+
transform: string;
|
|
465
|
+
scale: number;
|
|
466
|
+
};
|
|
467
|
+
};
|
|
468
|
+
".hidden": {
|
|
469
|
+
display: string;
|
|
470
|
+
opacity: number;
|
|
471
|
+
};
|
|
472
|
+
".visible": {
|
|
473
|
+
display: string;
|
|
474
|
+
opacity: number;
|
|
475
|
+
transition: string;
|
|
476
|
+
};
|
|
477
|
+
};
|
|
478
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ArcwarePixelStreaming } from "../../ArcwarePixelStreaming";
|
|
2
|
+
export declare class AudioButton {
|
|
3
|
+
private button;
|
|
4
|
+
private stream;
|
|
5
|
+
private audioIcon;
|
|
6
|
+
private tooltipText;
|
|
7
|
+
constructor(stream: ArcwarePixelStreaming);
|
|
8
|
+
private setAudioMutedByDefault;
|
|
9
|
+
private createButton;
|
|
10
|
+
private createTooltipText;
|
|
11
|
+
private toggleAudio;
|
|
12
|
+
private updateAudioIcon;
|
|
13
|
+
get element(): HTMLButtonElement;
|
|
14
|
+
private onVolumeChange;
|
|
15
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ArcwarePixelStreaming } from "../../ArcwarePixelStreaming";
|
|
2
|
+
export declare class MicButton {
|
|
3
|
+
private button;
|
|
4
|
+
private stream;
|
|
5
|
+
private micIcon;
|
|
6
|
+
private tooltipText;
|
|
7
|
+
constructor(stream: ArcwarePixelStreaming);
|
|
8
|
+
private setMicMutedByDefault;
|
|
9
|
+
private createButton;
|
|
10
|
+
private createTooltipText;
|
|
11
|
+
private toggleMic;
|
|
12
|
+
private updateMicIcon;
|
|
13
|
+
get element(): HTMLButtonElement;
|
|
14
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ArcwarePixelStreaming } from "../../ArcwarePixelStreaming";
|
|
2
|
+
export declare class MicrophoneOverlay {
|
|
3
|
+
private overlay;
|
|
4
|
+
private parentElement;
|
|
5
|
+
private micIcon;
|
|
6
|
+
private stream;
|
|
7
|
+
constructor(stream: ArcwarePixelStreaming);
|
|
8
|
+
createOverlay(): void;
|
|
9
|
+
toggleMessage(enabled: boolean): void;
|
|
10
|
+
toggleVisibility(visible: boolean): void;
|
|
11
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ArcwarePixelStreaming } from "../../ArcwarePixelStreaming";
|
|
2
|
+
export declare class StopButton {
|
|
3
|
+
private button;
|
|
4
|
+
private stream;
|
|
5
|
+
private stopIcon;
|
|
6
|
+
private playIcon;
|
|
7
|
+
private tooltipText;
|
|
8
|
+
private isStreaming;
|
|
9
|
+
constructor(stream: ArcwarePixelStreaming);
|
|
10
|
+
private createButton;
|
|
11
|
+
private createTooltipText;
|
|
12
|
+
private toggleStreaming;
|
|
13
|
+
private updateButtonIcon;
|
|
14
|
+
get element(): HTMLButtonElement;
|
|
15
|
+
private updateButtonState;
|
|
16
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./lib";
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const ZErrorMessage: z.ZodObject<{
|
|
3
|
+
type: z.ZodLiteral<"error">;
|
|
4
|
+
code: z.ZodNumber;
|
|
5
|
+
reason: z.ZodString;
|
|
6
|
+
verbosity: z.ZodNumber;
|
|
7
|
+
}, "strip", z.ZodTypeAny, {
|
|
8
|
+
type?: "error";
|
|
9
|
+
code?: number;
|
|
10
|
+
reason?: string;
|
|
11
|
+
verbosity?: number;
|
|
12
|
+
}, {
|
|
13
|
+
type?: "error";
|
|
14
|
+
code?: number;
|
|
15
|
+
reason?: string;
|
|
16
|
+
verbosity?: number;
|
|
17
|
+
}>;
|
|
18
|
+
export type ErrorMessage = z.infer<typeof ZErrorMessage>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const ZLoveLetter: z.ZodObject<{
|
|
3
|
+
type: z.ZodLiteral<"letter">;
|
|
4
|
+
reason: z.ZodString;
|
|
5
|
+
code: z.ZodNumber;
|
|
6
|
+
verbosity: z.ZodNumber;
|
|
7
|
+
}, "strip", z.ZodTypeAny, {
|
|
8
|
+
type?: "letter";
|
|
9
|
+
reason?: string;
|
|
10
|
+
code?: number;
|
|
11
|
+
verbosity?: number;
|
|
12
|
+
}, {
|
|
13
|
+
type?: "letter";
|
|
14
|
+
reason?: string;
|
|
15
|
+
code?: number;
|
|
16
|
+
verbosity?: number;
|
|
17
|
+
}>;
|
|
18
|
+
export type LoveLetter = z.infer<typeof ZLoveLetter>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const ZPing: z.ZodObject<{
|
|
3
|
+
type: z.ZodLiteral<"ping">;
|
|
4
|
+
message: z.ZodOptional<z.ZodString>;
|
|
5
|
+
time: z.ZodNumber;
|
|
6
|
+
}, "strip", z.ZodTypeAny, {
|
|
7
|
+
type?: "ping";
|
|
8
|
+
message?: string;
|
|
9
|
+
time?: number;
|
|
10
|
+
}, {
|
|
11
|
+
type?: "ping";
|
|
12
|
+
message?: string;
|
|
13
|
+
time?: number;
|
|
14
|
+
}>;
|
|
15
|
+
export type Ping = z.infer<typeof ZPing>;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const ZQueue: z.ZodObject<{
|
|
3
|
+
type: z.ZodLiteral<"queue">;
|
|
4
|
+
queue: z.ZodObject<{
|
|
5
|
+
/** Ticket._id - will not be exposed to frontend. */
|
|
6
|
+
/** Position in queue (zero based). */
|
|
7
|
+
index: z.ZodOptional<z.ZodNumber>;
|
|
8
|
+
/** Length of the queue. */
|
|
9
|
+
queueLength: z.ZodOptional<z.ZodNumber>;
|
|
10
|
+
/** Already waited for. */
|
|
11
|
+
waited: z.ZodOptional<z.ZodNumber>;
|
|
12
|
+
/** Based on Average Watch Time,
|
|
13
|
+
* we calculate an average interval of expected connection closings and based on the amount of concurrent sessions,
|
|
14
|
+
* we can calculate the estimated time until another slot will be freed up. */
|
|
15
|
+
estimatedWaitTime: z.ZodOptional<z.ZodNumber>;
|
|
16
|
+
/** The average time all current sessions.
|
|
17
|
+
* (How long did it actually take those that waited for them that received a connection to the currently running instances.)
|
|
18
|
+
*/
|
|
19
|
+
averageWaitTime: z.ZodOptional<z.ZodNumber>;
|
|
20
|
+
/** Type of all time-values in the que. */
|
|
21
|
+
valueType: z.ZodEnum<["milliseconds", "seconds", "minutes", "hours", "days"]>;
|
|
22
|
+
}, "strip", z.ZodTypeAny, {
|
|
23
|
+
index?: number;
|
|
24
|
+
queueLength?: number;
|
|
25
|
+
waited?: number;
|
|
26
|
+
estimatedWaitTime?: number;
|
|
27
|
+
averageWaitTime?: number;
|
|
28
|
+
valueType?: "milliseconds" | "seconds" | "minutes" | "hours" | "days";
|
|
29
|
+
}, {
|
|
30
|
+
index?: number;
|
|
31
|
+
queueLength?: number;
|
|
32
|
+
waited?: number;
|
|
33
|
+
estimatedWaitTime?: number;
|
|
34
|
+
averageWaitTime?: number;
|
|
35
|
+
valueType?: "milliseconds" | "seconds" | "minutes" | "hours" | "days";
|
|
36
|
+
}>;
|
|
37
|
+
}, "strip", z.ZodTypeAny, {
|
|
38
|
+
type?: "queue";
|
|
39
|
+
queue?: {
|
|
40
|
+
index?: number;
|
|
41
|
+
queueLength?: number;
|
|
42
|
+
waited?: number;
|
|
43
|
+
estimatedWaitTime?: number;
|
|
44
|
+
averageWaitTime?: number;
|
|
45
|
+
valueType?: "milliseconds" | "seconds" | "minutes" | "hours" | "days";
|
|
46
|
+
};
|
|
47
|
+
}, {
|
|
48
|
+
type?: "queue";
|
|
49
|
+
queue?: {
|
|
50
|
+
index?: number;
|
|
51
|
+
queueLength?: number;
|
|
52
|
+
waited?: number;
|
|
53
|
+
estimatedWaitTime?: number;
|
|
54
|
+
averageWaitTime?: number;
|
|
55
|
+
valueType?: "milliseconds" | "seconds" | "minutes" | "hours" | "days";
|
|
56
|
+
};
|
|
57
|
+
}>;
|
|
58
|
+
export type Queue = z.infer<typeof ZQueue>;
|