@arcware-cloud/pixelstreaming-websdk 0.1.3 → 0.1.5
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/README.md +10 -11
- package/index.cjs.js +3 -3
- package/index.esm.js +3 -3
- package/index.umd.js +3 -3
- package/package.json +2 -2
- package/types/lib/ArcwareConfig.d.ts +1 -1
- package/types/lib/ArcwarePixelStreaming.d.ts +1 -0
- package/types/lib/styles/ArcwarePixelStreamingApplicationStyles.d.ts +23 -7
- package/types/lib/ui/PlayIcon/index.d.ts +5 -0
- package/types/lib/ui/StopButton/index.d.ts +5 -1
- package/types/shared/lib/Messages/StreamInfo.d.ts +0 -27
- package/types/shared/lib/Messages/WebSdkSettings.d.ts +0 -15
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.
|
|
4
|
+
"version": "0.1.5",
|
|
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.
|
|
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.
|
|
30
|
+
readonly VERSION = "0.1.5";
|
|
31
31
|
constructor(config: ArcwareConfigParams);
|
|
32
32
|
/** Setup connection string. */
|
|
33
33
|
get urlFlags(): string;
|
|
@@ -92,4 +92,5 @@ export declare class ArcwarePixelStreaming extends PixelStreaming {
|
|
|
92
92
|
private createMicrophoneOverlay;
|
|
93
93
|
toggleMic(enable: boolean, isDefault: boolean): void;
|
|
94
94
|
private wrapWebSocketOnCloseHandler;
|
|
95
|
+
onStreamingStateChange(callback: (isStreaming: boolean) => void): void;
|
|
95
96
|
}
|
|
@@ -20,10 +20,10 @@ export declare const ArcwareStyles: {
|
|
|
20
20
|
"*": {
|
|
21
21
|
fontFamily: string;
|
|
22
22
|
};
|
|
23
|
-
"::-webkit-scrollbar": {
|
|
23
|
+
"#shared-stream-container::-webkit-scrollbar": {
|
|
24
24
|
width: string;
|
|
25
25
|
};
|
|
26
|
-
"::-webkit-scrollbar-track": {
|
|
26
|
+
"#shared-stream-container::-webkit-scrollbar-track": {
|
|
27
27
|
background: string;
|
|
28
28
|
opacity: string;
|
|
29
29
|
borderRadius: string;
|
|
@@ -32,10 +32,10 @@ export declare const ArcwareStyles: {
|
|
|
32
32
|
borderBottom: string;
|
|
33
33
|
borderLeft: string;
|
|
34
34
|
};
|
|
35
|
-
"::-webkit-scrollbar-track-piece": {
|
|
35
|
+
"#shared-stream-container::-webkit-scrollbar-track-piece": {
|
|
36
36
|
background: string;
|
|
37
37
|
};
|
|
38
|
-
"::-webkit-scrollbar-thumb": {
|
|
38
|
+
"#shared-stream-container::-webkit-scrollbar-thumb": {
|
|
39
39
|
background: string;
|
|
40
40
|
width: string;
|
|
41
41
|
borderRight: string;
|
|
@@ -43,7 +43,7 @@ export declare const ArcwareStyles: {
|
|
|
43
43
|
transition: string;
|
|
44
44
|
borderRadius: string;
|
|
45
45
|
};
|
|
46
|
-
"::-webkit-scrollbar-thumb:hover": {
|
|
46
|
+
"#shared-stream-container::-webkit-scrollbar-thumb:hover": {
|
|
47
47
|
transition: string;
|
|
48
48
|
background: string;
|
|
49
49
|
};
|
|
@@ -100,6 +100,10 @@ export declare const ArcwareStyles: {
|
|
|
100
100
|
width: string;
|
|
101
101
|
height: string;
|
|
102
102
|
};
|
|
103
|
+
"#stopIcon, #playIcon": {
|
|
104
|
+
width: string;
|
|
105
|
+
height: string;
|
|
106
|
+
};
|
|
103
107
|
"#uiFeatures button .tooltiptext": {
|
|
104
108
|
right: string;
|
|
105
109
|
left: string;
|
|
@@ -341,10 +345,20 @@ export declare const ArcwareStyles: {
|
|
|
341
345
|
textTransform: string;
|
|
342
346
|
textAlign: string;
|
|
343
347
|
};
|
|
344
|
-
"#letters-
|
|
348
|
+
"#letters-wrapper": {
|
|
349
|
+
height: string;
|
|
350
|
+
overflow: string;
|
|
351
|
+
position: string;
|
|
352
|
+
display: string;
|
|
353
|
+
flexDirection: string;
|
|
354
|
+
alignItems: string;
|
|
355
|
+
justifyContent: string;
|
|
356
|
+
marginTop: string;
|
|
357
|
+
paddingBottom: string;
|
|
358
|
+
};
|
|
359
|
+
"#letters-wrapper p": {
|
|
345
360
|
textAlign: string;
|
|
346
361
|
lineHeight: number;
|
|
347
|
-
margin: string;
|
|
348
362
|
fontSize: string;
|
|
349
363
|
};
|
|
350
364
|
".letter-animation:nth-last-of-type(1)::after": {
|
|
@@ -356,6 +370,7 @@ export declare const ArcwareStyles: {
|
|
|
356
370
|
".letter-animation": {
|
|
357
371
|
transition: string;
|
|
358
372
|
transformOrigin: string;
|
|
373
|
+
margin: string;
|
|
359
374
|
};
|
|
360
375
|
".letter-animation-enter": {
|
|
361
376
|
animation: string;
|
|
@@ -364,6 +379,7 @@ export declare const ArcwareStyles: {
|
|
|
364
379
|
opacity: number;
|
|
365
380
|
scale: number;
|
|
366
381
|
transition: string;
|
|
382
|
+
margin: number;
|
|
367
383
|
};
|
|
368
384
|
"@keyframes dotty": {
|
|
369
385
|
"0%": {
|
|
@@ -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
|
|
12
|
+
private toggleStreaming;
|
|
13
|
+
private updateButtonIcon;
|
|
11
14
|
get element(): HTMLButtonElement;
|
|
15
|
+
private updateButtonState;
|
|
12
16
|
}
|
|
@@ -69,36 +69,27 @@ export declare const ZStreamInfo: z.ZodObject<{
|
|
|
69
69
|
GamepadInput: z.ZodOptional<z.ZodBoolean>;
|
|
70
70
|
TouchInput: z.ZodOptional<z.ZodBoolean>;
|
|
71
71
|
XRControllerInput: z.ZodOptional<z.ZodBoolean>;
|
|
72
|
-
UseMic: z.ZodOptional<z.ZodBoolean>;
|
|
73
72
|
FakeMouseWithTouches: z.ZodOptional<z.ZodBoolean>;
|
|
74
73
|
ForceMonoAudio: z.ZodOptional<z.ZodBoolean>;
|
|
75
74
|
HoveringMouse: z.ZodOptional<z.ZodBoolean>;
|
|
76
|
-
MatchViewportRes: z.ZodOptional<z.ZodBoolean>;
|
|
77
|
-
SuppressBrowserKeys: z.ZodOptional<z.ZodBoolean>;
|
|
78
75
|
}, "strip", z.ZodTypeAny, {
|
|
79
76
|
KeyboardInput?: boolean | undefined;
|
|
80
77
|
MouseInput?: boolean | undefined;
|
|
81
78
|
GamepadInput?: boolean | undefined;
|
|
82
79
|
TouchInput?: boolean | undefined;
|
|
83
80
|
XRControllerInput?: boolean | undefined;
|
|
84
|
-
UseMic?: boolean | undefined;
|
|
85
81
|
FakeMouseWithTouches?: boolean | undefined;
|
|
86
82
|
ForceMonoAudio?: boolean | undefined;
|
|
87
83
|
HoveringMouse?: boolean | undefined;
|
|
88
|
-
MatchViewportRes?: boolean | undefined;
|
|
89
|
-
SuppressBrowserKeys?: boolean | undefined;
|
|
90
84
|
}, {
|
|
91
85
|
KeyboardInput?: boolean | undefined;
|
|
92
86
|
MouseInput?: boolean | undefined;
|
|
93
87
|
GamepadInput?: boolean | undefined;
|
|
94
88
|
TouchInput?: boolean | undefined;
|
|
95
89
|
XRControllerInput?: boolean | undefined;
|
|
96
|
-
UseMic?: boolean | undefined;
|
|
97
90
|
FakeMouseWithTouches?: boolean | undefined;
|
|
98
91
|
ForceMonoAudio?: boolean | undefined;
|
|
99
92
|
HoveringMouse?: boolean | undefined;
|
|
100
|
-
MatchViewportRes?: boolean | undefined;
|
|
101
|
-
SuppressBrowserKeys?: boolean | undefined;
|
|
102
93
|
}>>;
|
|
103
94
|
}, "strict", z.ZodTypeAny, {
|
|
104
95
|
conf?: {
|
|
@@ -116,12 +107,9 @@ export declare const ZStreamInfo: z.ZodObject<{
|
|
|
116
107
|
GamepadInput?: boolean | undefined;
|
|
117
108
|
TouchInput?: boolean | undefined;
|
|
118
109
|
XRControllerInput?: boolean | undefined;
|
|
119
|
-
UseMic?: boolean | undefined;
|
|
120
110
|
FakeMouseWithTouches?: boolean | undefined;
|
|
121
111
|
ForceMonoAudio?: boolean | undefined;
|
|
122
112
|
HoveringMouse?: boolean | undefined;
|
|
123
|
-
MatchViewportRes?: boolean | undefined;
|
|
124
|
-
SuppressBrowserKeys?: boolean | undefined;
|
|
125
113
|
} | undefined;
|
|
126
114
|
}, {
|
|
127
115
|
conf?: {
|
|
@@ -139,12 +127,9 @@ export declare const ZStreamInfo: z.ZodObject<{
|
|
|
139
127
|
GamepadInput?: boolean | undefined;
|
|
140
128
|
TouchInput?: boolean | undefined;
|
|
141
129
|
XRControllerInput?: boolean | undefined;
|
|
142
|
-
UseMic?: boolean | undefined;
|
|
143
130
|
FakeMouseWithTouches?: boolean | undefined;
|
|
144
131
|
ForceMonoAudio?: boolean | undefined;
|
|
145
132
|
HoveringMouse?: boolean | undefined;
|
|
146
|
-
MatchViewportRes?: boolean | undefined;
|
|
147
|
-
SuppressBrowserKeys?: boolean | undefined;
|
|
148
133
|
} | undefined;
|
|
149
134
|
}>>;
|
|
150
135
|
afk: z.ZodOptional<z.ZodObject<{
|
|
@@ -195,12 +180,9 @@ export declare const ZStreamInfo: z.ZodObject<{
|
|
|
195
180
|
GamepadInput?: boolean | undefined;
|
|
196
181
|
TouchInput?: boolean | undefined;
|
|
197
182
|
XRControllerInput?: boolean | undefined;
|
|
198
|
-
UseMic?: boolean | undefined;
|
|
199
183
|
FakeMouseWithTouches?: boolean | undefined;
|
|
200
184
|
ForceMonoAudio?: boolean | undefined;
|
|
201
185
|
HoveringMouse?: boolean | undefined;
|
|
202
|
-
MatchViewportRes?: boolean | undefined;
|
|
203
|
-
SuppressBrowserKeys?: boolean | undefined;
|
|
204
186
|
} | undefined;
|
|
205
187
|
} | undefined;
|
|
206
188
|
afk?: {
|
|
@@ -241,12 +223,9 @@ export declare const ZStreamInfo: z.ZodObject<{
|
|
|
241
223
|
GamepadInput?: boolean | undefined;
|
|
242
224
|
TouchInput?: boolean | undefined;
|
|
243
225
|
XRControllerInput?: boolean | undefined;
|
|
244
|
-
UseMic?: boolean | undefined;
|
|
245
226
|
FakeMouseWithTouches?: boolean | undefined;
|
|
246
227
|
ForceMonoAudio?: boolean | undefined;
|
|
247
228
|
HoveringMouse?: boolean | undefined;
|
|
248
|
-
MatchViewportRes?: boolean | undefined;
|
|
249
|
-
SuppressBrowserKeys?: boolean | undefined;
|
|
250
229
|
} | undefined;
|
|
251
230
|
} | undefined;
|
|
252
231
|
afk?: {
|
|
@@ -290,12 +269,9 @@ export declare const ZStreamInfo: z.ZodObject<{
|
|
|
290
269
|
GamepadInput?: boolean | undefined;
|
|
291
270
|
TouchInput?: boolean | undefined;
|
|
292
271
|
XRControllerInput?: boolean | undefined;
|
|
293
|
-
UseMic?: boolean | undefined;
|
|
294
272
|
FakeMouseWithTouches?: boolean | undefined;
|
|
295
273
|
ForceMonoAudio?: boolean | undefined;
|
|
296
274
|
HoveringMouse?: boolean | undefined;
|
|
297
|
-
MatchViewportRes?: boolean | undefined;
|
|
298
|
-
SuppressBrowserKeys?: boolean | undefined;
|
|
299
275
|
} | undefined;
|
|
300
276
|
} | undefined;
|
|
301
277
|
afk?: {
|
|
@@ -339,12 +315,9 @@ export declare const ZStreamInfo: z.ZodObject<{
|
|
|
339
315
|
GamepadInput?: boolean | undefined;
|
|
340
316
|
TouchInput?: boolean | undefined;
|
|
341
317
|
XRControllerInput?: boolean | undefined;
|
|
342
|
-
UseMic?: boolean | undefined;
|
|
343
318
|
FakeMouseWithTouches?: boolean | undefined;
|
|
344
319
|
ForceMonoAudio?: boolean | undefined;
|
|
345
320
|
HoveringMouse?: boolean | undefined;
|
|
346
|
-
MatchViewportRes?: boolean | undefined;
|
|
347
|
-
SuppressBrowserKeys?: boolean | undefined;
|
|
348
321
|
} | undefined;
|
|
349
322
|
} | undefined;
|
|
350
323
|
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
|
}>;
|