@arcware-cloud/pixelstreaming-websdk 1.3.4 → 1.3.7
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/index.cjs.js +186 -178
- package/index.esm.js +186 -178
- package/index.umd.js +186 -178
- package/package.json +1 -1
- package/types/lib/ArcwareConfig.d.ts +1 -1
- package/types/lib/ArcwarePixelStreaming.d.ts +15 -22
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 Cloud Services. Heavily based on the '@epicgames-ps' library.",
|
|
4
|
-
"version": "1.3.
|
|
4
|
+
"version": "1.3.7",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"main": "./index.umd.js",
|
|
7
7
|
"module": "./index.umd.js",
|
|
@@ -26,7 +26,7 @@ export declare class ArcwareConfig extends Config {
|
|
|
26
26
|
readonly session: Session;
|
|
27
27
|
readonly settings: Settings;
|
|
28
28
|
private _initialSettings;
|
|
29
|
-
readonly VERSION = "1.3.
|
|
29
|
+
readonly VERSION = "1.3.7";
|
|
30
30
|
constructor(config: ArcwareConfigParams);
|
|
31
31
|
/** Setup connection string. */
|
|
32
32
|
get urlFlags(): string;
|
|
@@ -19,27 +19,20 @@ export declare class ArcwarePixelStreaming extends PixelStreaming {
|
|
|
19
19
|
private microphoneOverlay;
|
|
20
20
|
private diagnosticsCollector;
|
|
21
21
|
private outbox;
|
|
22
|
-
private retryTimers;
|
|
23
22
|
private videoInitializedSent;
|
|
24
|
-
private versionReplyInFlight;
|
|
25
|
-
private nextMsgId;
|
|
26
23
|
private _boundTransport?;
|
|
27
24
|
private _onWsOpen?;
|
|
28
25
|
private _onWsClose?;
|
|
29
26
|
private _transportWatchTimer?;
|
|
30
|
-
private
|
|
31
|
-
private
|
|
32
|
-
private
|
|
33
|
-
private
|
|
34
|
-
private
|
|
35
|
-
private
|
|
27
|
+
private _rVFCsupported;
|
|
28
|
+
private _rvfcHandle?;
|
|
29
|
+
private _rVFCArmedForElement?;
|
|
30
|
+
private _mo?;
|
|
31
|
+
private _postInitSideEffectsDone;
|
|
32
|
+
private resetInitGuardsAndHooks;
|
|
33
|
+
reconnect(): void;
|
|
34
|
+
private isRetryableClose;
|
|
36
35
|
private bindTransportEvents;
|
|
37
|
-
private hasMediaEvidence;
|
|
38
|
-
private startVideoInitWatchdog;
|
|
39
|
-
private stopVideoInitWatchdog;
|
|
40
|
-
private startTransportWatcher;
|
|
41
|
-
private stopTransportWatcher;
|
|
42
|
-
private bindVideoElPlayingOnce;
|
|
43
36
|
private get isWsOpen();
|
|
44
37
|
/** Returns a list of WebSocketStates of all PixelStreaming Instances generated. */
|
|
45
38
|
get WebsocketStates(): WebsocketState[];
|
|
@@ -61,7 +54,6 @@ export declare class ArcwarePixelStreaming extends PixelStreaming {
|
|
|
61
54
|
private onPing;
|
|
62
55
|
/** Handle incoming configurations. */
|
|
63
56
|
private onStreamInfo;
|
|
64
|
-
/** On ping the session creation timestamp will be updated. */
|
|
65
57
|
readonly queueHandler: EventHandler<{
|
|
66
58
|
type?: "queue";
|
|
67
59
|
queue?: {
|
|
@@ -74,7 +66,6 @@ export declare class ArcwarePixelStreaming extends PixelStreaming {
|
|
|
74
66
|
};
|
|
75
67
|
}>;
|
|
76
68
|
private onQueue;
|
|
77
|
-
/** Error receiver. */
|
|
78
69
|
readonly errorHandler: EventHandler<{
|
|
79
70
|
type?: "error";
|
|
80
71
|
code?: number;
|
|
@@ -82,7 +73,6 @@ export declare class ArcwarePixelStreaming extends PixelStreaming {
|
|
|
82
73
|
verbosity?: number;
|
|
83
74
|
}>;
|
|
84
75
|
private onError;
|
|
85
|
-
/** LoveLetter */
|
|
86
76
|
readonly loveLetterHandler: EventHandler<{
|
|
87
77
|
type?: "letter";
|
|
88
78
|
reason?: string;
|
|
@@ -90,15 +80,16 @@ export declare class ArcwarePixelStreaming extends PixelStreaming {
|
|
|
90
80
|
verbosity?: number;
|
|
91
81
|
}>;
|
|
92
82
|
private onLoveLetter;
|
|
93
|
-
/** SessionId */
|
|
94
83
|
readonly sessionIdHandler: EventHandler<string>;
|
|
95
84
|
private onSessionId;
|
|
96
85
|
private sendVideoInitializedOnce;
|
|
97
|
-
|
|
98
|
-
/** VideoInitialized */
|
|
86
|
+
/** VideoInitialized (native Epic event) */
|
|
99
87
|
readonly videoInitializedHandler: EventHandler<never>;
|
|
88
|
+
private runPostInitSideEffectsOnce;
|
|
100
89
|
private onVideoInitialized;
|
|
101
|
-
|
|
90
|
+
private attachFirstRenderedFrameOnce;
|
|
91
|
+
private cancelFirstRenderedFrameHook;
|
|
92
|
+
private watchVideoElementReplacement;
|
|
102
93
|
readonly websocketOnCloseHandler: EventHandler<CloseEvent>;
|
|
103
94
|
/** Adding a zod-safe handler. */
|
|
104
95
|
private addMessageHandler;
|
|
@@ -118,6 +109,8 @@ export declare class ArcwarePixelStreaming extends PixelStreaming {
|
|
|
118
109
|
private handleResolutionChange;
|
|
119
110
|
private applyResolutionIfPlaying;
|
|
120
111
|
removePlayer(): void;
|
|
112
|
+
private startTransportWatcher;
|
|
113
|
+
private stopTransportWatcher;
|
|
121
114
|
private handleMouseLock;
|
|
122
115
|
initLoveLettersContainer(): void;
|
|
123
116
|
private pushLetter;
|