@arcware-cloud/pixelstreaming-websdk 0.1.7 → 0.1.9

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@arcware-cloud/pixelstreaming-websdk",
3
3
  "description": "WebSDK for easy implementation of pixel streaming with Arcware CloudRT Services. Heavily based on the '@epicgames-ps' library.",
4
- "version": "0.1.7",
4
+ "version": "0.1.9",
5
5
  "type": "commonjs",
6
6
  "main": "./index.umd.js",
7
7
  "module": "./index.umd.js",
@@ -26,7 +26,7 @@
26
26
  "lodash": "4.17.21",
27
27
  "lottie-web": "5.10.2",
28
28
  "moment": "2.29.4",
29
- "zod": "3.21.4"
29
+ "zod": "3.22.4"
30
30
  },
31
31
  "cjs": "./index.cjs.js"
32
32
  }
@@ -27,7 +27,7 @@ export declare class ArcwareConfig extends Config {
27
27
  readonly session: Session;
28
28
  readonly settings: Settings;
29
29
  private _initialSettings;
30
- readonly VERSION = "0.1.7";
30
+ readonly VERSION = "0.1.9";
31
31
  constructor(config: ArcwareConfigParams);
32
32
  /** Setup connection string. */
33
33
  get urlFlags(): string;
@@ -93,4 +93,7 @@ export declare class ArcwarePixelStreaming extends PixelStreaming {
93
93
  private createMicrophoneOverlay;
94
94
  toggleMic(enable: boolean, isDefault: boolean): void;
95
95
  private wrapWebSocketOnCloseHandler;
96
+ onStreamingStateChange(callback: (isStreaming: boolean) => void): void;
97
+ private removeXRIconIfDisabled;
98
+ private injectCustomUI;
96
99
  }
@@ -20,6 +20,9 @@ export declare const ArcwareStyles: {
20
20
  "*": {
21
21
  fontFamily: string;
22
22
  };
23
+ "#shared-stream-container": {
24
+ boxSizing: string;
25
+ };
23
26
  "#shared-stream-container::-webkit-scrollbar": {
24
27
  width: string;
25
28
  };
@@ -51,11 +54,21 @@ export declare const ArcwareStyles: {
51
54
  position: string;
52
55
  width: string;
53
56
  height: string;
57
+ maxWidth: string;
58
+ maxHeight: string;
54
59
  top: number;
55
60
  right: number;
56
61
  bottom: number;
57
62
  left: number;
58
63
  margin: string;
64
+ boxSizing: string;
65
+ pointerEvents: string;
66
+ };
67
+ "#streamingVideo": {
68
+ maxWidth: string;
69
+ maxHeight: string;
70
+ boxSizing: string;
71
+ background: string;
59
72
  };
60
73
  "#uiFeatures #controls": {
61
74
  top: string;
@@ -100,6 +113,10 @@ export declare const ArcwareStyles: {
100
113
  width: string;
101
114
  height: string;
102
115
  };
116
+ "#stopIcon, #playIcon": {
117
+ width: string;
118
+ height: string;
119
+ };
103
120
  "#uiFeatures button .tooltiptext": {
104
121
  right: string;
105
122
  left: string;
@@ -115,6 +132,10 @@ export declare const ArcwareStyles: {
115
132
  padding: string;
116
133
  backgroundColor: string;
117
134
  };
135
+ "#uiFeatures #settingsIcon, #uiFeatures #statsIcon": {
136
+ width: string;
137
+ height: string;
138
+ };
118
139
  ".svgIcon": {
119
140
  fill: string;
120
141
  };
@@ -373,10 +394,20 @@ export declare const ArcwareStyles: {
373
394
  textTransform: string;
374
395
  textAlign: string;
375
396
  };
376
- "#letters-block p": {
397
+ "#letters-wrapper": {
398
+ height: string;
399
+ overflow: string;
400
+ position: string;
401
+ display: string;
402
+ flexDirection: string;
403
+ alignItems: string;
404
+ justifyContent: string;
405
+ marginTop: string;
406
+ paddingBottom: string;
407
+ };
408
+ "#letters-wrapper p": {
377
409
  textAlign: string;
378
410
  lineHeight: number;
379
- margin: string;
380
411
  fontSize: string;
381
412
  };
382
413
  ".letter-animation:nth-last-of-type(1)::after": {
@@ -388,6 +419,7 @@ export declare const ArcwareStyles: {
388
419
  ".letter-animation": {
389
420
  transition: string;
390
421
  transformOrigin: string;
422
+ margin: string;
391
423
  };
392
424
  ".letter-animation-enter": {
393
425
  animation: string;
@@ -396,6 +428,7 @@ export declare const ArcwareStyles: {
396
428
  opacity: number;
397
429
  scale: number;
398
430
  transition: string;
431
+ margin: number;
399
432
  };
400
433
  "@keyframes dotty": {
401
434
  "0%": {
@@ -0,0 +1,5 @@
1
+ export declare class PlayIcon {
2
+ playIcon: SVGElement;
3
+ constructor();
4
+ private createPlayIcon;
5
+ }
@@ -3,10 +3,14 @@ export declare class StopButton {
3
3
  private button;
4
4
  private stream;
5
5
  private stopIcon;
6
+ private playIcon;
6
7
  private tooltipText;
8
+ private isStreaming;
7
9
  constructor(stream: ArcwarePixelStreaming);
8
10
  private createButton;
9
11
  private createTooltipText;
10
- private stop;
12
+ private toggleStreaming;
13
+ private updateButtonIcon;
11
14
  get element(): HTMLButtonElement;
15
+ private updateButtonState;
12
16
  }
@@ -23,19 +23,25 @@ export declare const ZStreamInfo: z.ZodObject<{
23
23
  }>>;
24
24
  meta: z.ZodOptional<z.ZodObject<{
25
25
  friendlyName: z.ZodOptional<z.ZodString>;
26
+ isTrial: z.ZodOptional<z.ZodBoolean>;
27
+ mouseLock: z.ZodOptional<z.ZodBoolean>;
28
+ poweredBy: z.ZodOptional<z.ZodBoolean>;
26
29
  ueVersion: z.ZodOptional<z.ZodString>;
27
30
  version: z.ZodOptional<z.ZodString>;
28
- mouseLock: z.ZodOptional<z.ZodBoolean>;
29
31
  }, "strip", z.ZodTypeAny, {
30
32
  friendlyName?: string | undefined;
33
+ isTrial?: boolean | undefined;
34
+ mouseLock?: boolean | undefined;
35
+ poweredBy?: boolean | undefined;
31
36
  ueVersion?: string | undefined;
32
37
  version?: string | undefined;
33
- mouseLock?: boolean | undefined;
34
38
  }, {
35
39
  friendlyName?: string | undefined;
40
+ isTrial?: boolean | undefined;
41
+ mouseLock?: boolean | undefined;
42
+ poweredBy?: boolean | undefined;
36
43
  ueVersion?: string | undefined;
37
44
  version?: string | undefined;
38
- mouseLock?: boolean | undefined;
39
45
  }>>;
40
46
  webSdkSettings: z.ZodOptional<z.ZodObject<{
41
47
  conf: z.ZodOptional<z.ZodObject<{
@@ -69,36 +75,27 @@ export declare const ZStreamInfo: z.ZodObject<{
69
75
  GamepadInput: z.ZodOptional<z.ZodBoolean>;
70
76
  TouchInput: z.ZodOptional<z.ZodBoolean>;
71
77
  XRControllerInput: z.ZodOptional<z.ZodBoolean>;
72
- UseMic: z.ZodOptional<z.ZodBoolean>;
73
78
  FakeMouseWithTouches: z.ZodOptional<z.ZodBoolean>;
74
79
  ForceMonoAudio: z.ZodOptional<z.ZodBoolean>;
75
80
  HoveringMouse: z.ZodOptional<z.ZodBoolean>;
76
- MatchViewportRes: z.ZodOptional<z.ZodBoolean>;
77
- SuppressBrowserKeys: z.ZodOptional<z.ZodBoolean>;
78
81
  }, "strip", z.ZodTypeAny, {
79
82
  KeyboardInput?: boolean | undefined;
80
83
  MouseInput?: boolean | undefined;
81
84
  GamepadInput?: boolean | undefined;
82
85
  TouchInput?: boolean | undefined;
83
86
  XRControllerInput?: boolean | undefined;
84
- UseMic?: boolean | undefined;
85
87
  FakeMouseWithTouches?: boolean | undefined;
86
88
  ForceMonoAudio?: boolean | undefined;
87
89
  HoveringMouse?: boolean | undefined;
88
- MatchViewportRes?: boolean | undefined;
89
- SuppressBrowserKeys?: boolean | undefined;
90
90
  }, {
91
91
  KeyboardInput?: boolean | undefined;
92
92
  MouseInput?: boolean | undefined;
93
93
  GamepadInput?: boolean | undefined;
94
94
  TouchInput?: boolean | undefined;
95
95
  XRControllerInput?: boolean | undefined;
96
- UseMic?: boolean | undefined;
97
96
  FakeMouseWithTouches?: boolean | undefined;
98
97
  ForceMonoAudio?: boolean | undefined;
99
98
  HoveringMouse?: boolean | undefined;
100
- MatchViewportRes?: boolean | undefined;
101
- SuppressBrowserKeys?: boolean | undefined;
102
99
  }>>;
103
100
  }, "strict", z.ZodTypeAny, {
104
101
  conf?: {
@@ -116,12 +113,9 @@ export declare const ZStreamInfo: z.ZodObject<{
116
113
  GamepadInput?: boolean | undefined;
117
114
  TouchInput?: boolean | undefined;
118
115
  XRControllerInput?: boolean | undefined;
119
- UseMic?: boolean | undefined;
120
116
  FakeMouseWithTouches?: boolean | undefined;
121
117
  ForceMonoAudio?: boolean | undefined;
122
118
  HoveringMouse?: boolean | undefined;
123
- MatchViewportRes?: boolean | undefined;
124
- SuppressBrowserKeys?: boolean | undefined;
125
119
  } | undefined;
126
120
  }, {
127
121
  conf?: {
@@ -139,12 +133,9 @@ export declare const ZStreamInfo: z.ZodObject<{
139
133
  GamepadInput?: boolean | undefined;
140
134
  TouchInput?: boolean | undefined;
141
135
  XRControllerInput?: boolean | undefined;
142
- UseMic?: boolean | undefined;
143
136
  FakeMouseWithTouches?: boolean | undefined;
144
137
  ForceMonoAudio?: boolean | undefined;
145
138
  HoveringMouse?: boolean | undefined;
146
- MatchViewportRes?: boolean | undefined;
147
- SuppressBrowserKeys?: boolean | undefined;
148
139
  } | undefined;
149
140
  }>>;
150
141
  afk: z.ZodOptional<z.ZodObject<{
@@ -175,9 +166,11 @@ export declare const ZStreamInfo: z.ZodObject<{
175
166
  } | undefined;
176
167
  meta?: {
177
168
  friendlyName?: string | undefined;
169
+ isTrial?: boolean | undefined;
170
+ mouseLock?: boolean | undefined;
171
+ poweredBy?: boolean | undefined;
178
172
  ueVersion?: string | undefined;
179
173
  version?: string | undefined;
180
- mouseLock?: boolean | undefined;
181
174
  } | undefined;
182
175
  webSdkSettings?: {
183
176
  conf?: {
@@ -195,12 +188,9 @@ export declare const ZStreamInfo: z.ZodObject<{
195
188
  GamepadInput?: boolean | undefined;
196
189
  TouchInput?: boolean | undefined;
197
190
  XRControllerInput?: boolean | undefined;
198
- UseMic?: boolean | undefined;
199
191
  FakeMouseWithTouches?: boolean | undefined;
200
192
  ForceMonoAudio?: boolean | undefined;
201
193
  HoveringMouse?: boolean | undefined;
202
- MatchViewportRes?: boolean | undefined;
203
- SuppressBrowserKeys?: boolean | undefined;
204
194
  } | undefined;
205
195
  } | undefined;
206
196
  afk?: {
@@ -221,9 +211,11 @@ export declare const ZStreamInfo: z.ZodObject<{
221
211
  } | undefined;
222
212
  meta?: {
223
213
  friendlyName?: string | undefined;
214
+ isTrial?: boolean | undefined;
215
+ mouseLock?: boolean | undefined;
216
+ poweredBy?: boolean | undefined;
224
217
  ueVersion?: string | undefined;
225
218
  version?: string | undefined;
226
- mouseLock?: boolean | undefined;
227
219
  } | undefined;
228
220
  webSdkSettings?: {
229
221
  conf?: {
@@ -241,12 +233,9 @@ export declare const ZStreamInfo: z.ZodObject<{
241
233
  GamepadInput?: boolean | undefined;
242
234
  TouchInput?: boolean | undefined;
243
235
  XRControllerInput?: boolean | undefined;
244
- UseMic?: boolean | undefined;
245
236
  FakeMouseWithTouches?: boolean | undefined;
246
237
  ForceMonoAudio?: boolean | undefined;
247
238
  HoveringMouse?: boolean | undefined;
248
- MatchViewportRes?: boolean | undefined;
249
- SuppressBrowserKeys?: boolean | undefined;
250
239
  } | undefined;
251
240
  } | undefined;
252
241
  afk?: {
@@ -270,9 +259,11 @@ export declare const ZStreamInfo: z.ZodObject<{
270
259
  } | undefined;
271
260
  meta?: {
272
261
  friendlyName?: string | undefined;
262
+ isTrial?: boolean | undefined;
263
+ mouseLock?: boolean | undefined;
264
+ poweredBy?: boolean | undefined;
273
265
  ueVersion?: string | undefined;
274
266
  version?: string | undefined;
275
- mouseLock?: boolean | undefined;
276
267
  } | undefined;
277
268
  webSdkSettings?: {
278
269
  conf?: {
@@ -290,12 +281,9 @@ export declare const ZStreamInfo: z.ZodObject<{
290
281
  GamepadInput?: boolean | undefined;
291
282
  TouchInput?: boolean | undefined;
292
283
  XRControllerInput?: boolean | undefined;
293
- UseMic?: boolean | undefined;
294
284
  FakeMouseWithTouches?: boolean | undefined;
295
285
  ForceMonoAudio?: boolean | undefined;
296
286
  HoveringMouse?: boolean | undefined;
297
- MatchViewportRes?: boolean | undefined;
298
- SuppressBrowserKeys?: boolean | undefined;
299
287
  } | undefined;
300
288
  } | undefined;
301
289
  afk?: {
@@ -319,9 +307,11 @@ export declare const ZStreamInfo: z.ZodObject<{
319
307
  } | undefined;
320
308
  meta?: {
321
309
  friendlyName?: string | undefined;
310
+ isTrial?: boolean | undefined;
311
+ mouseLock?: boolean | undefined;
312
+ poweredBy?: boolean | undefined;
322
313
  ueVersion?: string | undefined;
323
314
  version?: string | undefined;
324
- mouseLock?: boolean | undefined;
325
315
  } | undefined;
326
316
  webSdkSettings?: {
327
317
  conf?: {
@@ -339,12 +329,9 @@ export declare const ZStreamInfo: z.ZodObject<{
339
329
  GamepadInput?: boolean | undefined;
340
330
  TouchInput?: boolean | undefined;
341
331
  XRControllerInput?: boolean | undefined;
342
- UseMic?: boolean | undefined;
343
332
  FakeMouseWithTouches?: boolean | undefined;
344
333
  ForceMonoAudio?: boolean | undefined;
345
334
  HoveringMouse?: boolean | undefined;
346
- MatchViewportRes?: boolean | undefined;
347
- SuppressBrowserKeys?: boolean | undefined;
348
335
  } | undefined;
349
336
  } | undefined;
350
337
  afk?: {
@@ -31,36 +31,27 @@ export declare const WebSdkSettings: z.ZodObject<{
31
31
  GamepadInput: z.ZodOptional<z.ZodBoolean>;
32
32
  TouchInput: z.ZodOptional<z.ZodBoolean>;
33
33
  XRControllerInput: z.ZodOptional<z.ZodBoolean>;
34
- UseMic: z.ZodOptional<z.ZodBoolean>;
35
34
  FakeMouseWithTouches: z.ZodOptional<z.ZodBoolean>;
36
35
  ForceMonoAudio: z.ZodOptional<z.ZodBoolean>;
37
36
  HoveringMouse: z.ZodOptional<z.ZodBoolean>;
38
- MatchViewportRes: z.ZodOptional<z.ZodBoolean>;
39
- SuppressBrowserKeys: z.ZodOptional<z.ZodBoolean>;
40
37
  }, "strip", z.ZodTypeAny, {
41
38
  KeyboardInput?: boolean | undefined;
42
39
  MouseInput?: boolean | undefined;
43
40
  GamepadInput?: boolean | undefined;
44
41
  TouchInput?: boolean | undefined;
45
42
  XRControllerInput?: boolean | undefined;
46
- UseMic?: boolean | undefined;
47
43
  FakeMouseWithTouches?: boolean | undefined;
48
44
  ForceMonoAudio?: boolean | undefined;
49
45
  HoveringMouse?: boolean | undefined;
50
- MatchViewportRes?: boolean | undefined;
51
- SuppressBrowserKeys?: boolean | undefined;
52
46
  }, {
53
47
  KeyboardInput?: boolean | undefined;
54
48
  MouseInput?: boolean | undefined;
55
49
  GamepadInput?: boolean | undefined;
56
50
  TouchInput?: boolean | undefined;
57
51
  XRControllerInput?: boolean | undefined;
58
- UseMic?: boolean | undefined;
59
52
  FakeMouseWithTouches?: boolean | undefined;
60
53
  ForceMonoAudio?: boolean | undefined;
61
54
  HoveringMouse?: boolean | undefined;
62
- MatchViewportRes?: boolean | undefined;
63
- SuppressBrowserKeys?: boolean | undefined;
64
55
  }>>;
65
56
  }, "strict", z.ZodTypeAny, {
66
57
  conf?: {
@@ -78,12 +69,9 @@ export declare const WebSdkSettings: z.ZodObject<{
78
69
  GamepadInput?: boolean | undefined;
79
70
  TouchInput?: boolean | undefined;
80
71
  XRControllerInput?: boolean | undefined;
81
- UseMic?: boolean | undefined;
82
72
  FakeMouseWithTouches?: boolean | undefined;
83
73
  ForceMonoAudio?: boolean | undefined;
84
74
  HoveringMouse?: boolean | undefined;
85
- MatchViewportRes?: boolean | undefined;
86
- SuppressBrowserKeys?: boolean | undefined;
87
75
  } | undefined;
88
76
  }, {
89
77
  conf?: {
@@ -101,11 +89,8 @@ export declare const WebSdkSettings: z.ZodObject<{
101
89
  GamepadInput?: boolean | undefined;
102
90
  TouchInput?: boolean | undefined;
103
91
  XRControllerInput?: boolean | undefined;
104
- UseMic?: boolean | undefined;
105
92
  FakeMouseWithTouches?: boolean | undefined;
106
93
  ForceMonoAudio?: boolean | undefined;
107
94
  HoveringMouse?: boolean | undefined;
108
- MatchViewportRes?: boolean | undefined;
109
- SuppressBrowserKeys?: boolean | undefined;
110
95
  } | undefined;
111
96
  }>;