@arcware-cloud/pixelstreaming-websdk 1.3.31 → 1.3.33

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 CHANGED
@@ -8,8 +8,6 @@ If you are not familiar with Arcware Cloud yet, check it out on [www.arcware.com
8
8
 
9
9
  The WebSDK is designed to bring immersive experiences, similar to those found in native applications, to the web. It's enabled for a range of applications, from gaming and architectural visualization to interactive training. Bringing high quality real-time and ensures a seamless user experience.
10
10
 
11
- This README offers an initial guide to integrating the WebSDK into your application. For comprehensive instructions, including setup, configuration, advanced features, and best practices, please refer to our detailed documentation: [Arcware Pixel Streaming WebSDK Documentation](https://docs.arcware.cloud/web-integration/new-websdk).
12
-
13
11
  For an in-depth understanding of the underlying technology and infrastructure, you can explore the original "PixelStreamingInfrastructure" repository by Epic Games on GitHub: [EpicGames/PixelStreamingInfrastructure](https://github.com/EpicGames/PixelStreamingInfrastructure).
14
12
 
15
13
  ## Getting Started
@@ -20,252 +18,17 @@ Before integrating the `@arcware-cloud/pixelstreaming-websdk` into your project,
20
18
 
21
19
  1. **Share ID**: You must have a valid Share ID set up for your project. This ID is crucial for establishing the connection between your application and the Arcware Cloud pixel streaming service. If you need assistance in setting up your Share ID, please refer to our detailed guide: [Setting up Share ID](https://docs.arcware.cloud/arcware-cloud-platform/getting-started/07.-preview-and-share-the-stream).
22
20
 
23
- 2. **Web Application Development Environment**: Ensure that your web application development environment is set up with either `yarn` or `npm`. These package managers are required for installing the WebSDK.
24
-
25
- 3. **TypeScript Recommendation**: While the SDK can be used with JavaScript, we strongly recommend using TypeScript in your development process. TypeScript offers enhanced code quality, readability, and will provide you with more intrinsic information during development, often surpassing what traditional documentation can offer.
26
-
27
- ### Installation
28
-
29
- To integrate the Arcware Cloud Pixel Streaming WebSDK into your project, you can use either npm or yarn. Run one of the following commands in your project directory:
30
-
31
- ```bash
32
- npm install @arcware-cloud/pixelstreaming-websdk --save
33
- ```
34
-
35
- ```bash
36
- yarn add @arcware-cloud/pixelstreaming-websdk
37
- ```
38
-
39
- We recommend keeping the WebSDK up to date to ensure you have the latest features and bug fixes. Regularly check for and install updates.
40
-
41
- ### Basic Usage
42
-
43
- Below is a simple example demonstrating how to use the WebSDK in an HTML file to set up pixel streaming. This example imports the SDK and initializes it with a share ID and initial settings. It then attaches the streaming application to a div element in your HTML.
44
-
45
- ```html
46
- <html>
47
- <head>
48
- <title>Arcware Cloud - Pixel Streaming</title>
49
- <script type="module">
50
- import * as PixelStreamingWebSdkCore from "https://unpkg.com/@arcware-cloud/pixelstreaming-websdk@latest/index.esm.js";
51
-
52
- const { ArcwareInit } = PixelStreamingWebSdkCore;
53
-
54
- const { Config, PixelStreaming, Application } = ArcwareInit(
55
- {
56
- // Replace with your actual share ID
57
- shareId: "share-0be4620b-77aa-42b1-98cb-f7ee61be443?"
58
- },
59
- {
60
- initialSettings: {
61
- AutoConnect: false
62
- // additional initial settings
63
- },
64
- settings: {
65
- // additional settings
66
- }
67
- }
68
- );
69
-
70
- document.getElementById("videoContainer").appendChild(Application.rootElement);
71
- </script>
72
- </head>
73
- <body>
74
- <div id="videoContainer" style="height: 1000px; width: 1000px;"></div>
75
- </body>
76
- </html>
77
- ```
78
-
79
- For more detailed examples and advanced usage, please refer to our documentation: [Arcware Cloud Pixelstreaming WebSDK Documentation](https://docs.arcware.cloud/web-integration/new-websdk).
80
-
81
- # Changelog
82
-
83
- ### 1.3.25
84
-
85
- - fixed types being emitted again after bundler change
86
-
87
- ### 1.3.24
88
-
89
- - allowing json type payload for upcoming events feature
90
-
91
- ### 1.3.20
92
-
93
- - polished types a bit and aligned with documentation
94
-
95
- ### 1.3.19
96
-
97
- - added new configuration parameters to optionally hide AfkOverlay and to hide love letters box
98
- - exposing a function to clear session ID which can be called before connecting to stream to force a fresh instance
99
- - fixed a bug that was causing onWebsocketClosedEventHandler to fire three times. Also it now returns proper CloseEvent
100
-
101
- ### 1.3.17
102
-
103
- - added support for videos in white labelling
104
-
105
- ### 1.3.16
106
-
107
- - added white labeling options for loader icon and screen
108
- - options can be loaded via base64 encoded string in URL, fetched via API (configured on platform) or set as properties on the SDK
109
-
110
- ### 1.3.12
111
-
112
- - added orientationZoom field for managing zoom
113
- - fixed stream-ui issue (occurred on React.js)
114
-
115
- ### 1.3.9
116
-
117
- - added an event handler to check if video is streaming if cloud requests evidence
118
-
119
- ### 1.3.8
120
-
121
- - fixed error handling in SDK to back of reconnects if connection was intentionally terminated by cloud
122
-
123
- ### 1.3.3
124
-
125
- - adding built in functionality for filetransfer (docs will follow soon)
126
- - added function to send events to Arcware Platform for custom analytics (this feature is alpha on backend, contact account manager if you are interested)
127
- - some fixes to
128
-
129
- ### 1.2.18
130
-
131
- - fixed webpack to emit types
132
-
133
- ### 1.2.17 (broken)
134
-
135
- - fixed diagnostics to interpred user agent and user agent data more accurately
136
- - webpack did not emit types.d.ts do not use this version!
137
-
138
- ### 1.2.16
139
-
140
- - Added "diagnostics collector" module
141
-
142
- ### 1.2.13
143
-
144
- - Replaced "moment" by "date-fns"
145
-
146
- ### 1.2.7
147
-
148
- - "@epicgames-ps/lib-pixelstreamingcommon-ue5.5": "0.3.1",
149
- - "@epicgames-ps/lib-pixelstreamingfrontend-ue5.5": "1.2.1",
150
- - "@epicgames-ps/lib-pixelstreamingfrontend-ui-ue5.5": "1.3.1",
151
-
152
- ### 1.2.6
153
-
154
- - Added the "TextboxEntry" handler
155
- - global CSS rule encapsulation
156
-
157
- ### 1.2.5
158
-
159
- - Initial resolution can now be set as configuration parameter. Platform will start the instance with this resolution as startup argument for Unreal, such that Unreal will start with the web container size's resolution for fastest loading experience and screen adaptation
160
-
161
- ### 1.1.22
162
-
163
- - Added flag to force refresh the components on ArcwareInit
164
- - removed lodash and lottie dependencies to reduce package size significantly
165
-
166
- ### 1.1.20
21
+ 2. **Web Application Development Environment**: Please check out our documentation [Arcware Pixel Streaming WebSDK Getting started](https://docs.arcware.cloud/web-integration/new-websdk/implementing-the-stream-on-your-app/getting-started)
167
22
 
168
- - fixing ZoD error on queuing
23
+ # CHANGELOG
169
24
 
170
- ### 1.1.19
171
-
172
- - "@epicgames-ps/lib-pixelstreamingcommon-ue5.5": "0.2.9"
173
- - "@epicgames-ps/lib-pixelstreamingfrontend-ue5.5": "1.1.0"
174
- - "@epicgames-ps/lib-pixelstreamingfrontend-ui-ue5.5": "1.2.0"
175
-
176
- ### 1.1.18
177
-
178
- - hotfix: PixelStreaming.websocketState now returning correct state
179
-
180
- ### 1.1.17
181
-
182
- - "@epicgames-ps/lib-pixelstreamingcommon-ue5.5": "0.2.9"
183
- - "@epicgames-ps/lib-pixelstreamingfrontend-ue5.5": "1.0.3"
184
- - "@epicgames-ps/lib-pixelstreamingfrontend-ui-ue5.5": "1.0.2"
185
-
186
- ### 1.1.12
187
-
188
- - pushing to newer versions of pixelstreaming infrastructure
189
- - "@epicgames-ps/lib-pixelstreamingcommon-ue5.5": "0.2.8"
190
- - "@epicgames-ps/lib-pixelstreamingfrontend-ue5.5": "1.0.1"
191
- - "@epicgames-ps/lib-pixelstreamingfrontend-ui-ue5.5": "1.0.0"
192
-
193
- ### 1.1.5
194
-
195
- - removing the reconnect on successive calls to ArcwareInit if websocket was stale. If this behaviour is needed, it should be implemented outside the SDK
196
-
197
- ### 1.1.3
198
-
199
- - reverting as the new versions of pixelstreaming infrastructure break things at least on Arcware side
200
- - "@epicgames-ps/lib-pixelstreamingcommon-ue5.5": "0.1.7"
201
- - "@epicgames-ps/lib-pixelstreamingfrontend-ue5.5": "0.4.8"
202
- - "@epicgames-ps/lib-pixelstreamingfrontend-ui-ue5.5": "0.4.8"
203
-
204
- ### 1.0.11
205
-
206
- - reduced logging verbosity of pixel streaming infrastructure to not spam console
207
-
208
- ### 1.0.10
209
-
210
- - Storing initialized WebSDK in global variable after calling ArcwareInit to return existing object on consecutive calls.
211
- This prevents double websocket connections and potential failures to connect to stream
212
-
213
- ### 1.0.9
214
-
215
- - Fixed peerDependencies in package.json
216
-
217
- ### 1.0.0
218
-
219
- This version was created with the support of Tensorworks and is now sourcing from upstream packages
220
-
221
- - "@epicgames-ps/lib-pixelstreamingcommon-ue5.5": "0.1.7"
222
- - "@epicgames-ps/lib-pixelstreamingfrontend-ue5.5": "^0.4.8"
223
- - "@epicgames-ps/lib-pixelstreamingfrontend-ui-ue5.5": "^0.4.8"
224
-
225
- #### Added
226
-
227
- - Support for Versions 5.1 and higher
228
- - Support for controllers
229
- - Experimental support for VR streaming
230
-
231
- #### Fixed
232
-
233
- - Random freezes on streams
234
-
235
- #### Deprecated
236
-
237
- - Support for Unreal 4.27 (fall back to WebRTC Plugin)
238
- - Support for Unreal 5.0.3.0 (fall back to WebRTC Plugin)
239
-
240
- ### 0.1.\* (Initial Release)
241
-
242
- <!-- - Upcoming changes or improvements that are currently in development can be listed here.
243
-
244
- ### [Version Number] - Release Date
245
-
246
- #### Added
247
- - List of new features or additions to the WebSDK in this release.
248
-
249
- #### Changed
250
- - Updates to existing features or overall improvements to the WebSDK.
251
-
252
- #### Deprecated
253
- - Features that are planned to be removed in future releases.
254
-
255
- #### Removed
256
- - Features or functionalities that have been removed from the WebSDK.
257
-
258
- #### Fixed
259
- - Bug fixes and corrections made in this release.
260
-
261
- ### [Previous Version Number] - Previous Release Date
262
- - Changes for previous versions follow the same format. -->
25
+ Our changelog moved to the documentation: [CHANGELOG](https://docs.arcware.cloud/web-integration/new-websdk/changelog)
263
26
 
264
27
  # LICENSE
265
28
 
266
29
  MIT License
267
30
 
268
- Copyright 2023 Arcware GmbH
31
+ Copyright 2026 Arcware GmbH
269
32
 
270
33
  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
271
34
 
@@ -286,51 +49,3 @@ This software inherits code from several other libraries, namely:
286
49
  Here's a summary of these [Dependency Licenses](https://www.npmjs.com/package/@arcware-cloud/pixelstreaming-websdk?activeTab=code)/DEPENDENCY_LICENSE.md.
287
50
 
288
51
  We appreciate the contributions of these libraries, as they are essential in supporting our development efforts.
289
-
290
- <!-- # Configuration Options
291
-
292
- When creating a new instance of `ArcwareConfig`, you provide an object with two main properties: `initialSettings` and `settings`.
293
-
294
- ####
295
-
296
- `initialSettings`
297
-
298
- This property is an object that defines the initial environment and behavior of the Pixel Streaming session. Here's a breakdown of the options used in the example:
299
-
300
- - `ss`: This is the URL to the signalling server, which is essential for establishing the WebRTC connection. It is typically provided by your environment configuration.
301
- - `StartVideoMuted`: A boolean that, when set to `true`, starts the video in a muted state.
302
- - `AutoConnect`: If `true`, the client will automatically attempt to connect to the Pixel Streaming session as soon as possible.
303
- - `AutoPlayVideo`: When set to `true`, the video will automatically play as soon as it's ready.
304
-
305
- ####
306
-
307
- `settings`
308
-
309
- The `settings` property is an object containing various configuration options that tailor the user interface and interaction capabilities of the streaming session:
310
-
311
- - `shareId`: An identifier used for sharing sessions. \*Required
312
- - `session`: The session ID, which can be used for session management and reconnection.
313
- - `token`: An authentication token, if required by your backend.
314
- - `infoButton`: A boolean to toggle the visibility of an information button in the UI.
315
- - `micButton`: A boolean to control the display of a microphone toggle button.
316
- - `audioButton`: A boolean to show or hide the audio control button.
317
- - `fullscreenButton`: A boolean to enable a fullscreen toggle button.
318
- - `settingsButton`: A boolean to add a settings button to the UI.
319
- - `connectionStrengthIcon`: A boolean to display an icon indicating the connection strength.
320
-
321
- ###
322
-
323
- Initialization Process
324
-
325
- After configuring `ArcwareConfig`, you create an instance of `ArcwarePixelStreaming` by passing the configuration object. This instance is responsible for managing the streaming session and handling user interactions.
326
-
327
- const pixelStreamingInstance = new ArcwarePixelStreaming(config);
328
-
329
- Once initialized, `pixelStreamingInstance` can be used to interact with the streaming session. For example, you can retrieve the application's response or emit UI interactions:
330
-
331
- const application = new ArcwareApplication({
332
- stream: pixelStreamingInstance,
333
- });
334
-
335
- - ` application.getApplicationResponse(``string``) `: This method can be called to get a response from the application, which might include status updates or other messages.
336
- - `application.emitUIInteraction(descriptor:` ` object | string``) `: This method allows you to send UI interaction events to the streaming application, such as button presses or command inputs. -->
package/index.cjs CHANGED
@@ -22887,13 +22887,13 @@ exports.ArcwareApplication = void 0;
22887
22887
  const tslib_1 = __webpack_require__(1635);
22888
22888
  const lib_pixelstreamingfrontend_ue5_5_1 = __webpack_require__(52);
22889
22889
  const lib_pixelstreamingfrontend_ui_ue5_5_1 = __webpack_require__(5196);
22890
+ const ArcwareEventUtil_1 = __webpack_require__(8930);
22891
+ const ArcwareFileTransferUtil_1 = __webpack_require__(7237);
22892
+ const common_1 = __webpack_require__(8216);
22890
22893
  const ArcwarePixelStreamingApplicationStyles_1 = __webpack_require__(6125);
22891
22894
  const AudioButton_1 = __webpack_require__(7305);
22892
22895
  const MicButton_1 = __webpack_require__(524);
22893
22896
  const StopButton_1 = __webpack_require__(541);
22894
- const ArcwareEventUtil_1 = __webpack_require__(8930);
22895
- const ArcwareFileTransferUtil_1 = __webpack_require__(7237);
22896
- const common_1 = __webpack_require__(8216);
22897
22897
  const DEBUG = false;
22898
22898
  const TextKeyRegex = /^(\['([a-zA-Z 0-9-_]+)'\] )/;
22899
22899
  function findElementByTextContent(root, selector) {
@@ -23391,21 +23391,9 @@ const ArcwareSettingsSchema_1 = __webpack_require__(9913);
23391
23391
  const whiteLabelling_1 = __webpack_require__(5292);
23392
23392
  const ZWhiteLabel_1 = __webpack_require__(1938);
23393
23393
  const EventHandler_1 = __webpack_require__(3916);
23394
+ lib_pixelstreamingfrontend_ue5_5_1.Logger.InitLogging(2, false);
23394
23395
  /** Default arcware signalling endpoint. */
23395
23396
  exports.DefaultUrl = `wss://signalling-client.ragnarok.arcware.cloud`;
23396
- // The below Logger overrides can likely be removed as PSInfra 5.5 logger supports setting log verbosity
23397
- // and these overrides are matching the default logging behaviour anyway (except info).
23398
- /*Logger.Info = (message: string) => {
23399
- // console.info(message);
23400
- };
23401
- Logger.Warning = (message: string) => {
23402
- console.warn(message);
23403
- };
23404
- Logger.Error = (message: string) => {
23405
- if (message?.startsWith("unhandled Stat Type")) return;
23406
- console.error(message);
23407
- };*/
23408
- lib_pixelstreamingfrontend_ue5_5_1.Logger.InitLogging(2, false);
23409
23397
  function deepEqual(a, b) {
23410
23398
  try {
23411
23399
  return JSON.stringify(a) === JSON.stringify(b);
@@ -23462,7 +23450,7 @@ class ArcwareConfig extends lib_pixelstreamingfrontend_ue5_5_1.Config {
23462
23450
  if (!config.initialSettings.ss)
23463
23451
  config.initialSettings.ss = exports.DefaultUrl;
23464
23452
  super(config);
23465
- this.VERSION = "1.3.31";
23453
+ this.VERSION = "1.3.33";
23466
23454
  this.whiteLabellingChanged = new EventHandler_1.EventHandler();
23467
23455
  this.signallingWlURL = "https://signalling-client.arcware.cloud/whiteLabel/";
23468
23456
  if (config.envName) {
package/index.mjs CHANGED
@@ -22878,13 +22878,13 @@ __webpack_require__.r(__webpack_exports__);
22878
22878
  /* harmony import */ var _epicgames_ps_lib_pixelstreamingfrontend_ui_ue5_5__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(920);
22879
22879
  /* harmony import */ var _epicgames_ps_lib_pixelstreamingfrontend_ui_ue5_5__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(2139);
22880
22880
  /* harmony import */ var _epicgames_ps_lib_pixelstreamingfrontend_ui_ue5_5__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(7261);
22881
- /* harmony import */ var _styles_ArcwarePixelStreamingApplicationStyles__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(6125);
22882
- /* harmony import */ var _ui_AudioButton__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(7305);
22883
- /* harmony import */ var _ui_MicButton__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(524);
22884
- /* harmony import */ var _ui_StopButton__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(541);
22885
- /* harmony import */ var _features_ArcwareEventUtil__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(8930);
22886
- /* harmony import */ var _features_ArcwareFileTransferUtil__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(7237);
22887
- /* harmony import */ var _features_common__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(8216);
22881
+ /* harmony import */ var _features_ArcwareEventUtil__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(8930);
22882
+ /* harmony import */ var _features_ArcwareFileTransferUtil__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(7237);
22883
+ /* harmony import */ var _features_common__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(8216);
22884
+ /* harmony import */ var _styles_ArcwarePixelStreamingApplicationStyles__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(6125);
22885
+ /* harmony import */ var _ui_AudioButton__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(7305);
22886
+ /* harmony import */ var _ui_MicButton__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(524);
22887
+ /* harmony import */ var _ui_StopButton__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(541);
22888
22888
  var _a;
22889
22889
 
22890
22890
 
@@ -23125,7 +23125,7 @@ class ArcwareApplication extends _epicgames_ps_lib_pixelstreamingfrontend_ui_ue5
23125
23125
  }
23126
23126
  createAudioToggleButton() {
23127
23127
  var _b;
23128
- const audioButton = new _ui_AudioButton__WEBPACK_IMPORTED_MODULE_8__.AudioButton(this === null || this === void 0 ? void 0 : this.stream);
23128
+ const audioButton = new _ui_AudioButton__WEBPACK_IMPORTED_MODULE_11__.AudioButton(this === null || this === void 0 ? void 0 : this.stream);
23129
23129
  const videoElementParent = (_b = this === null || this === void 0 ? void 0 : this.stream) === null || _b === void 0 ? void 0 : _b.videoElementParent;
23130
23130
  const playerUI = videoElementParent.parentElement;
23131
23131
  // Append the button to the videoElementParent
@@ -23141,7 +23141,7 @@ class ArcwareApplication extends _epicgames_ps_lib_pixelstreamingfrontend_ui_ue5
23141
23141
  }
23142
23142
  createMicToggleButton() {
23143
23143
  var _b;
23144
- const micButton = new _ui_MicButton__WEBPACK_IMPORTED_MODULE_9__.MicButton(this === null || this === void 0 ? void 0 : this.stream);
23144
+ const micButton = new _ui_MicButton__WEBPACK_IMPORTED_MODULE_12__.MicButton(this === null || this === void 0 ? void 0 : this.stream);
23145
23145
  const videoElementParent = (_b = this === null || this === void 0 ? void 0 : this.stream) === null || _b === void 0 ? void 0 : _b.videoElementParent;
23146
23146
  const playerUI = videoElementParent.parentElement;
23147
23147
  // Append the button to the videoElementParent
@@ -23158,7 +23158,7 @@ class ArcwareApplication extends _epicgames_ps_lib_pixelstreamingfrontend_ui_ue5
23158
23158
  createStopButton() {
23159
23159
  var _b, _c, _d, _e;
23160
23160
  if (((_d = (_c = (_b = this.stream) === null || _b === void 0 ? void 0 : _b.config) === null || _c === void 0 ? void 0 : _c.settings) === null || _d === void 0 ? void 0 : _d.stopButton) === true) {
23161
- const stopButton = new _ui_StopButton__WEBPACK_IMPORTED_MODULE_10__.StopButton(this === null || this === void 0 ? void 0 : this.stream);
23161
+ const stopButton = new _ui_StopButton__WEBPACK_IMPORTED_MODULE_13__.StopButton(this === null || this === void 0 ? void 0 : this.stream);
23162
23162
  const videoElementParent = (_e = this === null || this === void 0 ? void 0 : this.stream) === null || _e === void 0 ? void 0 : _e.videoElementParent;
23163
23163
  const playerUI = videoElementParent.parentElement;
23164
23164
  // Append the button to the videoElementParent
@@ -23257,14 +23257,14 @@ class ArcwareApplication extends _epicgames_ps_lib_pixelstreamingfrontend_ui_ue5
23257
23257
  var _b, _c, _d, _e;
23258
23258
  let obj;
23259
23259
  try {
23260
- obj = (0,_features_common__WEBPACK_IMPORTED_MODULE_13__.parseUnknownToObject)(response, { allowJsonish: true });
23260
+ obj = (0,_features_common__WEBPACK_IMPORTED_MODULE_9__.parseUnknownToObject)(response, { allowJsonish: true });
23261
23261
  }
23262
23262
  catch (_f) {
23263
23263
  // not parseable → just send to generic handler and bail out
23264
23264
  (_b = this.responseCallback) === null || _b === void 0 ? void 0 : _b.call(this, response);
23265
23265
  return;
23266
23266
  }
23267
- const t = (0,_features_common__WEBPACK_IMPORTED_MODULE_13__.normalizeType)(obj["type"]);
23267
+ const t = (0,_features_common__WEBPACK_IMPORTED_MODULE_9__.normalizeType)(obj["type"]);
23268
23268
  // route to exactly one callback
23269
23269
  if (t === "event") {
23270
23270
  (_c = this.analyticsEventCallback) === null || _c === void 0 ? void 0 : _c.call(this, JSON.stringify(obj));
@@ -23278,7 +23278,7 @@ class ArcwareApplication extends _epicgames_ps_lib_pixelstreamingfrontend_ui_ue5
23278
23278
  (_e = this.responseCallback) === null || _e === void 0 ? void 0 : _e.call(this, response);
23279
23279
  }
23280
23280
  applyArcwareStyles() {
23281
- const PixelStreamingApplicationStyles = new _epicgames_ps_lib_pixelstreamingfrontend_ui_ue5_5__WEBPACK_IMPORTED_MODULE_4__.PixelStreamingApplicationStyle(_styles_ArcwarePixelStreamingApplicationStyles__WEBPACK_IMPORTED_MODULE_7__.ArcwareStyles);
23281
+ const PixelStreamingApplicationStyles = new _epicgames_ps_lib_pixelstreamingfrontend_ui_ue5_5__WEBPACK_IMPORTED_MODULE_4__.PixelStreamingApplicationStyle(_styles_ArcwarePixelStreamingApplicationStyles__WEBPACK_IMPORTED_MODULE_10__.ArcwareStyles);
23282
23282
  PixelStreamingApplicationStyles === null || PixelStreamingApplicationStyles === void 0 ? void 0 : PixelStreamingApplicationStyles.applyStyleSheet();
23283
23283
  }
23284
23284
  /** Emit an event towards the UE Application.
@@ -23315,7 +23315,7 @@ class ArcwareApplication extends _epicgames_ps_lib_pixelstreamingfrontend_ui_ue5
23315
23315
  }
23316
23316
  analyticsEvent(response) {
23317
23317
  var _b;
23318
- const event = (0,_features_ArcwareEventUtil__WEBPACK_IMPORTED_MODULE_11__.toAnalyticsEvent)(response, { maxPayloadBytes: 512, allowJsonish: true });
23318
+ const event = (0,_features_ArcwareEventUtil__WEBPACK_IMPORTED_MODULE_7__.toAnalyticsEvent)(response, { maxPayloadBytes: 512, allowJsonish: true });
23319
23319
  if (event.ok === false) {
23320
23320
  console.warn("Invalid AnalyticsEvent:", event.error, response);
23321
23321
  return;
@@ -23326,7 +23326,7 @@ class ArcwareApplication extends _epicgames_ps_lib_pixelstreamingfrontend_ui_ue5
23326
23326
  var _b;
23327
23327
  let msg;
23328
23328
  try {
23329
- msg = (0,_features_ArcwareFileTransferUtil__WEBPACK_IMPORTED_MODULE_12__.parseControl)(response, _features_ArcwareFileTransferUtil__WEBPACK_IMPORTED_MODULE_12__.ZFileTransfer);
23329
+ msg = (0,_features_ArcwareFileTransferUtil__WEBPACK_IMPORTED_MODULE_8__.parseControl)(response, _features_ArcwareFileTransferUtil__WEBPACK_IMPORTED_MODULE_8__.ZFileTransfer);
23330
23330
  }
23331
23331
  catch (e) {
23332
23332
  console.warn("Invalid control message:", e);
@@ -23335,8 +23335,8 @@ class ArcwareApplication extends _epicgames_ps_lib_pixelstreamingfrontend_ui_ue5
23335
23335
  const file = (_b = this.webRtcController) === null || _b === void 0 ? void 0 : _b.file;
23336
23336
  if (!file || !file.data || !file.mimetype)
23337
23337
  return;
23338
- const ext = (0,_features_common__WEBPACK_IMPORTED_MODULE_13__.extFromMime)(file.mimetype);
23339
- const base = msg.filename && msg.filename.trim() ? (0,_features_common__WEBPACK_IMPORTED_MODULE_13__.sanitizeFilename)(msg.filename) : (0,_features_common__WEBPACK_IMPORTED_MODULE_13__.randomHash)();
23338
+ const ext = (0,_features_common__WEBPACK_IMPORTED_MODULE_9__.extFromMime)(file.mimetype);
23339
+ const base = msg.filename && msg.filename.trim() ? (0,_features_common__WEBPACK_IMPORTED_MODULE_9__.sanitizeFilename)(msg.filename) : (0,_features_common__WEBPACK_IMPORTED_MODULE_9__.randomHash)();
23340
23340
  const name = base + ext;
23341
23341
  try {
23342
23342
  // ✅ Make safe Blob parts (clone each chunk to ensure regular ArrayBuffer)
@@ -23403,21 +23403,9 @@ __webpack_require__.r(__webpack_exports__);
23403
23403
 
23404
23404
 
23405
23405
 
23406
+ _epicgames_ps_lib_pixelstreamingfrontend_ue5_5__WEBPACK_IMPORTED_MODULE_2__.Logger.InitLogging(2, false);
23406
23407
  /** Default arcware signalling endpoint. */
23407
23408
  const DefaultUrl = `wss://signalling-client.ragnarok.arcware.cloud`;
23408
- // The below Logger overrides can likely be removed as PSInfra 5.5 logger supports setting log verbosity
23409
- // and these overrides are matching the default logging behaviour anyway (except info).
23410
- /*Logger.Info = (message: string) => {
23411
- // console.info(message);
23412
- };
23413
- Logger.Warning = (message: string) => {
23414
- console.warn(message);
23415
- };
23416
- Logger.Error = (message: string) => {
23417
- if (message?.startsWith("unhandled Stat Type")) return;
23418
- console.error(message);
23419
- };*/
23420
- _epicgames_ps_lib_pixelstreamingfrontend_ue5_5__WEBPACK_IMPORTED_MODULE_2__.Logger.InitLogging(2, false);
23421
23409
  function deepEqual(a, b) {
23422
23410
  try {
23423
23411
  return JSON.stringify(a) === JSON.stringify(b);
@@ -23474,7 +23462,7 @@ class ArcwareConfig extends _epicgames_ps_lib_pixelstreamingfrontend_ue5_5__WEBP
23474
23462
  if (!config.initialSettings.ss)
23475
23463
  config.initialSettings.ss = DefaultUrl;
23476
23464
  super(config);
23477
- this.VERSION = "1.3.31";
23465
+ this.VERSION = "1.3.33";
23478
23466
  this.whiteLabellingChanged = new _domain_EventHandler__WEBPACK_IMPORTED_MODULE_8__.EventHandler();
23479
23467
  this.signallingWlURL = "https://signalling-client.arcware.cloud/whiteLabel/";
23480
23468
  if (config.envName) {
@@ -23709,19 +23697,27 @@ __webpack_require__.r(__webpack_exports__);
23709
23697
  /* harmony export */ WebsocketState: () => (/* binding */ WebsocketState)
23710
23698
  /* harmony export */ });
23711
23699
  /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1635);
23712
- /* harmony import */ var _shared_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5715);
23713
- /* harmony import */ var _epicgames_ps_lib_pixelstreamingfrontend_ue5_5__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(948);
23714
- /* harmony import */ var _epicgames_ps_lib_pixelstreamingfrontend_ue5_5__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(223);
23715
- /* harmony import */ var _epicgames_ps_lib_pixelstreamingfrontend_ue5_5__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(9307);
23716
- /* harmony import */ var _ApplyUrlHack__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(9601);
23717
- /* harmony import */ var _domain_EventHandler__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(3916);
23718
- /* harmony import */ var _domain_Stats__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(6393);
23719
- /* harmony import */ var _domain_debounce__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(4975);
23720
- /* harmony import */ var _ui_LoveLetters__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(8246);
23721
- /* harmony import */ var _ui_ArcwareLogoLoader__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(8418);
23722
- /* harmony import */ var _ui_MicrophoneOverlay__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(9507);
23723
- /* harmony import */ var _features_DiagnosticsCollector__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(842);
23724
- /* harmony import */ var _features_common__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(8216);
23700
+ /* harmony import */ var _shared_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1142);
23701
+ /* harmony import */ var _shared_index__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(6770);
23702
+ /* harmony import */ var _shared_index__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(8237);
23703
+ /* harmony import */ var _shared_index__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(1687);
23704
+ /* harmony import */ var _shared_index__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(3450);
23705
+ /* harmony import */ var _shared_index__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(3407);
23706
+ /* harmony import */ var _shared_index__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(1704);
23707
+ /* harmony import */ var _shared_index__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(8858);
23708
+ /* harmony import */ var _shared_index__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(3020);
23709
+ /* harmony import */ var _epicgames_ps_lib_pixelstreamingfrontend_ue5_5__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(948);
23710
+ /* harmony import */ var _epicgames_ps_lib_pixelstreamingfrontend_ue5_5__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(223);
23711
+ /* harmony import */ var _epicgames_ps_lib_pixelstreamingfrontend_ue5_5__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(9307);
23712
+ /* harmony import */ var _ApplyUrlHack__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(9601);
23713
+ /* harmony import */ var _domain_EventHandler__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(3916);
23714
+ /* harmony import */ var _domain_Stats__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(6393);
23715
+ /* harmony import */ var _domain_debounce__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(4975);
23716
+ /* harmony import */ var _ui_LoveLetters__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(8246);
23717
+ /* harmony import */ var _ui_ArcwareLogoLoader__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(8418);
23718
+ /* harmony import */ var _ui_MicrophoneOverlay__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(9507);
23719
+ /* harmony import */ var _features_DiagnosticsCollector__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(842);
23720
+ /* harmony import */ var _features_common__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(8216);
23725
23721
 
23726
23722
 
23727
23723
 
@@ -23745,7 +23741,7 @@ var WebsocketState;
23745
23741
  // The connection is closed or couldn't be opened.
23746
23742
  WebsocketState[WebsocketState["CLOSED"] = 3] = "CLOSED";
23747
23743
  })(WebsocketState || (WebsocketState = {}));
23748
- class ArcwarePixelStreaming extends _epicgames_ps_lib_pixelstreamingfrontend_ue5_5__WEBPACK_IMPORTED_MODULE_4__.PixelStreaming {
23744
+ class ArcwarePixelStreaming extends _epicgames_ps_lib_pixelstreamingfrontend_ue5_5__WEBPACK_IMPORTED_MODULE_12__.PixelStreaming {
23749
23745
  resetInitGuardsAndHooks() {
23750
23746
  this.videoInitializedSent = false;
23751
23747
  this._postInitSideEffectsDone = false;
@@ -23805,7 +23801,7 @@ class ArcwarePixelStreaming extends _epicgames_ps_lib_pixelstreamingfrontend_ue5
23805
23801
  const ws = current.webSocket;
23806
23802
  if (ws && !this._onWsClose) {
23807
23803
  this._onWsClose = (evt) => {
23808
- _domain_EventHandler__WEBPACK_IMPORTED_MODULE_6__.EventHandler.Emit(this.websocketOnCloseHandler, evt);
23804
+ _domain_EventHandler__WEBPACK_IMPORTED_MODULE_14__.EventHandler.Emit(this.websocketOnCloseHandler, evt);
23809
23805
  };
23810
23806
  ws.addEventListener("close", this._onWsClose);
23811
23807
  }
@@ -23825,7 +23821,7 @@ class ArcwarePixelStreaming extends _epicgames_ps_lib_pixelstreamingfrontend_ue5
23825
23821
  constructor(config, overrides) {
23826
23822
  var _a, _b;
23827
23823
  /** As soon as upstream is fixed, we got to adjust the url building process. */
23828
- (0,_ApplyUrlHack__WEBPACK_IMPORTED_MODULE_5__.ApplyUrlHack)();
23824
+ (0,_ApplyUrlHack__WEBPACK_IMPORTED_MODULE_13__.ApplyUrlHack)();
23829
23825
  super(config, overrides);
23830
23826
  this.loveLettersQueue = [];
23831
23827
  this.isProcessingQueue = false;
@@ -23836,14 +23832,14 @@ class ArcwarePixelStreaming extends _epicgames_ps_lib_pixelstreamingfrontend_ue5
23836
23832
  this._rVFCsupported = "requestVideoFrameCallback" in HTMLVideoElement.prototype;
23837
23833
  this._postInitSideEffectsDone = false;
23838
23834
  // Externalized
23839
- this.queueHandler = new _domain_EventHandler__WEBPACK_IMPORTED_MODULE_6__.EventHandler();
23840
- this.errorHandler = new _domain_EventHandler__WEBPACK_IMPORTED_MODULE_6__.EventHandler();
23841
- this.loveLetterHandler = new _domain_EventHandler__WEBPACK_IMPORTED_MODULE_6__.EventHandler();
23842
- this.sessionIdHandler = new _domain_EventHandler__WEBPACK_IMPORTED_MODULE_6__.EventHandler();
23835
+ this.queueHandler = new _domain_EventHandler__WEBPACK_IMPORTED_MODULE_14__.EventHandler();
23836
+ this.errorHandler = new _domain_EventHandler__WEBPACK_IMPORTED_MODULE_14__.EventHandler();
23837
+ this.loveLetterHandler = new _domain_EventHandler__WEBPACK_IMPORTED_MODULE_14__.EventHandler();
23838
+ this.sessionIdHandler = new _domain_EventHandler__WEBPACK_IMPORTED_MODULE_14__.EventHandler();
23843
23839
  /** VideoInitialized (native Epic event) */
23844
- this.videoInitializedHandler = new _domain_EventHandler__WEBPACK_IMPORTED_MODULE_6__.EventHandler();
23840
+ this.videoInitializedHandler = new _domain_EventHandler__WEBPACK_IMPORTED_MODULE_14__.EventHandler();
23845
23841
  // Internal
23846
- this.websocketOnCloseHandler = new _domain_EventHandler__WEBPACK_IMPORTED_MODULE_6__.EventHandler();
23842
+ this.websocketOnCloseHandler = new _domain_EventHandler__WEBPACK_IMPORTED_MODULE_14__.EventHandler();
23847
23843
  /** Theoretically this call should be used to implement the signalling url, but this would not work at all, if config is setup for "AutoConnect=true"
23848
23844
  * Instead we use ApplyUrlHack();
23849
23845
  */
@@ -23896,8 +23892,8 @@ class ArcwarePixelStreaming extends _epicgames_ps_lib_pixelstreamingfrontend_ue5
23896
23892
  }))();
23897
23893
  }
23898
23894
  this.loveLettersList = [];
23899
- this.microphoneOverlay = new _ui_MicrophoneOverlay__WEBPACK_IMPORTED_MODULE_11__.MicrophoneOverlay(this);
23900
- this.diagnosticsCollector = new _features_DiagnosticsCollector__WEBPACK_IMPORTED_MODULE_12__.DiagnosticsCollector({
23895
+ this.microphoneOverlay = new _ui_MicrophoneOverlay__WEBPACK_IMPORTED_MODULE_19__.MicrophoneOverlay(this);
23896
+ this.diagnosticsCollector = new _features_DiagnosticsCollector__WEBPACK_IMPORTED_MODULE_20__.DiagnosticsCollector({
23901
23897
  enableBandwidthProbe: false
23902
23898
  });
23903
23899
  // after super(...) and once webRtcController is available
@@ -23909,16 +23905,16 @@ class ArcwarePixelStreaming extends _epicgames_ps_lib_pixelstreamingfrontend_ue5
23909
23905
  // Bind the event listener function to the class instance
23910
23906
  this.handleResolutionChange = this.handleResolutionChange.bind(this);
23911
23907
  // Register message handlers.
23912
- this.addMessageHandler("letter", _shared_index__WEBPACK_IMPORTED_MODULE_1__.Messages.ZLoveLetter, this.onLoveLetter);
23913
- this.addMessageHandler("streamInfo", _shared_index__WEBPACK_IMPORTED_MODULE_1__.Messages.ZStreamInfo, this.onStreamInfo);
23914
- this.addMessageHandler("sessionId", _shared_index__WEBPACK_IMPORTED_MODULE_1__.Messages.ZSessionId, this.onSessionId);
23915
- this.addMessageHandler("error", _shared_index__WEBPACK_IMPORTED_MODULE_1__.Messages.ZErrorMessage, this.onError);
23916
- this.addMessageHandler("ping", _shared_index__WEBPACK_IMPORTED_MODULE_1__.Messages.ZPing, this.onPing);
23917
- this.addMessageHandler("queue", _shared_index__WEBPACK_IMPORTED_MODULE_1__.Messages.ZQueue, this.onQueue);
23918
- this.addMessageHandler("version", _shared_index__WEBPACK_IMPORTED_MODULE_1__.Messages.ZVersion, this.onVersion);
23919
- this.addMessageHandler("render", _shared_index__WEBPACK_IMPORTED_MODULE_1__.Messages.ZRender, this.onRender);
23908
+ this.addMessageHandler("letter", _shared_index__WEBPACK_IMPORTED_MODULE_1__.ZLoveLetter, this.onLoveLetter);
23909
+ this.addMessageHandler("streamInfo", _shared_index__WEBPACK_IMPORTED_MODULE_2__.ZStreamInfo, this.onStreamInfo);
23910
+ this.addMessageHandler("sessionId", _shared_index__WEBPACK_IMPORTED_MODULE_3__.ZSessionId, this.onSessionId);
23911
+ this.addMessageHandler("error", _shared_index__WEBPACK_IMPORTED_MODULE_4__.ZErrorMessage, this.onError);
23912
+ this.addMessageHandler("ping", _shared_index__WEBPACK_IMPORTED_MODULE_5__.ZPing, this.onPing);
23913
+ this.addMessageHandler("queue", _shared_index__WEBPACK_IMPORTED_MODULE_6__.ZQueue, this.onQueue);
23914
+ this.addMessageHandler("version", _shared_index__WEBPACK_IMPORTED_MODULE_7__.ZVersion, this.onVersion);
23915
+ this.addMessageHandler("render", _shared_index__WEBPACK_IMPORTED_MODULE_8__.ZRender, this.onRender);
23920
23916
  // Create a debounced version of the handleResolutionChange function
23921
- const debouncedResolutionChange = (0,_domain_debounce__WEBPACK_IMPORTED_MODULE_8__["default"])(() => {
23917
+ const debouncedResolutionChange = (0,_domain_debounce__WEBPACK_IMPORTED_MODULE_16__["default"])(() => {
23922
23918
  this.handleResolutionChange();
23923
23919
  }, 0);
23924
23920
  // Register event listeners.
@@ -23969,7 +23965,7 @@ class ArcwarePixelStreaming extends _epicgames_ps_lib_pixelstreamingfrontend_ue5
23969
23965
  diagnostics = yield this.diagnosticsCollector.collect();
23970
23966
  }
23971
23967
  catch (e) {
23972
- (_a = _epicgames_ps_lib_pixelstreamingfrontend_ue5_5__WEBPACK_IMPORTED_MODULE_2__.Logger.Warning) === null || _a === void 0 ? void 0 : _a.call(_epicgames_ps_lib_pixelstreamingfrontend_ue5_5__WEBPACK_IMPORTED_MODULE_2__.Logger, `Diagnostics collection failed: ${(_b = e === null || e === void 0 ? void 0 : e.message) !== null && _b !== void 0 ? _b : e}`);
23968
+ (_a = _epicgames_ps_lib_pixelstreamingfrontend_ue5_5__WEBPACK_IMPORTED_MODULE_10__.Logger.Warning) === null || _a === void 0 ? void 0 : _a.call(_epicgames_ps_lib_pixelstreamingfrontend_ue5_5__WEBPACK_IMPORTED_MODULE_10__.Logger, `Diagnostics collection failed: ${(_b = e === null || e === void 0 ? void 0 : e.message) !== null && _b !== void 0 ? _b : e}`);
23973
23969
  }
23974
23970
  finally {
23975
23971
  const payload = {
@@ -24051,13 +24047,13 @@ class ArcwarePixelStreaming extends _epicgames_ps_lib_pixelstreamingfrontend_ue5
24051
24047
  /** Handle incoming configurations. */
24052
24048
  onStreamInfo(streamInfo) {
24053
24049
  var _a, _b, _c, _d;
24054
- _epicgames_ps_lib_pixelstreamingfrontend_ue5_5__WEBPACK_IMPORTED_MODULE_2__.Logger.Info(`StreamInfo received.`);
24050
+ _epicgames_ps_lib_pixelstreamingfrontend_ue5_5__WEBPACK_IMPORTED_MODULE_10__.Logger.Info(`StreamInfo received.`);
24055
24051
  this.streamInfo = streamInfo;
24056
24052
  if (!((_b = (_a = this.config) === null || _a === void 0 ? void 0 : _a.settings) === null || _b === void 0 ? void 0 : _b["do-not-eval-streamInfo"])) {
24057
24053
  const { afk } = streamInfo.streamInfo;
24058
24054
  if (afk) {
24059
- this.config.setFlagEnabled(_epicgames_ps_lib_pixelstreamingfrontend_ue5_5__WEBPACK_IMPORTED_MODULE_3__.Flags.AFKDetection, afk.enabled);
24060
- this.config.setNumericSetting(_epicgames_ps_lib_pixelstreamingfrontend_ue5_5__WEBPACK_IMPORTED_MODULE_3__.NumericParameters.AFKTimeoutSecs, afk.warn + afk.error);
24055
+ this.config.setFlagEnabled(_epicgames_ps_lib_pixelstreamingfrontend_ue5_5__WEBPACK_IMPORTED_MODULE_11__.Flags.AFKDetection, afk.enabled);
24056
+ this.config.setNumericSetting(_epicgames_ps_lib_pixelstreamingfrontend_ue5_5__WEBPACK_IMPORTED_MODULE_11__.NumericParameters.AFKTimeoutSecs, afk.warn + afk.error);
24061
24057
  // Hack
24062
24058
  const { afkController } = this.webRtcController;
24063
24059
  afkController.countDown = afk.action;
@@ -24077,12 +24073,12 @@ class ArcwarePixelStreaming extends _epicgames_ps_lib_pixelstreamingfrontend_ue5
24077
24073
  this.injectCustomUI();
24078
24074
  }
24079
24075
  onQueue(message) {
24080
- _epicgames_ps_lib_pixelstreamingfrontend_ue5_5__WEBPACK_IMPORTED_MODULE_2__.Logger.Info(`QueueInfo received.`);
24081
- _domain_EventHandler__WEBPACK_IMPORTED_MODULE_6__.EventHandler.Emit(this.queueHandler, message);
24076
+ _epicgames_ps_lib_pixelstreamingfrontend_ue5_5__WEBPACK_IMPORTED_MODULE_10__.Logger.Info(`QueueInfo received.`);
24077
+ _domain_EventHandler__WEBPACK_IMPORTED_MODULE_14__.EventHandler.Emit(this.queueHandler, message);
24082
24078
  }
24083
24079
  onError(error) {
24084
24080
  var _a, _b;
24085
- _epicgames_ps_lib_pixelstreamingfrontend_ue5_5__WEBPACK_IMPORTED_MODULE_2__.Logger.Error(error.type);
24081
+ _epicgames_ps_lib_pixelstreamingfrontend_ue5_5__WEBPACK_IMPORTED_MODULE_10__.Logger.Error(error.type);
24086
24082
  console.log(error);
24087
24083
  const retryable = this.isRetryableClose(error);
24088
24084
  if (!retryable) {
@@ -24098,18 +24094,18 @@ class ArcwarePixelStreaming extends _epicgames_ps_lib_pixelstreamingfrontend_ue5
24098
24094
  // Leave your existing auto-retry behavior for transient errors
24099
24095
  this.startTransportWatcher(); // (in case it was stopped)
24100
24096
  }
24101
- _domain_EventHandler__WEBPACK_IMPORTED_MODULE_6__.EventHandler.Emit(this.errorHandler, error);
24097
+ _domain_EventHandler__WEBPACK_IMPORTED_MODULE_14__.EventHandler.Emit(this.errorHandler, error);
24102
24098
  }
24103
24099
  onLoveLetter(loveLetter) {
24104
24100
  if (this.config.settings.loveLetterLogging)
24105
24101
  console.info(loveLetter.reason);
24106
- _domain_EventHandler__WEBPACK_IMPORTED_MODULE_6__.EventHandler.Emit(this.loveLetterHandler, loveLetter);
24102
+ _domain_EventHandler__WEBPACK_IMPORTED_MODULE_14__.EventHandler.Emit(this.loveLetterHandler, loveLetter);
24107
24103
  this.pushLetter(loveLetter.reason);
24108
24104
  }
24109
24105
  onSessionId(message) {
24110
- _epicgames_ps_lib_pixelstreamingfrontend_ue5_5__WEBPACK_IMPORTED_MODULE_2__.Logger.Info(message.sessionId);
24106
+ _epicgames_ps_lib_pixelstreamingfrontend_ue5_5__WEBPACK_IMPORTED_MODULE_10__.Logger.Info(message.sessionId);
24111
24107
  this.session.set(message.sessionId);
24112
- _domain_EventHandler__WEBPACK_IMPORTED_MODULE_6__.EventHandler.Emit(this.sessionIdHandler, message.sessionId);
24108
+ _domain_EventHandler__WEBPACK_IMPORTED_MODULE_14__.EventHandler.Emit(this.sessionIdHandler, message.sessionId);
24113
24109
  }
24114
24110
  sendVideoInitializedOnce() {
24115
24111
  if (this.videoInitializedSent)
@@ -24119,7 +24115,7 @@ class ArcwarePixelStreaming extends _epicgames_ps_lib_pixelstreamingfrontend_ue5
24119
24115
  this.cancelFirstRenderedFrameHook();
24120
24116
  this.send({ type: "onVideoInitialized" });
24121
24117
  if (this.videoInitializedHandler) {
24122
- _domain_EventHandler__WEBPACK_IMPORTED_MODULE_6__.EventHandler.Emit(this.videoInitializedHandler, undefined);
24118
+ _domain_EventHandler__WEBPACK_IMPORTED_MODULE_14__.EventHandler.Emit(this.videoInitializedHandler, undefined);
24123
24119
  }
24124
24120
  }
24125
24121
  runPostInitSideEffectsOnce() {
@@ -24235,7 +24231,7 @@ class ArcwarePixelStreaming extends _epicgames_ps_lib_pixelstreamingfrontend_ue5
24235
24231
  else {
24236
24232
  const parsedError = parsed;
24237
24233
  const error = new Error(`Unexpected message content. Event:'${type}', ZodError: ${parsedError.error.message}`);
24238
- _epicgames_ps_lib_pixelstreamingfrontend_ue5_5__WEBPACK_IMPORTED_MODULE_2__.Logger.Error(error.message);
24234
+ _epicgames_ps_lib_pixelstreamingfrontend_ue5_5__WEBPACK_IMPORTED_MODULE_10__.Logger.Error(error.message);
24239
24235
  }
24240
24236
  if (type === "error") {
24241
24237
  // this.disconnect();
@@ -24248,18 +24244,18 @@ class ArcwarePixelStreaming extends _epicgames_ps_lib_pixelstreamingfrontend_ue5
24248
24244
  * * * * * *
24249
24245
  */
24250
24246
  sendStats(stats) {
24251
- const message = { type: "stats", stats: (0,_domain_Stats__WEBPACK_IMPORTED_MODULE_7__.Stats)(stats) };
24247
+ const message = { type: "stats", stats: (0,_domain_Stats__WEBPACK_IMPORTED_MODULE_15__.Stats)(stats) };
24252
24248
  this.send(message);
24253
24249
  }
24254
24250
  send(a, b) {
24255
24251
  var _a, _b;
24256
24252
  const msg = typeof a === "string" ? Object.assign({ type: a }, (b !== null && b !== void 0 ? b : {})) : a;
24257
24253
  // Optional zod validation if you have schemas for this type
24258
- const schema = (_a = _shared_index__WEBPACK_IMPORTED_MODULE_1__.Messages.Send) === null || _a === void 0 ? void 0 : _a[msg.type];
24254
+ const schema = (_a = _shared_index__WEBPACK_IMPORTED_MODULE_9__.Send) === null || _a === void 0 ? void 0 : _a[msg.type];
24259
24255
  if (schema) {
24260
24256
  const result = schema.safeParse(msg);
24261
24257
  if (!result.success) {
24262
- (_b = _epicgames_ps_lib_pixelstreamingfrontend_ue5_5__WEBPACK_IMPORTED_MODULE_2__.Logger.Error) === null || _b === void 0 ? void 0 : _b.call(_epicgames_ps_lib_pixelstreamingfrontend_ue5_5__WEBPACK_IMPORTED_MODULE_2__.Logger, `Send validation failed for ${msg.type}: ${result.error}`);
24258
+ (_b = _epicgames_ps_lib_pixelstreamingfrontend_ue5_5__WEBPACK_IMPORTED_MODULE_10__.Logger.Error) === null || _b === void 0 ? void 0 : _b.call(_epicgames_ps_lib_pixelstreamingfrontend_ue5_5__WEBPACK_IMPORTED_MODULE_10__.Logger, `Send validation failed for ${msg.type}: ${result.error}`);
24263
24259
  return;
24264
24260
  }
24265
24261
  this._dispatchOrBuffer(result.data);
@@ -24403,7 +24399,7 @@ class ArcwarePixelStreaming extends _epicgames_ps_lib_pixelstreamingfrontend_ue5
24403
24399
  }
24404
24400
  initLoveLettersContainer() {
24405
24401
  var _a;
24406
- const logoLoader = new _ui_ArcwareLogoLoader__WEBPACK_IMPORTED_MODULE_10__.ArcwareLogoLoader();
24402
+ const logoLoader = new _ui_ArcwareLogoLoader__WEBPACK_IMPORTED_MODULE_18__.ArcwareLogoLoader();
24407
24403
  this.logoLoader = logoLoader;
24408
24404
  if (!this.loveLettersContainer) {
24409
24405
  const loveLettersContainer = document.createElement("div");
@@ -24443,7 +24439,7 @@ class ArcwarePixelStreaming extends _epicgames_ps_lib_pixelstreamingfrontend_ue5
24443
24439
  if (letter !== undefined) {
24444
24440
  const formattedLoveLetter = letter === null || letter === void 0 ? void 0 : letter.replace(/LL: |\.$/g, "");
24445
24441
  (_a = this === null || this === void 0 ? void 0 : this.loveLettersList) === null || _a === void 0 ? void 0 : _a.push(formattedLoveLetter);
24446
- const loveLettersBox = new _ui_LoveLetters__WEBPACK_IMPORTED_MODULE_9__.LoveLetters();
24442
+ const loveLettersBox = new _ui_LoveLetters__WEBPACK_IMPORTED_MODULE_17__.LoveLetters();
24447
24443
  loveLettersBox === null || loveLettersBox === void 0 ? void 0 : loveLettersBox.addLetter(formattedLoveLetter, (_b = this === null || this === void 0 ? void 0 : this.loveLettersList) === null || _b === void 0 ? void 0 : _b.length);
24448
24444
  setTimeout(() => {
24449
24445
  this.processLoveLetterQueue();
@@ -24486,7 +24482,7 @@ class ArcwarePixelStreaming extends _epicgames_ps_lib_pixelstreamingfrontend_ue5
24486
24482
  }
24487
24483
  toggleMic(enable, isDefault) {
24488
24484
  var _a, _b;
24489
- (_a = this === null || this === void 0 ? void 0 : this.config) === null || _a === void 0 ? void 0 : _a.setFlagEnabled(_epicgames_ps_lib_pixelstreamingfrontend_ue5_5__WEBPACK_IMPORTED_MODULE_3__.Flags.UseMic, enable);
24485
+ (_a = this === null || this === void 0 ? void 0 : this.config) === null || _a === void 0 ? void 0 : _a.setFlagEnabled(_epicgames_ps_lib_pixelstreamingfrontend_ue5_5__WEBPACK_IMPORTED_MODULE_11__.Flags.UseMic, enable);
24490
24486
  if (!isDefault) {
24491
24487
  (_b = this === null || this === void 0 ? void 0 : this.microphoneOverlay) === null || _b === void 0 ? void 0 : _b.toggleMessage(enable);
24492
24488
  setTimeout(() => { var _a; return (_a = this === null || this === void 0 ? void 0 : this.microphoneOverlay) === null || _a === void 0 ? void 0 : _a.toggleVisibility(true); }, 200);
@@ -24515,7 +24511,7 @@ class ArcwarePixelStreaming extends _epicgames_ps_lib_pixelstreamingfrontend_ue5
24515
24511
  removeXRIconIfDisabled() {
24516
24512
  var _a, _b, _c, _d, _e;
24517
24513
  if (!((_b = (_a = this === null || this === void 0 ? void 0 : this.config) === null || _a === void 0 ? void 0 : _a.initialSettings) === null || _b === void 0 ? void 0 : _b.XRControllerInput)) {
24518
- (_c = this === null || this === void 0 ? void 0 : this.config) === null || _c === void 0 ? void 0 : _c.setFlagEnabled(_epicgames_ps_lib_pixelstreamingfrontend_ue5_5__WEBPACK_IMPORTED_MODULE_3__.Flags.XRControllerInput, false);
24514
+ (_c = this === null || this === void 0 ? void 0 : this.config) === null || _c === void 0 ? void 0 : _c.setFlagEnabled(_epicgames_ps_lib_pixelstreamingfrontend_ue5_5__WEBPACK_IMPORTED_MODULE_11__.Flags.XRControllerInput, false);
24519
24515
  if (this.videoElementParent) {
24520
24516
  if ((_d = this === null || this === void 0 ? void 0 : this.videoElementParent) === null || _d === void 0 ? void 0 : _d.parentElement) {
24521
24517
  const xrBtn = (_e = this === null || this === void 0 ? void 0 : this.videoElementParent) === null || _e === void 0 ? void 0 : _e.parentElement.querySelector("#xrBtn");
@@ -24525,7 +24521,7 @@ class ArcwarePixelStreaming extends _epicgames_ps_lib_pixelstreamingfrontend_ue5
24525
24521
  }
24526
24522
  }
24527
24523
  injectCustomUI() {
24528
- (0,_features_common__WEBPACK_IMPORTED_MODULE_13__.waitForElement)("#stream-ui").then((el) => {
24524
+ (0,_features_common__WEBPACK_IMPORTED_MODULE_21__.waitForElement)("#stream-ui").then((el) => {
24529
24525
  var _a;
24530
24526
  const videoElementParent = (_a = this === null || this === void 0 ? void 0 : this.videoElementParent) === null || _a === void 0 ? void 0 : _a.parentElement;
24531
24527
  if (videoElementParent) {
@@ -24704,8 +24700,10 @@ __webpack_require__.r(__webpack_exports__);
24704
24700
  /* harmony export */ ArcwareSettingsSchema: () => (/* binding */ ArcwareSettingsSchema)
24705
24701
  /* harmony export */ });
24706
24702
  /* harmony import */ var zod__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2080);
24707
- /* harmony import */ var _shared_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5715);
24708
- /* harmony import */ var _features_ZWhiteLabel__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1938);
24703
+ /* harmony import */ var _shared_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1687);
24704
+ /* harmony import */ var _shared_index__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(3407);
24705
+ /* harmony import */ var _shared_index__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(1142);
24706
+ /* harmony import */ var _features_ZWhiteLabel__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(1938);
24709
24707
 
24710
24708
 
24711
24709
 
@@ -24722,14 +24720,14 @@ const ArcwareSettingsSchema = zod__WEBPACK_IMPORTED_MODULE_0__.object({
24722
24720
  // /** Configure DirectFlow Token. */
24723
24721
  // directFlow: z.string().optional(),
24724
24722
  /** Handler for server side error messages. */
24725
- errorHandler: zod__WEBPACK_IMPORTED_MODULE_0__["function"]().args(_shared_index__WEBPACK_IMPORTED_MODULE_1__.Messages.ZErrorMessage).returns(zod__WEBPACK_IMPORTED_MODULE_0__["void"]()).optional(),
24723
+ errorHandler: zod__WEBPACK_IMPORTED_MODULE_0__["function"]().args(_shared_index__WEBPACK_IMPORTED_MODULE_1__.ZErrorMessage).returns(zod__WEBPACK_IMPORTED_MODULE_0__["void"]()).optional(),
24726
24724
  /** Handler for queue events. */
24727
- queueHandler: zod__WEBPACK_IMPORTED_MODULE_0__["function"]().args(_shared_index__WEBPACK_IMPORTED_MODULE_1__.Messages.ZQueue).returns(zod__WEBPACK_IMPORTED_MODULE_0__["void"]()).optional(),
24725
+ queueHandler: zod__WEBPACK_IMPORTED_MODULE_0__["function"]().args(_shared_index__WEBPACK_IMPORTED_MODULE_2__.ZQueue).returns(zod__WEBPACK_IMPORTED_MODULE_0__["void"]()).optional(),
24728
24726
  /** Handler for sessionId message. */
24729
24727
  sessionIdHandler: zod__WEBPACK_IMPORTED_MODULE_0__["function"]().args(zod__WEBPACK_IMPORTED_MODULE_0__.string()).returns(zod__WEBPACK_IMPORTED_MODULE_0__["void"]()).optional(),
24730
24728
  /** Handler for love letters.
24731
24729
  * "LoveLetters" are send from backend to the SDK to state what phase the connection currently is in. */
24732
- loveLetterHandler: zod__WEBPACK_IMPORTED_MODULE_0__["function"]().args(_shared_index__WEBPACK_IMPORTED_MODULE_1__.Messages.ZLoveLetter).returns(zod__WEBPACK_IMPORTED_MODULE_0__["void"]()).optional(),
24730
+ loveLetterHandler: zod__WEBPACK_IMPORTED_MODULE_0__["function"]().args(_shared_index__WEBPACK_IMPORTED_MODULE_3__.ZLoveLetter).returns(zod__WEBPACK_IMPORTED_MODULE_0__["void"]()).optional(),
24733
24731
  /** Show or hide the fullscreen button. */
24734
24732
  fullscreenButton: zod__WEBPACK_IMPORTED_MODULE_0__.boolean().optional(),
24735
24733
  /** Show or hide the settings button. */
@@ -24764,7 +24762,7 @@ const ArcwareSettingsSchema = zod__WEBPACK_IMPORTED_MODULE_0__.object({
24764
24762
  .strict()
24765
24763
  .optional(),
24766
24764
  /** Loader customization */
24767
- whiteLabelling: _features_ZWhiteLabel__WEBPACK_IMPORTED_MODULE_2__.ZWhiteLabel.optional(),
24765
+ whiteLabelling: _features_ZWhiteLabel__WEBPACK_IMPORTED_MODULE_4__.ZWhiteLabel.optional(),
24768
24766
  fetchRemoteWhiteLabelling: zod__WEBPACK_IMPORTED_MODULE_0__.boolean().optional()
24769
24767
  });
24770
24768
 
@@ -24903,10 +24901,10 @@ __webpack_require__.r(__webpack_exports__);
24903
24901
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
24904
24902
  /* harmony export */ Stats: () => (/* binding */ Stats)
24905
24903
  /* harmony export */ });
24906
- /* harmony import */ var _shared_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5715);
24904
+ /* harmony import */ var _shared_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3195);
24907
24905
 
24908
24906
  function Stats(stats) {
24909
- const result = _shared_index__WEBPACK_IMPORTED_MODULE_0__.Messages.ZStats.shape.stats.parse({
24907
+ const result = _shared_index__WEBPACK_IMPORTED_MODULE_0__.ZStats.shape.stats.parse({
24910
24908
  /**
24911
24909
  * Other known properties.
24912
24910
  */
@@ -26952,19 +26950,6 @@ class StopIcon {
26952
26950
  }
26953
26951
 
26954
26952
 
26955
- /***/ },
26956
-
26957
- /***/ 5715
26958
- (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
26959
-
26960
- __webpack_require__.r(__webpack_exports__);
26961
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
26962
- /* harmony export */ Messages: () => (/* reexport safe */ _lib__WEBPACK_IMPORTED_MODULE_0__.Messages)
26963
- /* harmony export */ });
26964
- /* harmony import */ var _lib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9323);
26965
-
26966
-
26967
-
26968
26953
  /***/ },
26969
26954
 
26970
26955
  /***/ 1687
@@ -27442,20 +27427,6 @@ const Send = {
27442
27427
  };
27443
27428
 
27444
27429
 
27445
- /***/ },
27446
-
27447
- /***/ 9323
27448
- (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
27449
-
27450
- __webpack_require__.r(__webpack_exports__);
27451
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
27452
- /* harmony export */ Messages: () => (/* reexport module object */ _Messages__WEBPACK_IMPORTED_MODULE_0__)
27453
- /* harmony export */ });
27454
- /* harmony import */ var _Messages__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3020);
27455
-
27456
-
27457
-
27458
-
27459
27430
  /***/ },
27460
27431
 
27461
27432
  /***/ 1591
package/index.umd.cjs CHANGED
@@ -22897,13 +22897,13 @@ exports.ArcwareApplication = void 0;
22897
22897
  const tslib_1 = __webpack_require__(1635);
22898
22898
  const lib_pixelstreamingfrontend_ue5_5_1 = __webpack_require__(52);
22899
22899
  const lib_pixelstreamingfrontend_ui_ue5_5_1 = __webpack_require__(5196);
22900
+ const ArcwareEventUtil_1 = __webpack_require__(8930);
22901
+ const ArcwareFileTransferUtil_1 = __webpack_require__(7237);
22902
+ const common_1 = __webpack_require__(8216);
22900
22903
  const ArcwarePixelStreamingApplicationStyles_1 = __webpack_require__(6125);
22901
22904
  const AudioButton_1 = __webpack_require__(7305);
22902
22905
  const MicButton_1 = __webpack_require__(524);
22903
22906
  const StopButton_1 = __webpack_require__(541);
22904
- const ArcwareEventUtil_1 = __webpack_require__(8930);
22905
- const ArcwareFileTransferUtil_1 = __webpack_require__(7237);
22906
- const common_1 = __webpack_require__(8216);
22907
22907
  const DEBUG = false;
22908
22908
  const TextKeyRegex = /^(\['([a-zA-Z 0-9-_]+)'\] )/;
22909
22909
  function findElementByTextContent(root, selector) {
@@ -23401,21 +23401,9 @@ const ArcwareSettingsSchema_1 = __webpack_require__(9913);
23401
23401
  const whiteLabelling_1 = __webpack_require__(5292);
23402
23402
  const ZWhiteLabel_1 = __webpack_require__(1938);
23403
23403
  const EventHandler_1 = __webpack_require__(3916);
23404
+ lib_pixelstreamingfrontend_ue5_5_1.Logger.InitLogging(2, false);
23404
23405
  /** Default arcware signalling endpoint. */
23405
23406
  exports.DefaultUrl = `wss://signalling-client.ragnarok.arcware.cloud`;
23406
- // The below Logger overrides can likely be removed as PSInfra 5.5 logger supports setting log verbosity
23407
- // and these overrides are matching the default logging behaviour anyway (except info).
23408
- /*Logger.Info = (message: string) => {
23409
- // console.info(message);
23410
- };
23411
- Logger.Warning = (message: string) => {
23412
- console.warn(message);
23413
- };
23414
- Logger.Error = (message: string) => {
23415
- if (message?.startsWith("unhandled Stat Type")) return;
23416
- console.error(message);
23417
- };*/
23418
- lib_pixelstreamingfrontend_ue5_5_1.Logger.InitLogging(2, false);
23419
23407
  function deepEqual(a, b) {
23420
23408
  try {
23421
23409
  return JSON.stringify(a) === JSON.stringify(b);
@@ -23472,7 +23460,7 @@ class ArcwareConfig extends lib_pixelstreamingfrontend_ue5_5_1.Config {
23472
23460
  if (!config.initialSettings.ss)
23473
23461
  config.initialSettings.ss = exports.DefaultUrl;
23474
23462
  super(config);
23475
- this.VERSION = "1.3.31";
23463
+ this.VERSION = "1.3.33";
23476
23464
  this.whiteLabellingChanged = new EventHandler_1.EventHandler();
23477
23465
  this.signallingWlURL = "https://signalling-client.arcware.cloud/whiteLabel/";
23478
23466
  if (config.envName) {
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.31",
4
+ "version": "1.3.33",
5
5
  "type": "commonjs",
6
6
  "main": "./index.cjs",
7
7
  "types": "./types/index.d.ts",
@@ -14,6 +14,7 @@
14
14
  },
15
15
  "./umd": "./index.umd.cjs"
16
16
  },
17
+ "sideEffects": false,
17
18
  "keywords": [
18
19
  "arcware",
19
20
  "arcware cloud",
@@ -29,7 +29,7 @@ export declare class ArcwareConfig extends Config {
29
29
  readonly session: Session;
30
30
  readonly settings: Settings;
31
31
  private _initialSettings;
32
- readonly VERSION = "1.3.31";
32
+ readonly VERSION = "1.3.33";
33
33
  readonly whiteLabellingChanged: EventHandler<{
34
34
  next: WhiteLabel;
35
35
  changed: boolean;