@arcware-cloud/pixelstreaming-websdk 1.3.19 → 1.3.21

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
@@ -80,6 +80,10 @@ For more detailed examples and advanced usage, please refer to our documentation
80
80
 
81
81
  # Changelog
82
82
 
83
+ ### 1.3.20
84
+
85
+ - polished types a bit and aligned with documentation
86
+
83
87
  ### 1.3.19
84
88
 
85
89
  - added new configuration parameters to optionally hide AfkOverlay and to hide love letters box
package/index.cjs.js CHANGED
@@ -23452,7 +23452,7 @@ class ArcwareConfig extends lib_pixelstreamingfrontend_ue5_5_1.Config {
23452
23452
  if (!config.initialSettings.ss)
23453
23453
  config.initialSettings.ss = exports.DefaultUrl;
23454
23454
  super(config);
23455
- this.VERSION = "1.3.19";
23455
+ this.VERSION = "1.3.21";
23456
23456
  this.whiteLabellingChanged = new EventHandler_1.EventHandler();
23457
23457
  this.signallingWlURL = "https://signalling-client.arcware.cloud/whiteLabel/";
23458
23458
  if (config.envName) {
@@ -23469,11 +23469,16 @@ class ArcwareConfig extends lib_pixelstreamingfrontend_ue5_5_1.Config {
23469
23469
  if (this.useUrlParams) {
23470
23470
  // Get the query string from URL
23471
23471
  const qs = new URLSearchParams(window.location.search);
23472
- if (qs.has("wl") && qs.get("wl") !== "") {
23473
- // Retrieve image loading from there
23474
- const wlParsed = this.useUrlParams ? (0, whiteLabelling_1.readWhiteLabelFromQuery)(qs) : undefined; // respect useUrlParams
23475
- if (wlParsed) {
23476
- this.settings.whiteLabelling = Object.assign(Object.assign({}, ((_c = this.settings.whiteLabelling) !== null && _c !== void 0 ? _c : {})), wlParsed);
23472
+ if (qs.has("wl")) {
23473
+ if (qs.get("wl") !== "") {
23474
+ // Retrieve image loading from there
23475
+ const wlParsed = this.useUrlParams ? (0, whiteLabelling_1.readWhiteLabelFromQuery)(qs) : undefined; // respect useUrlParams
23476
+ if (wlParsed) {
23477
+ this.settings.whiteLabelling = Object.assign(Object.assign({}, ((_c = this.settings.whiteLabelling) !== null && _c !== void 0 ? _c : {})), wlParsed);
23478
+ }
23479
+ }
23480
+ else {
23481
+ this.settings.fetchRemoteWhiteLabelling = true;
23477
23482
  }
23478
23483
  }
23479
23484
  this.settings.infoButton = qs.has("i") || qs.has("info");
@@ -23482,9 +23487,13 @@ class ArcwareConfig extends lib_pixelstreamingfrontend_ue5_5_1.Config {
23482
23487
  getWhiteLabelling(ShareId) {
23483
23488
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
23484
23489
  const qs = new URLSearchParams(window.location.search);
23485
- // Only fetch when wl param is present and empty (as before)
23486
- if (!(qs.has("wl") && qs.get("wl") === ""))
23490
+ if (qs.get("wl") !== "") {
23491
+ EventHandler_1.EventHandler.Emit(this.whiteLabellingChanged, {
23492
+ next: this.settings.whiteLabelling,
23493
+ changed: false
23494
+ });
23487
23495
  return undefined;
23496
+ }
23488
23497
  // Build final URL safely (trim trailing slashes, encode ShareId)
23489
23498
  const base = this.signallingWlURL.replace(/\/+$/, "");
23490
23499
  const requestUrl = `${base}/${encodeURIComponent(ShareId)}`;
@@ -23600,8 +23609,9 @@ let globalConfig = null;
23600
23609
  let globalApplication = null;
23601
23610
  let previousShareId = null;
23602
23611
  let previousProjectId = null;
23603
- function ArcwareInit({ shareId, projectId }, configuration, forceRefresh = false) {
23612
+ function ArcwareInit(ids, configuration, forceRefresh = false) {
23604
23613
  var _a;
23614
+ const { shareId, projectId } = ids;
23605
23615
  if (shareId && !shareId.startsWith("share-"))
23606
23616
  throw new Error(`Unexpected shareId-format: '${shareId}'.`);
23607
23617
  if (shareId && previousShareId !== shareId) {
@@ -23632,9 +23642,12 @@ function ArcwareInit({ shareId, projectId }, configuration, forceRefresh = false
23632
23642
  }
23633
23643
  const Config = new ArcwareConfig_1.ArcwareConfig({
23634
23644
  useUrlParams: (configuration === null || configuration === void 0 ? void 0 : configuration.useUrlParams) === true,
23635
- initialSettings: Object.assign({ ss: ArcwareConfig_1.DefaultUrl, AutoConnect: false, StartVideoMuted: true, AutoPlayVideo: true, KeyboardInput: true, MouseInput: true, GamepadInput: true, TouchInput: true, XRControllerInput: true, UseMic: true, SuppressBrowserKeys: true, FakeMouseWithTouches: false, ForceMonoAudio: false, HoveringMouse: true }, configuration === null || configuration === void 0 ? void 0 : configuration.initialSettings),
23645
+ initialSettings: Object.assign({ ss: ArcwareConfig_1.DefaultUrl, AutoConnect: false, AutoPlayVideo: true, HoveringMouse: true, ForceMonoAudio: false, FakeMouseWithTouches: false, StartVideoMuted: true, SuppressBrowserKeys: true, UseMic: true, KeyboardInput: true, MouseInput: true, TouchInput: true, GamepadInput: true, XRControllerInput: true }, configuration === null || configuration === void 0 ? void 0 : configuration.initialSettings),
23636
23646
  settings: Object.assign({ shareId,
23637
- projectId, fullscreenButton: true, audioButton: true, stopButton: false, infoButton: false, micButton: false, settingsButton: false, connectionStrengthIcon: false, connectionIdentifierLoggingDisabled: undefined, errorHandler: undefined, loveLetterHandler: undefined, loveLetterLogging: undefined, queueHandler: undefined, sessionIdHandler: undefined, startHeight: undefined, startWidth: undefined, orientationZoom: undefined, whiteLabelling: {
23647
+ projectId, fullscreenButton: true, audioButton: true, stopButton: false, infoButton: false, micButton: false, settingsButton: false, connectionStrengthIcon: false, errorHandler: undefined, loveLetterHandler: undefined, loveLetterLogging: undefined, queueHandler: undefined, sessionIdHandler: undefined, startHeight: undefined, startWidth: undefined, orientationZoom: {
23648
+ landscape: 0,
23649
+ portrait: 0
23650
+ }, whiteLabelling: {
23638
23651
  splashScreenUrl: undefined,
23639
23652
  loadingIconFadeMs: undefined,
23640
23653
  loadingIconUrl: undefined,
@@ -23668,7 +23681,7 @@ exports.ArcwareInit = ArcwareInit;
23668
23681
 
23669
23682
 
23670
23683
  Object.defineProperty(exports, "__esModule", ({ value: true }));
23671
- exports.ArcwarePixelStreaming = void 0;
23684
+ exports.ArcwarePixelStreaming = exports.WebsocketState = void 0;
23672
23685
  const tslib_1 = __webpack_require__(655);
23673
23686
  const shared_pixelstreaming_websdk_1 = __webpack_require__(7910);
23674
23687
  const lib_pixelstreamingfrontend_ue5_5_1 = __webpack_require__(693);
@@ -23679,9 +23692,19 @@ const debounce_1 = __webpack_require__(9580);
23679
23692
  const LoveLetters_1 = __webpack_require__(4572);
23680
23693
  const ArcwareLogoLoader_1 = __webpack_require__(6469);
23681
23694
  const MicrophoneOverlay_1 = __webpack_require__(3613);
23682
- const ConnectionIdentifier_1 = __webpack_require__(5999);
23683
23695
  const DiagnosticsCollector_1 = __webpack_require__(8429);
23684
23696
  const common_1 = __webpack_require__(2483);
23697
+ var WebsocketState;
23698
+ (function (WebsocketState) {
23699
+ // Socket has been created. The connection is not yet open.
23700
+ WebsocketState[WebsocketState["CONNECTING"] = 0] = "CONNECTING";
23701
+ // The connection is open and ready to communicate.
23702
+ WebsocketState[WebsocketState["OPEN"] = 1] = "OPEN";
23703
+ // The connection is in the process of closing.
23704
+ WebsocketState[WebsocketState["CLOSING"] = 2] = "CLOSING";
23705
+ // The connection is closed or couldn't be opened.
23706
+ WebsocketState[WebsocketState["CLOSED"] = 3] = "CLOSED";
23707
+ })(WebsocketState = exports.WebsocketState || (exports.WebsocketState = {}));
23685
23708
  class ArcwarePixelStreaming extends lib_pixelstreamingfrontend_ue5_5_1.PixelStreaming {
23686
23709
  resetInitGuardsAndHooks() {
23687
23710
  this.videoInitializedSent = false;
@@ -23753,14 +23776,6 @@ class ArcwarePixelStreaming extends lib_pixelstreamingfrontend_ue5_5_1.PixelStre
23753
23776
  const ws = (_b = (_a = this.webRtcController) === null || _a === void 0 ? void 0 : _a.transport) === null || _b === void 0 ? void 0 : _b.webSocket;
23754
23777
  return !!ws && ws.readyState === WebSocket.OPEN;
23755
23778
  }
23756
- /** Returns a list of WebSocketStates of all PixelStreaming Instances generated. */
23757
- get WebsocketStates() {
23758
- return ConnectionIdentifier_1.ConnectionIdentifier.Instance.GetWebSocketStates();
23759
- }
23760
- /** Counts all active PixelStreaming Instances generated. (CONNECTING & CONNECTED) */
23761
- get ActiveInstances() {
23762
- return ConnectionIdentifier_1.ConnectionIdentifier.Instance.ActiveInstances;
23763
- }
23764
23779
  /** Returns this PixelStreaming Instances websocket state. */
23765
23780
  get websocketState() {
23766
23781
  var _a, _b, _c;
@@ -23893,7 +23908,6 @@ class ArcwarePixelStreaming extends lib_pixelstreamingfrontend_ue5_5_1.PixelStre
23893
23908
  this.sessionIdHandler.add(this.config.settings.sessionIdHandler);
23894
23909
  if (this.config.settings.loveLetterHandler)
23895
23910
  this.loveLetterHandler.add(this.config.settings.loveLetterHandler);
23896
- ConnectionIdentifier_1.ConnectionIdentifier.Instance.register(this);
23897
23911
  this.removeXRIconIfDisabled();
23898
23912
  this.handleMouseLock();
23899
23913
  }
@@ -24015,8 +24029,6 @@ class ArcwarePixelStreaming extends lib_pixelstreamingfrontend_ue5_5_1.PixelStre
24015
24029
  Object.entries(streamInfo.streamInfo.webSdkSettings.conf).forEach(([key, value]) => {
24016
24030
  const k = key;
24017
24031
  this.config.settings[k] = value;
24018
- if (key === "connectionIdentifierLoggingDisabled" && value === true)
24019
- ConnectionIdentifier_1.ConnectionIdentifier.Instance.disable();
24020
24032
  });
24021
24033
  }
24022
24034
  }
@@ -24684,14 +24696,12 @@ exports.ArcwareSettingsSchema = zod_1.z.object({
24684
24696
  connectionStrengthIcon: zod_1.z.boolean().optional(),
24685
24697
  /** ShareId, used for sharing your project.
24686
24698
  * Using ArcwareInit will set this required property for you. */
24687
- shareId: zod_1.z.string().startsWith("share-").optional(),
24699
+ shareId: zod_1.z.string().startsWith("share-"),
24688
24700
  /** Id of your project, only required if your shareId refers to multiple projects.
24689
24701
  * Using ArcwareInit will set this required property for you. */
24690
24702
  projectId: zod_1.z.string().optional(),
24691
24703
  /** Enable/Disable LoveLetter logging to the console. */
24692
24704
  loveLetterLogging: zod_1.z.boolean().optional(),
24693
- /** Enable/Disable Connection Identifier logging to the console. */
24694
- connectionIdentifierLoggingDisabled: zod_1.z.boolean().optional(),
24695
24705
  /** Width with which instance should be started */
24696
24706
  startWidth: zod_1.z.number().optional(),
24697
24707
  /** Height with which instance should be started */
@@ -24710,79 +24720,6 @@ exports.ArcwareSettingsSchema = zod_1.z.object({
24710
24720
  });
24711
24721
 
24712
24722
 
24713
- /***/ }),
24714
-
24715
- /***/ 5999:
24716
- /***/ ((__unused_webpack_module, exports) => {
24717
-
24718
-
24719
- Object.defineProperty(exports, "__esModule", ({ value: true }));
24720
- exports.ConnectionIdentifier = exports.WebsocketState = void 0;
24721
- var WebsocketState;
24722
- (function (WebsocketState) {
24723
- // Socket has been created. The connection is not yet open.
24724
- WebsocketState[WebsocketState["CONNECTING"] = 0] = "CONNECTING";
24725
- // The connection is open and ready to communicate.
24726
- WebsocketState[WebsocketState["OPEN"] = 1] = "OPEN";
24727
- // The connection is in the process of closing.
24728
- WebsocketState[WebsocketState["CLOSING"] = 2] = "CLOSING";
24729
- // The connection is closed or couldn't be opened.
24730
- WebsocketState[WebsocketState["CLOSED"] = 3] = "CLOSED";
24731
- })(WebsocketState = exports.WebsocketState || (exports.WebsocketState = {}));
24732
- class ConnectionIdentifier {
24733
- static get Instance() {
24734
- if (!this.instance) {
24735
- this.instance = new ConnectionIdentifier();
24736
- }
24737
- return this.instance;
24738
- }
24739
- get WebsocketStates() {
24740
- return this.aps.map((ps) => ps.websocketState);
24741
- }
24742
- constructor() {
24743
- this.aps = [];
24744
- this.enabled = true;
24745
- }
24746
- register(ps) {
24747
- var _a;
24748
- if (!this.aps.includes(ps)) {
24749
- this.aps.push(ps);
24750
- if ((_a = ps.config.settings) === null || _a === void 0 ? void 0 : _a.connectionIdentifierLoggingDisabled)
24751
- this.disable();
24752
- }
24753
- if (!this.interval)
24754
- this.interval = setInterval(this.connectionWatcher.bind(this), 10 * 1000);
24755
- }
24756
- GetWebSocketStates() {
24757
- return this.aps.map((ps) => ps.websocketState);
24758
- }
24759
- ActiveInstances() {
24760
- return this.GetWebSocketStates().filter((state) => state <= WebsocketState.OPEN).length;
24761
- }
24762
- disable() {
24763
- this.enabled = false;
24764
- }
24765
- /**
24766
- * The purpose of this method is to periodically tell the developer the amount of connected instances.
24767
- * This way the developer can figure out, when they messed up the implementation and there's shadow instances still running.
24768
- * Or when they accidentally set up multiple connections!
24769
- * Things like that can happen, for example if the React.useEffect was not setup perfectly!
24770
- */
24771
- connectionWatcher() {
24772
- if (!this.enabled)
24773
- return;
24774
- const activeStates = this.GetWebSocketStates().filter((state) => state <= WebsocketState.OPEN);
24775
- if (activeStates.length === 1) {
24776
- //console.log(`PixelStreaming Instance is connected.`);
24777
- }
24778
- else if (activeStates.length !== 0) {
24779
- console.warn(`${activeStates.length} PixelStreaming Instances are connected!`);
24780
- }
24781
- }
24782
- }
24783
- exports.ConnectionIdentifier = ConnectionIdentifier;
24784
-
24785
-
24786
24723
  /***/ }),
24787
24724
 
24788
24725
  /***/ 3379:
package/index.esm.js CHANGED
@@ -23464,7 +23464,7 @@ class ArcwareConfig extends _epicgames_ps_lib_pixelstreamingfrontend_ue5_5__WEBP
23464
23464
  if (!config.initialSettings.ss)
23465
23465
  config.initialSettings.ss = DefaultUrl;
23466
23466
  super(config);
23467
- this.VERSION = "1.3.19";
23467
+ this.VERSION = "1.3.21";
23468
23468
  this.whiteLabellingChanged = new _domain_EventHandler__WEBPACK_IMPORTED_MODULE_7__.EventHandler();
23469
23469
  this.signallingWlURL = "https://signalling-client.arcware.cloud/whiteLabel/";
23470
23470
  if (config.envName) {
@@ -23481,11 +23481,16 @@ class ArcwareConfig extends _epicgames_ps_lib_pixelstreamingfrontend_ue5_5__WEBP
23481
23481
  if (this.useUrlParams) {
23482
23482
  // Get the query string from URL
23483
23483
  const qs = new URLSearchParams(window.location.search);
23484
- if (qs.has("wl") && qs.get("wl") !== "") {
23485
- // Retrieve image loading from there
23486
- const wlParsed = this.useUrlParams ? (0,_features_whiteLabelling__WEBPACK_IMPORTED_MODULE_2__.readWhiteLabelFromQuery)(qs) : undefined; // respect useUrlParams
23487
- if (wlParsed) {
23488
- this.settings.whiteLabelling = Object.assign(Object.assign({}, ((_c = this.settings.whiteLabelling) !== null && _c !== void 0 ? _c : {})), wlParsed);
23484
+ if (qs.has("wl")) {
23485
+ if (qs.get("wl") !== "") {
23486
+ // Retrieve image loading from there
23487
+ const wlParsed = this.useUrlParams ? (0,_features_whiteLabelling__WEBPACK_IMPORTED_MODULE_2__.readWhiteLabelFromQuery)(qs) : undefined; // respect useUrlParams
23488
+ if (wlParsed) {
23489
+ this.settings.whiteLabelling = Object.assign(Object.assign({}, ((_c = this.settings.whiteLabelling) !== null && _c !== void 0 ? _c : {})), wlParsed);
23490
+ }
23491
+ }
23492
+ else {
23493
+ this.settings.fetchRemoteWhiteLabelling = true;
23489
23494
  }
23490
23495
  }
23491
23496
  this.settings.infoButton = qs.has("i") || qs.has("info");
@@ -23494,9 +23499,13 @@ class ArcwareConfig extends _epicgames_ps_lib_pixelstreamingfrontend_ue5_5__WEBP
23494
23499
  getWhiteLabelling(ShareId) {
23495
23500
  return (0,tslib__WEBPACK_IMPORTED_MODULE_8__.__awaiter)(this, void 0, void 0, function* () {
23496
23501
  const qs = new URLSearchParams(window.location.search);
23497
- // Only fetch when wl param is present and empty (as before)
23498
- if (!(qs.has("wl") && qs.get("wl") === ""))
23502
+ if (qs.get("wl") !== "") {
23503
+ _domain_EventHandler__WEBPACK_IMPORTED_MODULE_7__.EventHandler.Emit(this.whiteLabellingChanged, {
23504
+ next: this.settings.whiteLabelling,
23505
+ changed: false
23506
+ });
23499
23507
  return undefined;
23508
+ }
23500
23509
  // Build final URL safely (trim trailing slashes, encode ShareId)
23501
23510
  const base = this.signallingWlURL.replace(/\/+$/, "");
23502
23511
  const requestUrl = `${base}/${encodeURIComponent(ShareId)}`;
@@ -23615,8 +23624,9 @@ let globalConfig = null;
23615
23624
  let globalApplication = null;
23616
23625
  let previousShareId = null;
23617
23626
  let previousProjectId = null;
23618
- function ArcwareInit({ shareId, projectId }, configuration, forceRefresh = false) {
23627
+ function ArcwareInit(ids, configuration, forceRefresh = false) {
23619
23628
  var _a;
23629
+ const { shareId, projectId } = ids;
23620
23630
  if (shareId && !shareId.startsWith("share-"))
23621
23631
  throw new Error(`Unexpected shareId-format: '${shareId}'.`);
23622
23632
  if (shareId && previousShareId !== shareId) {
@@ -23647,9 +23657,12 @@ function ArcwareInit({ shareId, projectId }, configuration, forceRefresh = false
23647
23657
  }
23648
23658
  const Config = new _ArcwareConfig__WEBPACK_IMPORTED_MODULE_0__.ArcwareConfig({
23649
23659
  useUrlParams: (configuration === null || configuration === void 0 ? void 0 : configuration.useUrlParams) === true,
23650
- initialSettings: Object.assign({ ss: _ArcwareConfig__WEBPACK_IMPORTED_MODULE_0__.DefaultUrl, AutoConnect: false, StartVideoMuted: true, AutoPlayVideo: true, KeyboardInput: true, MouseInput: true, GamepadInput: true, TouchInput: true, XRControllerInput: true, UseMic: true, SuppressBrowserKeys: true, FakeMouseWithTouches: false, ForceMonoAudio: false, HoveringMouse: true }, configuration === null || configuration === void 0 ? void 0 : configuration.initialSettings),
23660
+ initialSettings: Object.assign({ ss: _ArcwareConfig__WEBPACK_IMPORTED_MODULE_0__.DefaultUrl, AutoConnect: false, AutoPlayVideo: true, HoveringMouse: true, ForceMonoAudio: false, FakeMouseWithTouches: false, StartVideoMuted: true, SuppressBrowserKeys: true, UseMic: true, KeyboardInput: true, MouseInput: true, TouchInput: true, GamepadInput: true, XRControllerInput: true }, configuration === null || configuration === void 0 ? void 0 : configuration.initialSettings),
23651
23661
  settings: Object.assign({ shareId,
23652
- projectId, fullscreenButton: true, audioButton: true, stopButton: false, infoButton: false, micButton: false, settingsButton: false, connectionStrengthIcon: false, connectionIdentifierLoggingDisabled: undefined, errorHandler: undefined, loveLetterHandler: undefined, loveLetterLogging: undefined, queueHandler: undefined, sessionIdHandler: undefined, startHeight: undefined, startWidth: undefined, orientationZoom: undefined, whiteLabelling: {
23662
+ projectId, fullscreenButton: true, audioButton: true, stopButton: false, infoButton: false, micButton: false, settingsButton: false, connectionStrengthIcon: false, errorHandler: undefined, loveLetterHandler: undefined, loveLetterLogging: undefined, queueHandler: undefined, sessionIdHandler: undefined, startHeight: undefined, startWidth: undefined, orientationZoom: {
23663
+ landscape: 0,
23664
+ portrait: 0
23665
+ }, whiteLabelling: {
23653
23666
  splashScreenUrl: undefined,
23654
23667
  loadingIconFadeMs: undefined,
23655
23668
  loadingIconUrl: undefined,
@@ -23682,23 +23695,23 @@ function ArcwareInit({ shareId, projectId }, configuration, forceRefresh = false
23682
23695
 
23683
23696
  __webpack_require__.r(__webpack_exports__);
23684
23697
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
23685
- /* harmony export */ "ArcwarePixelStreaming": () => (/* binding */ ArcwarePixelStreaming)
23698
+ /* harmony export */ "ArcwarePixelStreaming": () => (/* binding */ ArcwarePixelStreaming),
23699
+ /* harmony export */ "WebsocketState": () => (/* binding */ WebsocketState)
23686
23700
  /* harmony export */ });
23687
- /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(655);
23701
+ /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(655);
23688
23702
  /* harmony import */ var _arcware_cloud_shared_pixelstreaming_websdk__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7910);
23689
- /* harmony import */ var _epicgames_ps_lib_pixelstreamingfrontend_ue5_5__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(516);
23690
- /* harmony import */ var _epicgames_ps_lib_pixelstreamingfrontend_ue5_5__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(7800);
23691
- /* harmony import */ var _epicgames_ps_lib_pixelstreamingfrontend_ue5_5__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(7463);
23692
- /* harmony import */ var _ApplyUrlHack__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(4790);
23693
- /* harmony import */ var _domain_EventHandler__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(3379);
23703
+ /* harmony import */ var _epicgames_ps_lib_pixelstreamingfrontend_ue5_5__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(516);
23704
+ /* harmony import */ var _epicgames_ps_lib_pixelstreamingfrontend_ue5_5__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(7800);
23705
+ /* harmony import */ var _epicgames_ps_lib_pixelstreamingfrontend_ue5_5__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(7463);
23706
+ /* harmony import */ var _ApplyUrlHack__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(4790);
23707
+ /* harmony import */ var _domain_EventHandler__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(3379);
23694
23708
  /* harmony import */ var _domain_Stats__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9764);
23695
- /* harmony import */ var _domain_debounce__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(9580);
23696
- /* harmony import */ var _ui_LoveLetters__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(4572);
23697
- /* harmony import */ var _ui_ArcwareLogoLoader__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(6469);
23698
- /* harmony import */ var _ui_MicrophoneOverlay__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(3613);
23699
- /* harmony import */ var _domain_ConnectionIdentifier__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(5999);
23700
- /* harmony import */ var _features_DiagnosticsCollector__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(8429);
23701
- /* harmony import */ var _features_common__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(2483);
23709
+ /* harmony import */ var _domain_debounce__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(9580);
23710
+ /* harmony import */ var _ui_LoveLetters__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(4572);
23711
+ /* harmony import */ var _ui_ArcwareLogoLoader__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(6469);
23712
+ /* harmony import */ var _ui_MicrophoneOverlay__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(3613);
23713
+ /* harmony import */ var _features_DiagnosticsCollector__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(8429);
23714
+ /* harmony import */ var _features_common__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(2483);
23702
23715
 
23703
23716
 
23704
23717
 
@@ -23711,8 +23724,18 @@ __webpack_require__.r(__webpack_exports__);
23711
23724
 
23712
23725
 
23713
23726
 
23714
-
23715
- class ArcwarePixelStreaming extends _epicgames_ps_lib_pixelstreamingfrontend_ue5_5__WEBPACK_IMPORTED_MODULE_4__.PixelStreaming {
23727
+ var WebsocketState;
23728
+ (function (WebsocketState) {
23729
+ // Socket has been created. The connection is not yet open.
23730
+ WebsocketState[WebsocketState["CONNECTING"] = 0] = "CONNECTING";
23731
+ // The connection is open and ready to communicate.
23732
+ WebsocketState[WebsocketState["OPEN"] = 1] = "OPEN";
23733
+ // The connection is in the process of closing.
23734
+ WebsocketState[WebsocketState["CLOSING"] = 2] = "CLOSING";
23735
+ // The connection is closed or couldn't be opened.
23736
+ WebsocketState[WebsocketState["CLOSED"] = 3] = "CLOSED";
23737
+ })(WebsocketState || (WebsocketState = {}));
23738
+ class ArcwarePixelStreaming extends _epicgames_ps_lib_pixelstreamingfrontend_ue5_5__WEBPACK_IMPORTED_MODULE_3__.PixelStreaming {
23716
23739
  resetInitGuardsAndHooks() {
23717
23740
  this.videoInitializedSent = false;
23718
23741
  this._postInitSideEffectsDone = false;
@@ -23772,7 +23795,7 @@ class ArcwarePixelStreaming extends _epicgames_ps_lib_pixelstreamingfrontend_ue5
23772
23795
  const ws = current.webSocket;
23773
23796
  if (ws && !this._onWsClose) {
23774
23797
  this._onWsClose = (evt) => {
23775
- _domain_EventHandler__WEBPACK_IMPORTED_MODULE_5__.EventHandler.Emit(this.websocketOnCloseHandler, evt);
23798
+ _domain_EventHandler__WEBPACK_IMPORTED_MODULE_4__.EventHandler.Emit(this.websocketOnCloseHandler, evt);
23776
23799
  };
23777
23800
  ws.addEventListener("close", this._onWsClose);
23778
23801
  }
@@ -23783,14 +23806,6 @@ class ArcwarePixelStreaming extends _epicgames_ps_lib_pixelstreamingfrontend_ue5
23783
23806
  const ws = (_b = (_a = this.webRtcController) === null || _a === void 0 ? void 0 : _a.transport) === null || _b === void 0 ? void 0 : _b.webSocket;
23784
23807
  return !!ws && ws.readyState === WebSocket.OPEN;
23785
23808
  }
23786
- /** Returns a list of WebSocketStates of all PixelStreaming Instances generated. */
23787
- get WebsocketStates() {
23788
- return _domain_ConnectionIdentifier__WEBPACK_IMPORTED_MODULE_2__.ConnectionIdentifier.Instance.GetWebSocketStates();
23789
- }
23790
- /** Counts all active PixelStreaming Instances generated. (CONNECTING & CONNECTED) */
23791
- get ActiveInstances() {
23792
- return _domain_ConnectionIdentifier__WEBPACK_IMPORTED_MODULE_2__.ConnectionIdentifier.Instance.ActiveInstances;
23793
- }
23794
23809
  /** Returns this PixelStreaming Instances websocket state. */
23795
23810
  get websocketState() {
23796
23811
  var _a, _b, _c;
@@ -23800,7 +23815,7 @@ class ArcwarePixelStreaming extends _epicgames_ps_lib_pixelstreamingfrontend_ue5
23800
23815
  constructor(config, overrides) {
23801
23816
  var _a, _b;
23802
23817
  /** As soon as upstream is fixed, we got to adjust the url building process. */
23803
- (0,_ApplyUrlHack__WEBPACK_IMPORTED_MODULE_6__.ApplyUrlHack)();
23818
+ (0,_ApplyUrlHack__WEBPACK_IMPORTED_MODULE_5__.ApplyUrlHack)();
23804
23819
  super(config, overrides);
23805
23820
  this.loveLettersQueue = [];
23806
23821
  this.isProcessingQueue = false;
@@ -23811,14 +23826,14 @@ class ArcwarePixelStreaming extends _epicgames_ps_lib_pixelstreamingfrontend_ue5
23811
23826
  this._rVFCsupported = "requestVideoFrameCallback" in HTMLVideoElement.prototype;
23812
23827
  this._postInitSideEffectsDone = false;
23813
23828
  // Externalized
23814
- this.queueHandler = new _domain_EventHandler__WEBPACK_IMPORTED_MODULE_5__.EventHandler();
23815
- this.errorHandler = new _domain_EventHandler__WEBPACK_IMPORTED_MODULE_5__.EventHandler();
23816
- this.loveLetterHandler = new _domain_EventHandler__WEBPACK_IMPORTED_MODULE_5__.EventHandler();
23817
- this.sessionIdHandler = new _domain_EventHandler__WEBPACK_IMPORTED_MODULE_5__.EventHandler();
23829
+ this.queueHandler = new _domain_EventHandler__WEBPACK_IMPORTED_MODULE_4__.EventHandler();
23830
+ this.errorHandler = new _domain_EventHandler__WEBPACK_IMPORTED_MODULE_4__.EventHandler();
23831
+ this.loveLetterHandler = new _domain_EventHandler__WEBPACK_IMPORTED_MODULE_4__.EventHandler();
23832
+ this.sessionIdHandler = new _domain_EventHandler__WEBPACK_IMPORTED_MODULE_4__.EventHandler();
23818
23833
  /** VideoInitialized (native Epic event) */
23819
- this.videoInitializedHandler = new _domain_EventHandler__WEBPACK_IMPORTED_MODULE_5__.EventHandler();
23834
+ this.videoInitializedHandler = new _domain_EventHandler__WEBPACK_IMPORTED_MODULE_4__.EventHandler();
23820
23835
  // Internal
23821
- this.websocketOnCloseHandler = new _domain_EventHandler__WEBPACK_IMPORTED_MODULE_5__.EventHandler();
23836
+ this.websocketOnCloseHandler = new _domain_EventHandler__WEBPACK_IMPORTED_MODULE_4__.EventHandler();
23822
23837
  /** 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"
23823
23838
  * Instead we use ApplyUrlHack();
23824
23839
  */
@@ -23851,7 +23866,7 @@ class ArcwarePixelStreaming extends _epicgames_ps_lib_pixelstreamingfrontend_ue5
23851
23866
  });
23852
23867
  // Kick off WL fetch once (if we have a shareId); on success it will emit and re-apply
23853
23868
  if (this.config.settings.fetchRemoteWhiteLabelling) {
23854
- (() => (0,tslib__WEBPACK_IMPORTED_MODULE_7__.__awaiter)(this, void 0, void 0, function* () {
23869
+ (() => (0,tslib__WEBPACK_IMPORTED_MODULE_6__.__awaiter)(this, void 0, void 0, function* () {
23855
23870
  try {
23856
23871
  const sid = this.config.settings.shareId;
23857
23872
  if (sid) {
@@ -23871,8 +23886,8 @@ class ArcwarePixelStreaming extends _epicgames_ps_lib_pixelstreamingfrontend_ue5
23871
23886
  }))();
23872
23887
  }
23873
23888
  this.loveLettersList = [];
23874
- this.microphoneOverlay = new _ui_MicrophoneOverlay__WEBPACK_IMPORTED_MODULE_8__.MicrophoneOverlay(this);
23875
- this.diagnosticsCollector = new _features_DiagnosticsCollector__WEBPACK_IMPORTED_MODULE_3__.DiagnosticsCollector({
23889
+ this.microphoneOverlay = new _ui_MicrophoneOverlay__WEBPACK_IMPORTED_MODULE_7__.MicrophoneOverlay(this);
23890
+ this.diagnosticsCollector = new _features_DiagnosticsCollector__WEBPACK_IMPORTED_MODULE_2__.DiagnosticsCollector({
23876
23891
  enableBandwidthProbe: false
23877
23892
  });
23878
23893
  // after super(...) and once webRtcController is available
@@ -23893,7 +23908,7 @@ class ArcwarePixelStreaming extends _epicgames_ps_lib_pixelstreamingfrontend_ue5
23893
23908
  this.addMessageHandler("version", _arcware_cloud_shared_pixelstreaming_websdk__WEBPACK_IMPORTED_MODULE_0__.Messages.ZVersion, this.onVersion);
23894
23909
  this.addMessageHandler("render", _arcware_cloud_shared_pixelstreaming_websdk__WEBPACK_IMPORTED_MODULE_0__.Messages.ZRender, this.onRender);
23895
23910
  // Create a debounced version of the handleResolutionChange function
23896
- const debouncedResolutionChange = (0,_domain_debounce__WEBPACK_IMPORTED_MODULE_9__["default"])(() => {
23911
+ const debouncedResolutionChange = (0,_domain_debounce__WEBPACK_IMPORTED_MODULE_8__["default"])(() => {
23897
23912
  this.handleResolutionChange();
23898
23913
  }, 0);
23899
23914
  // Register event listeners.
@@ -23923,7 +23938,6 @@ class ArcwarePixelStreaming extends _epicgames_ps_lib_pixelstreamingfrontend_ue5
23923
23938
  this.sessionIdHandler.add(this.config.settings.sessionIdHandler);
23924
23939
  if (this.config.settings.loveLetterHandler)
23925
23940
  this.loveLetterHandler.add(this.config.settings.loveLetterHandler);
23926
- _domain_ConnectionIdentifier__WEBPACK_IMPORTED_MODULE_2__.ConnectionIdentifier.Instance.register(this);
23927
23941
  this.removeXRIconIfDisabled();
23928
23942
  this.handleMouseLock();
23929
23943
  }
@@ -23939,13 +23953,13 @@ class ArcwarePixelStreaming extends _epicgames_ps_lib_pixelstreamingfrontend_ue5
23939
23953
  /** On version requested, the version of the WebSDK would be returned. */
23940
23954
  onVersion(_msg) {
23941
23955
  var _a, _b;
23942
- return (0,tslib__WEBPACK_IMPORTED_MODULE_7__.__awaiter)(this, void 0, void 0, function* () {
23956
+ return (0,tslib__WEBPACK_IMPORTED_MODULE_6__.__awaiter)(this, void 0, void 0, function* () {
23943
23957
  let diagnostics;
23944
23958
  try {
23945
23959
  diagnostics = yield this.diagnosticsCollector.collect();
23946
23960
  }
23947
23961
  catch (e) {
23948
- (_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}`);
23962
+ (_a = _epicgames_ps_lib_pixelstreamingfrontend_ue5_5__WEBPACK_IMPORTED_MODULE_9__.Logger.Warning) === null || _a === void 0 ? void 0 : _a.call(_epicgames_ps_lib_pixelstreamingfrontend_ue5_5__WEBPACK_IMPORTED_MODULE_9__.Logger, `Diagnostics collection failed: ${(_b = e === null || e === void 0 ? void 0 : e.message) !== null && _b !== void 0 ? _b : e}`);
23949
23963
  }
23950
23964
  finally {
23951
23965
  const payload = {
@@ -23969,7 +23983,7 @@ class ArcwarePixelStreaming extends _epicgames_ps_lib_pixelstreamingfrontend_ue5
23969
23983
  }
23970
23984
  waitForFirstFrameWithTimeout(ms = 2000) {
23971
23985
  var _a, _b, _c;
23972
- return (0,tslib__WEBPACK_IMPORTED_MODULE_7__.__awaiter)(this, void 0, void 0, function* () {
23986
+ return (0,tslib__WEBPACK_IMPORTED_MODULE_6__.__awaiter)(this, void 0, void 0, function* () {
23973
23987
  const video = (_c = (_b = (_a = this.webRtcController) === null || _a === void 0 ? void 0 : _a.videoPlayer) === null || _b === void 0 ? void 0 : _b.getVideoElement) === null || _c === void 0 ? void 0 : _c.call(_b);
23974
23988
  if (this.isVideoRenderingNow(video))
23975
23989
  return true;
@@ -24007,7 +24021,7 @@ class ArcwarePixelStreaming extends _epicgames_ps_lib_pixelstreamingfrontend_ue5
24007
24021
  });
24008
24022
  }
24009
24023
  onRender(_msg) {
24010
- return (0,tslib__WEBPACK_IMPORTED_MODULE_7__.__awaiter)(this, void 0, void 0, function* () {
24024
+ return (0,tslib__WEBPACK_IMPORTED_MODULE_6__.__awaiter)(this, void 0, void 0, function* () {
24011
24025
  const isRendering = yield this.waitForFirstFrameWithTimeout();
24012
24026
  const payload = {
24013
24027
  type: "render",
@@ -24027,13 +24041,13 @@ class ArcwarePixelStreaming extends _epicgames_ps_lib_pixelstreamingfrontend_ue5
24027
24041
  /** Handle incoming configurations. */
24028
24042
  onStreamInfo(streamInfo) {
24029
24043
  var _a, _b, _c, _d;
24030
- _epicgames_ps_lib_pixelstreamingfrontend_ue5_5__WEBPACK_IMPORTED_MODULE_10__.Logger.Info(`StreamInfo received.`);
24044
+ _epicgames_ps_lib_pixelstreamingfrontend_ue5_5__WEBPACK_IMPORTED_MODULE_9__.Logger.Info(`StreamInfo received.`);
24031
24045
  this.streamInfo = streamInfo;
24032
24046
  if (!((_b = (_a = this.config) === null || _a === void 0 ? void 0 : _a.settings) === null || _b === void 0 ? void 0 : _b["do-not-eval-streamInfo"])) {
24033
24047
  const { afk } = streamInfo.streamInfo;
24034
24048
  if (afk) {
24035
- this.config.setFlagEnabled(_epicgames_ps_lib_pixelstreamingfrontend_ue5_5__WEBPACK_IMPORTED_MODULE_11__.Flags.AFKDetection, afk.enabled);
24036
- this.config.setNumericSetting(_epicgames_ps_lib_pixelstreamingfrontend_ue5_5__WEBPACK_IMPORTED_MODULE_11__.NumericParameters.AFKTimeoutSecs, afk.warn + afk.error);
24049
+ this.config.setFlagEnabled(_epicgames_ps_lib_pixelstreamingfrontend_ue5_5__WEBPACK_IMPORTED_MODULE_10__.Flags.AFKDetection, afk.enabled);
24050
+ this.config.setNumericSetting(_epicgames_ps_lib_pixelstreamingfrontend_ue5_5__WEBPACK_IMPORTED_MODULE_10__.NumericParameters.AFKTimeoutSecs, afk.warn + afk.error);
24037
24051
  // Hack
24038
24052
  const { afkController } = this.webRtcController;
24039
24053
  afkController.countDown = afk.action;
@@ -24045,8 +24059,6 @@ class ArcwarePixelStreaming extends _epicgames_ps_lib_pixelstreamingfrontend_ue5
24045
24059
  Object.entries(streamInfo.streamInfo.webSdkSettings.conf).forEach(([key, value]) => {
24046
24060
  const k = key;
24047
24061
  this.config.settings[k] = value;
24048
- if (key === "connectionIdentifierLoggingDisabled" && value === true)
24049
- _domain_ConnectionIdentifier__WEBPACK_IMPORTED_MODULE_2__.ConnectionIdentifier.Instance.disable();
24050
24062
  });
24051
24063
  }
24052
24064
  }
@@ -24055,12 +24067,12 @@ class ArcwarePixelStreaming extends _epicgames_ps_lib_pixelstreamingfrontend_ue5
24055
24067
  this.injectCustomUI();
24056
24068
  }
24057
24069
  onQueue(message) {
24058
- _epicgames_ps_lib_pixelstreamingfrontend_ue5_5__WEBPACK_IMPORTED_MODULE_10__.Logger.Info(`QueueInfo received.`);
24059
- _domain_EventHandler__WEBPACK_IMPORTED_MODULE_5__.EventHandler.Emit(this.queueHandler, message);
24070
+ _epicgames_ps_lib_pixelstreamingfrontend_ue5_5__WEBPACK_IMPORTED_MODULE_9__.Logger.Info(`QueueInfo received.`);
24071
+ _domain_EventHandler__WEBPACK_IMPORTED_MODULE_4__.EventHandler.Emit(this.queueHandler, message);
24060
24072
  }
24061
24073
  onError(error) {
24062
24074
  var _a, _b;
24063
- _epicgames_ps_lib_pixelstreamingfrontend_ue5_5__WEBPACK_IMPORTED_MODULE_10__.Logger.Error(error.type);
24075
+ _epicgames_ps_lib_pixelstreamingfrontend_ue5_5__WEBPACK_IMPORTED_MODULE_9__.Logger.Error(error.type);
24064
24076
  console.log(error);
24065
24077
  const retryable = this.isRetryableClose(error);
24066
24078
  if (!retryable) {
@@ -24076,18 +24088,18 @@ class ArcwarePixelStreaming extends _epicgames_ps_lib_pixelstreamingfrontend_ue5
24076
24088
  // Leave your existing auto-retry behavior for transient errors
24077
24089
  this.startTransportWatcher(); // (in case it was stopped)
24078
24090
  }
24079
- _domain_EventHandler__WEBPACK_IMPORTED_MODULE_5__.EventHandler.Emit(this.errorHandler, error);
24091
+ _domain_EventHandler__WEBPACK_IMPORTED_MODULE_4__.EventHandler.Emit(this.errorHandler, error);
24080
24092
  }
24081
24093
  onLoveLetter(loveLetter) {
24082
24094
  if (this.config.settings.loveLetterLogging)
24083
24095
  console.info(loveLetter.reason);
24084
- _domain_EventHandler__WEBPACK_IMPORTED_MODULE_5__.EventHandler.Emit(this.loveLetterHandler, loveLetter);
24096
+ _domain_EventHandler__WEBPACK_IMPORTED_MODULE_4__.EventHandler.Emit(this.loveLetterHandler, loveLetter);
24085
24097
  this.pushLetter(loveLetter.reason);
24086
24098
  }
24087
24099
  onSessionId(message) {
24088
- _epicgames_ps_lib_pixelstreamingfrontend_ue5_5__WEBPACK_IMPORTED_MODULE_10__.Logger.Info(message.sessionId);
24100
+ _epicgames_ps_lib_pixelstreamingfrontend_ue5_5__WEBPACK_IMPORTED_MODULE_9__.Logger.Info(message.sessionId);
24089
24101
  this.session.set(message.sessionId);
24090
- _domain_EventHandler__WEBPACK_IMPORTED_MODULE_5__.EventHandler.Emit(this.sessionIdHandler, message.sessionId);
24102
+ _domain_EventHandler__WEBPACK_IMPORTED_MODULE_4__.EventHandler.Emit(this.sessionIdHandler, message.sessionId);
24091
24103
  }
24092
24104
  sendVideoInitializedOnce() {
24093
24105
  if (this.videoInitializedSent)
@@ -24097,7 +24109,7 @@ class ArcwarePixelStreaming extends _epicgames_ps_lib_pixelstreamingfrontend_ue5
24097
24109
  this.cancelFirstRenderedFrameHook();
24098
24110
  this.send({ type: "onVideoInitialized" });
24099
24111
  if (this.videoInitializedHandler) {
24100
- _domain_EventHandler__WEBPACK_IMPORTED_MODULE_5__.EventHandler.Emit(this.videoInitializedHandler, undefined);
24112
+ _domain_EventHandler__WEBPACK_IMPORTED_MODULE_4__.EventHandler.Emit(this.videoInitializedHandler, undefined);
24101
24113
  }
24102
24114
  }
24103
24115
  runPostInitSideEffectsOnce() {
@@ -24213,7 +24225,7 @@ class ArcwarePixelStreaming extends _epicgames_ps_lib_pixelstreamingfrontend_ue5
24213
24225
  else {
24214
24226
  const parsedError = parsed;
24215
24227
  const error = new Error(`Unexpected message content. Event:'${type}', ZodError: ${parsedError.error.message}`);
24216
- _epicgames_ps_lib_pixelstreamingfrontend_ue5_5__WEBPACK_IMPORTED_MODULE_10__.Logger.Error(error.message);
24228
+ _epicgames_ps_lib_pixelstreamingfrontend_ue5_5__WEBPACK_IMPORTED_MODULE_9__.Logger.Error(error.message);
24217
24229
  }
24218
24230
  if (type === "error") {
24219
24231
  // this.disconnect();
@@ -24237,7 +24249,7 @@ class ArcwarePixelStreaming extends _epicgames_ps_lib_pixelstreamingfrontend_ue5
24237
24249
  if (schema) {
24238
24250
  const result = schema.safeParse(msg);
24239
24251
  if (!result.success) {
24240
- (_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}`);
24252
+ (_b = _epicgames_ps_lib_pixelstreamingfrontend_ue5_5__WEBPACK_IMPORTED_MODULE_9__.Logger.Error) === null || _b === void 0 ? void 0 : _b.call(_epicgames_ps_lib_pixelstreamingfrontend_ue5_5__WEBPACK_IMPORTED_MODULE_9__.Logger, `Send validation failed for ${msg.type}: ${result.error}`);
24241
24253
  return;
24242
24254
  }
24243
24255
  this._dispatchOrBuffer(result.data);
@@ -24376,7 +24388,7 @@ class ArcwarePixelStreaming extends _epicgames_ps_lib_pixelstreamingfrontend_ue5
24376
24388
  }
24377
24389
  initLoveLettersContainer() {
24378
24390
  var _a;
24379
- const logoLoader = new _ui_ArcwareLogoLoader__WEBPACK_IMPORTED_MODULE_12__.ArcwareLogoLoader();
24391
+ const logoLoader = new _ui_ArcwareLogoLoader__WEBPACK_IMPORTED_MODULE_11__.ArcwareLogoLoader();
24380
24392
  this.logoLoader = logoLoader;
24381
24393
  if (!this.loveLettersContainer) {
24382
24394
  const loveLettersContainer = document.createElement("div");
@@ -24414,7 +24426,7 @@ class ArcwarePixelStreaming extends _epicgames_ps_lib_pixelstreamingfrontend_ue5
24414
24426
  if (letter !== undefined) {
24415
24427
  const formattedLoveLetter = letter === null || letter === void 0 ? void 0 : letter.replace(/LL: |\.$/g, "");
24416
24428
  (_a = this === null || this === void 0 ? void 0 : this.loveLettersList) === null || _a === void 0 ? void 0 : _a.push(formattedLoveLetter);
24417
- const loveLettersBox = new _ui_LoveLetters__WEBPACK_IMPORTED_MODULE_13__.LoveLetters();
24429
+ const loveLettersBox = new _ui_LoveLetters__WEBPACK_IMPORTED_MODULE_12__.LoveLetters();
24418
24430
  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);
24419
24431
  setTimeout(() => {
24420
24432
  this.processLoveLetterQueue();
@@ -24457,7 +24469,7 @@ class ArcwarePixelStreaming extends _epicgames_ps_lib_pixelstreamingfrontend_ue5
24457
24469
  }
24458
24470
  toggleMic(enable, isDefault) {
24459
24471
  var _a, _b;
24460
- (_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);
24472
+ (_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_10__.Flags.UseMic, enable);
24461
24473
  if (!isDefault) {
24462
24474
  (_b = this === null || this === void 0 ? void 0 : this.microphoneOverlay) === null || _b === void 0 ? void 0 : _b.toggleMessage(enable);
24463
24475
  setTimeout(() => { var _a; return (_a = this === null || this === void 0 ? void 0 : this.microphoneOverlay) === null || _a === void 0 ? void 0 : _a.toggleVisibility(true); }, 200);
@@ -24486,7 +24498,7 @@ class ArcwarePixelStreaming extends _epicgames_ps_lib_pixelstreamingfrontend_ue5
24486
24498
  removeXRIconIfDisabled() {
24487
24499
  var _a, _b, _c, _d, _e;
24488
24500
  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)) {
24489
- (_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);
24501
+ (_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_10__.Flags.XRControllerInput, false);
24490
24502
  if (this.videoElementParent) {
24491
24503
  if ((_d = this === null || this === void 0 ? void 0 : this.videoElementParent) === null || _d === void 0 ? void 0 : _d.parentElement) {
24492
24504
  const xrBtn = (_e = this === null || this === void 0 ? void 0 : this.videoElementParent) === null || _e === void 0 ? void 0 : _e.parentElement.querySelector("#xrBtn");
@@ -24496,7 +24508,7 @@ class ArcwarePixelStreaming extends _epicgames_ps_lib_pixelstreamingfrontend_ue5
24496
24508
  }
24497
24509
  }
24498
24510
  injectCustomUI() {
24499
- (0,_features_common__WEBPACK_IMPORTED_MODULE_14__.waitForElement)("#stream-ui").then((el) => {
24511
+ (0,_features_common__WEBPACK_IMPORTED_MODULE_13__.waitForElement)("#stream-ui").then((el) => {
24500
24512
  var _a;
24501
24513
  const videoElementParent = (_a = this === null || this === void 0 ? void 0 : this.videoElementParent) === null || _a === void 0 ? void 0 : _a.parentElement;
24502
24514
  if (videoElementParent) {
@@ -24717,14 +24729,12 @@ const ArcwareSettingsSchema = zod__WEBPACK_IMPORTED_MODULE_2__.z.object({
24717
24729
  connectionStrengthIcon: zod__WEBPACK_IMPORTED_MODULE_2__.z.boolean().optional(),
24718
24730
  /** ShareId, used for sharing your project.
24719
24731
  * Using ArcwareInit will set this required property for you. */
24720
- shareId: zod__WEBPACK_IMPORTED_MODULE_2__.z.string().startsWith("share-").optional(),
24732
+ shareId: zod__WEBPACK_IMPORTED_MODULE_2__.z.string().startsWith("share-"),
24721
24733
  /** Id of your project, only required if your shareId refers to multiple projects.
24722
24734
  * Using ArcwareInit will set this required property for you. */
24723
24735
  projectId: zod__WEBPACK_IMPORTED_MODULE_2__.z.string().optional(),
24724
24736
  /** Enable/Disable LoveLetter logging to the console. */
24725
24737
  loveLetterLogging: zod__WEBPACK_IMPORTED_MODULE_2__.z.boolean().optional(),
24726
- /** Enable/Disable Connection Identifier logging to the console. */
24727
- connectionIdentifierLoggingDisabled: zod__WEBPACK_IMPORTED_MODULE_2__.z.boolean().optional(),
24728
24738
  /** Width with which instance should be started */
24729
24739
  startWidth: zod__WEBPACK_IMPORTED_MODULE_2__.z.number().optional(),
24730
24740
  /** Height with which instance should be started */
@@ -24742,80 +24752,6 @@ const ArcwareSettingsSchema = zod__WEBPACK_IMPORTED_MODULE_2__.z.object({
24742
24752
  });
24743
24753
 
24744
24754
 
24745
- /***/ }),
24746
-
24747
- /***/ 5999:
24748
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
24749
-
24750
- __webpack_require__.r(__webpack_exports__);
24751
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
24752
- /* harmony export */ "ConnectionIdentifier": () => (/* binding */ ConnectionIdentifier),
24753
- /* harmony export */ "WebsocketState": () => (/* binding */ WebsocketState)
24754
- /* harmony export */ });
24755
- var WebsocketState;
24756
- (function (WebsocketState) {
24757
- // Socket has been created. The connection is not yet open.
24758
- WebsocketState[WebsocketState["CONNECTING"] = 0] = "CONNECTING";
24759
- // The connection is open and ready to communicate.
24760
- WebsocketState[WebsocketState["OPEN"] = 1] = "OPEN";
24761
- // The connection is in the process of closing.
24762
- WebsocketState[WebsocketState["CLOSING"] = 2] = "CLOSING";
24763
- // The connection is closed or couldn't be opened.
24764
- WebsocketState[WebsocketState["CLOSED"] = 3] = "CLOSED";
24765
- })(WebsocketState || (WebsocketState = {}));
24766
- class ConnectionIdentifier {
24767
- static get Instance() {
24768
- if (!this.instance) {
24769
- this.instance = new ConnectionIdentifier();
24770
- }
24771
- return this.instance;
24772
- }
24773
- get WebsocketStates() {
24774
- return this.aps.map((ps) => ps.websocketState);
24775
- }
24776
- constructor() {
24777
- this.aps = [];
24778
- this.enabled = true;
24779
- }
24780
- register(ps) {
24781
- var _a;
24782
- if (!this.aps.includes(ps)) {
24783
- this.aps.push(ps);
24784
- if ((_a = ps.config.settings) === null || _a === void 0 ? void 0 : _a.connectionIdentifierLoggingDisabled)
24785
- this.disable();
24786
- }
24787
- if (!this.interval)
24788
- this.interval = setInterval(this.connectionWatcher.bind(this), 10 * 1000);
24789
- }
24790
- GetWebSocketStates() {
24791
- return this.aps.map((ps) => ps.websocketState);
24792
- }
24793
- ActiveInstances() {
24794
- return this.GetWebSocketStates().filter((state) => state <= WebsocketState.OPEN).length;
24795
- }
24796
- disable() {
24797
- this.enabled = false;
24798
- }
24799
- /**
24800
- * The purpose of this method is to periodically tell the developer the amount of connected instances.
24801
- * This way the developer can figure out, when they messed up the implementation and there's shadow instances still running.
24802
- * Or when they accidentally set up multiple connections!
24803
- * Things like that can happen, for example if the React.useEffect was not setup perfectly!
24804
- */
24805
- connectionWatcher() {
24806
- if (!this.enabled)
24807
- return;
24808
- const activeStates = this.GetWebSocketStates().filter((state) => state <= WebsocketState.OPEN);
24809
- if (activeStates.length === 1) {
24810
- //console.log(`PixelStreaming Instance is connected.`);
24811
- }
24812
- else if (activeStates.length !== 0) {
24813
- console.warn(`${activeStates.length} PixelStreaming Instances are connected!`);
24814
- }
24815
- }
24816
- }
24817
-
24818
-
24819
24755
  /***/ }),
24820
24756
 
24821
24757
  /***/ 3379:
@@ -25755,7 +25691,8 @@ __webpack_require__.r(__webpack_exports__);
25755
25691
  /* harmony export */ "ArcwareInit": () => (/* reexport safe */ _ArcwareInit__WEBPACK_IMPORTED_MODULE_3__.ArcwareInit),
25756
25692
  /* harmony export */ "ArcwarePixelStreaming": () => (/* reexport safe */ _ArcwarePixelStreaming__WEBPACK_IMPORTED_MODULE_2__.ArcwarePixelStreaming),
25757
25693
  /* harmony export */ "ArcwareStyles": () => (/* reexport safe */ _styles_ArcwarePixelStreamingApplicationStyles__WEBPACK_IMPORTED_MODULE_4__.ArcwareStyles),
25758
- /* harmony export */ "DefaultUrl": () => (/* reexport safe */ _ArcwareConfig__WEBPACK_IMPORTED_MODULE_1__.DefaultUrl)
25694
+ /* harmony export */ "DefaultUrl": () => (/* reexport safe */ _ArcwareConfig__WEBPACK_IMPORTED_MODULE_1__.DefaultUrl),
25695
+ /* harmony export */ "WebsocketState": () => (/* reexport safe */ _ArcwarePixelStreaming__WEBPACK_IMPORTED_MODULE_2__.WebsocketState)
25759
25696
  /* harmony export */ });
25760
25697
  /* harmony import */ var _ArcwareApplication__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9783);
25761
25698
  /* harmony import */ var _ArcwareConfig__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3995);
@@ -32330,6 +32267,7 @@ __webpack_require__.r(__webpack_exports__);
32330
32267
  /* harmony export */ "WebSocketTransport": () => (/* reexport safe */ _epicgames_ps_lib_pixelstreamingfrontend_ue5_5__WEBPACK_IMPORTED_MODULE_0__.WebSocketTransport),
32331
32268
  /* harmony export */ "WebSocketTransportNJS": () => (/* reexport safe */ _epicgames_ps_lib_pixelstreamingfrontend_ue5_5__WEBPACK_IMPORTED_MODULE_0__.WebSocketTransportNJS),
32332
32269
  /* harmony export */ "WebXRController": () => (/* reexport safe */ _epicgames_ps_lib_pixelstreamingfrontend_ue5_5__WEBPACK_IMPORTED_MODULE_0__.WebXRController),
32270
+ /* harmony export */ "WebsocketState": () => (/* reexport safe */ _lib__WEBPACK_IMPORTED_MODULE_2__.WebsocketState),
32333
32271
  /* harmony export */ "XrFrameEvent": () => (/* reexport safe */ _epicgames_ps_lib_pixelstreamingfrontend_ue5_5__WEBPACK_IMPORTED_MODULE_0__.XrFrameEvent),
32334
32272
  /* harmony export */ "XrSessionEndedEvent": () => (/* reexport safe */ _epicgames_ps_lib_pixelstreamingfrontend_ue5_5__WEBPACK_IMPORTED_MODULE_0__.XrSessionEndedEvent),
32335
32273
  /* harmony export */ "XrSessionStartedEvent": () => (/* reexport safe */ _epicgames_ps_lib_pixelstreamingfrontend_ue5_5__WEBPACK_IMPORTED_MODULE_0__.XrSessionStartedEvent),
@@ -32457,6 +32395,7 @@ var __webpack_exports__WebRtcTCPRelayDetectedEvent = __webpack_exports__.WebRtcT
32457
32395
  var __webpack_exports__WebSocketTransport = __webpack_exports__.WebSocketTransport;
32458
32396
  var __webpack_exports__WebSocketTransportNJS = __webpack_exports__.WebSocketTransportNJS;
32459
32397
  var __webpack_exports__WebXRController = __webpack_exports__.WebXRController;
32398
+ var __webpack_exports__WebsocketState = __webpack_exports__.WebsocketState;
32460
32399
  var __webpack_exports__XrFrameEvent = __webpack_exports__.XrFrameEvent;
32461
32400
  var __webpack_exports__XrSessionEndedEvent = __webpack_exports__.XrSessionEndedEvent;
32462
32401
  var __webpack_exports__XrSessionStartedEvent = __webpack_exports__.XrSessionStartedEvent;
@@ -32465,4 +32404,4 @@ var __webpack_exports__isNumericId = __webpack_exports__.isNumericId;
32465
32404
  var __webpack_exports__isOptionId = __webpack_exports__.isOptionId;
32466
32405
  var __webpack_exports__isTextId = __webpack_exports__.isTextId;
32467
32406
  var __webpack_exports__overrideLogger = __webpack_exports__.overrideLogger;
32468
- export { __webpack_exports__AFKOverlay as AFKOverlay, __webpack_exports__ActionOverlay as ActionOverlay, __webpack_exports__AfkLogic as AfkLogic, __webpack_exports__AfkTimedOutEvent as AfkTimedOutEvent, __webpack_exports__AfkWarningActivateEvent as AfkWarningActivateEvent, __webpack_exports__AfkWarningDeactivateEvent as AfkWarningDeactivateEvent, __webpack_exports__AfkWarningUpdateEvent as AfkWarningUpdateEvent, __webpack_exports__AggregatedStats as AggregatedStats, __webpack_exports__Application as Application, __webpack_exports__ArcwareApplication as ArcwareApplication, __webpack_exports__ArcwareConfig as ArcwareConfig, __webpack_exports__ArcwareInit as ArcwareInit, __webpack_exports__ArcwarePixelStreaming as ArcwarePixelStreaming, __webpack_exports__ArcwareStyles as ArcwareStyles, __webpack_exports__CandidatePairStats as CandidatePairStats, __webpack_exports__CandidateStat as CandidateStat, __webpack_exports__Config as Config, __webpack_exports__ConfigUI as ConfigUI, __webpack_exports__ConnectOverlay as ConnectOverlay, __webpack_exports__ControlSchemeType as ControlSchemeType, __webpack_exports__DataChannelCloseEvent as DataChannelCloseEvent, __webpack_exports__DataChannelErrorEvent as DataChannelErrorEvent, __webpack_exports__DataChannelLatencyTestRecord as DataChannelLatencyTestRecord, __webpack_exports__DataChannelLatencyTestResponseEvent as DataChannelLatencyTestResponseEvent, __webpack_exports__DataChannelLatencyTestResultEvent as DataChannelLatencyTestResultEvent, __webpack_exports__DataChannelOpenEvent as DataChannelOpenEvent, __webpack_exports__DataChannelStats as DataChannelStats, __webpack_exports__DefaultUrl as DefaultUrl, __webpack_exports__DisconnectOverlay as DisconnectOverlay, __webpack_exports__EncoderSettings as EncoderSettings, __webpack_exports__ErrorOverlay as ErrorOverlay, __webpack_exports__EventEmitter as EventEmitter, __webpack_exports__Flags as Flags, __webpack_exports__FrameTimingInfo as FrameTimingInfo, __webpack_exports__HideFreezeFrameEvent as HideFreezeFrameEvent, __webpack_exports__InboundAudioStats as InboundAudioStats, __webpack_exports__InboundVideoStats as InboundVideoStats, __webpack_exports__InfoOverlay as InfoOverlay, __webpack_exports__InitialSettings as InitialSettings, __webpack_exports__InitialSettingsEvent as InitialSettingsEvent, __webpack_exports__InputCoordTranslator as InputCoordTranslator, __webpack_exports__KeepaliveMonitor as KeepaliveMonitor, __webpack_exports__LatencyCalculatedEvent as LatencyCalculatedEvent, __webpack_exports__LatencyCalculator as LatencyCalculator, __webpack_exports__LatencyInfo as LatencyInfo, __webpack_exports__LatencyTestResultEvent as LatencyTestResultEvent, __webpack_exports__LatencyTestResults as LatencyTestResults, __webpack_exports__LoadFreezeFrameEvent as LoadFreezeFrameEvent, __webpack_exports__LogLevel as LogLevel, __webpack_exports__Logger as Logger, __webpack_exports__MessageDirection as MessageDirection, __webpack_exports__MessageHelpers as MessageHelpers, __webpack_exports__MessageRegistry as MessageRegistry, __webpack_exports__Messages as Messages, __webpack_exports__NumericParameters as NumericParameters, __webpack_exports__OptionParameters as OptionParameters, __webpack_exports__OutboundRTPStats as OutboundRTPStats, __webpack_exports__OverlayBase as OverlayBase, __webpack_exports__PixelStreaming as PixelStreaming, __webpack_exports__PixelStreamingApplicationStyle as PixelStreamingApplicationStyle, __webpack_exports__PixelStreamingEventEmitter as PixelStreamingEventEmitter, __webpack_exports__PixelStreamingSettings as PixelStreamingSettings, __webpack_exports__PlayOverlay as PlayOverlay, __webpack_exports__PlayStreamErrorEvent as PlayStreamErrorEvent, __webpack_exports__PlayStreamEvent as PlayStreamEvent, __webpack_exports__PlayStreamRejectedEvent as PlayStreamRejectedEvent, __webpack_exports__PlayerCountEvent as PlayerCountEvent, __webpack_exports__RemoteOutboundRTPStats as RemoteOutboundRTPStats, __webpack_exports__SDPUtils as SDPUtils, __webpack_exports__SettingBase as SettingBase, __webpack_exports__SettingFlag as SettingFlag, __webpack_exports__SettingNumber as SettingNumber, __webpack_exports__SettingOption as SettingOption, __webpack_exports__SettingText as SettingText, __webpack_exports__SettingUIBase as SettingUIBase, __webpack_exports__SettingUIFlag as SettingUIFlag, __webpack_exports__SettingUINumber as SettingUINumber, __webpack_exports__SettingUIOption as SettingUIOption, __webpack_exports__SettingUIText as SettingUIText, __webpack_exports__SettingsChangedEvent as SettingsChangedEvent, __webpack_exports__ShowOnScreenKeyboardEvent as ShowOnScreenKeyboardEvent, __webpack_exports__SignallingProtocol as SignallingProtocol, __webpack_exports__StatsReceivedEvent as StatsReceivedEvent, __webpack_exports__StreamLoadingEvent as StreamLoadingEvent, __webpack_exports__StreamPreConnectEvent as StreamPreConnectEvent, __webpack_exports__StreamPreDisconnectEvent as StreamPreDisconnectEvent, __webpack_exports__StreamReconnectEvent as StreamReconnectEvent, __webpack_exports__StreamerIDChangedMessageEvent as StreamerIDChangedMessageEvent, __webpack_exports__StreamerListMessageEvent as StreamerListMessageEvent, __webpack_exports__SubscribeFailedEvent as SubscribeFailedEvent, __webpack_exports__TextOverlay as TextOverlay, __webpack_exports__TextParameters as TextParameters, __webpack_exports__UIElementCreationMode as UIElementCreationMode, __webpack_exports__VideoEncoderAvgQPEvent as VideoEncoderAvgQPEvent, __webpack_exports__VideoInitializedEvent as VideoInitializedEvent, __webpack_exports__WebRTCSettings as WebRTCSettings, __webpack_exports__WebRtcAutoConnectEvent as WebRtcAutoConnectEvent, __webpack_exports__WebRtcConnectedEvent as WebRtcConnectedEvent, __webpack_exports__WebRtcConnectingEvent as WebRtcConnectingEvent, __webpack_exports__WebRtcDisconnectedEvent as WebRtcDisconnectedEvent, __webpack_exports__WebRtcFailedEvent as WebRtcFailedEvent, __webpack_exports__WebRtcPlayerController as WebRtcPlayerController, __webpack_exports__WebRtcSdpAnswerEvent as WebRtcSdpAnswerEvent, __webpack_exports__WebRtcSdpEvent as WebRtcSdpEvent, __webpack_exports__WebRtcSdpOfferEvent as WebRtcSdpOfferEvent, __webpack_exports__WebRtcTCPRelayDetectedEvent as WebRtcTCPRelayDetectedEvent, __webpack_exports__WebSocketTransport as WebSocketTransport, __webpack_exports__WebSocketTransportNJS as WebSocketTransportNJS, __webpack_exports__WebXRController as WebXRController, __webpack_exports__XrFrameEvent as XrFrameEvent, __webpack_exports__XrSessionEndedEvent as XrSessionEndedEvent, __webpack_exports__XrSessionStartedEvent as XrSessionStartedEvent, __webpack_exports__isFlagId as isFlagId, __webpack_exports__isNumericId as isNumericId, __webpack_exports__isOptionId as isOptionId, __webpack_exports__isTextId as isTextId, __webpack_exports__overrideLogger as overrideLogger };
32407
+ export { __webpack_exports__AFKOverlay as AFKOverlay, __webpack_exports__ActionOverlay as ActionOverlay, __webpack_exports__AfkLogic as AfkLogic, __webpack_exports__AfkTimedOutEvent as AfkTimedOutEvent, __webpack_exports__AfkWarningActivateEvent as AfkWarningActivateEvent, __webpack_exports__AfkWarningDeactivateEvent as AfkWarningDeactivateEvent, __webpack_exports__AfkWarningUpdateEvent as AfkWarningUpdateEvent, __webpack_exports__AggregatedStats as AggregatedStats, __webpack_exports__Application as Application, __webpack_exports__ArcwareApplication as ArcwareApplication, __webpack_exports__ArcwareConfig as ArcwareConfig, __webpack_exports__ArcwareInit as ArcwareInit, __webpack_exports__ArcwarePixelStreaming as ArcwarePixelStreaming, __webpack_exports__ArcwareStyles as ArcwareStyles, __webpack_exports__CandidatePairStats as CandidatePairStats, __webpack_exports__CandidateStat as CandidateStat, __webpack_exports__Config as Config, __webpack_exports__ConfigUI as ConfigUI, __webpack_exports__ConnectOverlay as ConnectOverlay, __webpack_exports__ControlSchemeType as ControlSchemeType, __webpack_exports__DataChannelCloseEvent as DataChannelCloseEvent, __webpack_exports__DataChannelErrorEvent as DataChannelErrorEvent, __webpack_exports__DataChannelLatencyTestRecord as DataChannelLatencyTestRecord, __webpack_exports__DataChannelLatencyTestResponseEvent as DataChannelLatencyTestResponseEvent, __webpack_exports__DataChannelLatencyTestResultEvent as DataChannelLatencyTestResultEvent, __webpack_exports__DataChannelOpenEvent as DataChannelOpenEvent, __webpack_exports__DataChannelStats as DataChannelStats, __webpack_exports__DefaultUrl as DefaultUrl, __webpack_exports__DisconnectOverlay as DisconnectOverlay, __webpack_exports__EncoderSettings as EncoderSettings, __webpack_exports__ErrorOverlay as ErrorOverlay, __webpack_exports__EventEmitter as EventEmitter, __webpack_exports__Flags as Flags, __webpack_exports__FrameTimingInfo as FrameTimingInfo, __webpack_exports__HideFreezeFrameEvent as HideFreezeFrameEvent, __webpack_exports__InboundAudioStats as InboundAudioStats, __webpack_exports__InboundVideoStats as InboundVideoStats, __webpack_exports__InfoOverlay as InfoOverlay, __webpack_exports__InitialSettings as InitialSettings, __webpack_exports__InitialSettingsEvent as InitialSettingsEvent, __webpack_exports__InputCoordTranslator as InputCoordTranslator, __webpack_exports__KeepaliveMonitor as KeepaliveMonitor, __webpack_exports__LatencyCalculatedEvent as LatencyCalculatedEvent, __webpack_exports__LatencyCalculator as LatencyCalculator, __webpack_exports__LatencyInfo as LatencyInfo, __webpack_exports__LatencyTestResultEvent as LatencyTestResultEvent, __webpack_exports__LatencyTestResults as LatencyTestResults, __webpack_exports__LoadFreezeFrameEvent as LoadFreezeFrameEvent, __webpack_exports__LogLevel as LogLevel, __webpack_exports__Logger as Logger, __webpack_exports__MessageDirection as MessageDirection, __webpack_exports__MessageHelpers as MessageHelpers, __webpack_exports__MessageRegistry as MessageRegistry, __webpack_exports__Messages as Messages, __webpack_exports__NumericParameters as NumericParameters, __webpack_exports__OptionParameters as OptionParameters, __webpack_exports__OutboundRTPStats as OutboundRTPStats, __webpack_exports__OverlayBase as OverlayBase, __webpack_exports__PixelStreaming as PixelStreaming, __webpack_exports__PixelStreamingApplicationStyle as PixelStreamingApplicationStyle, __webpack_exports__PixelStreamingEventEmitter as PixelStreamingEventEmitter, __webpack_exports__PixelStreamingSettings as PixelStreamingSettings, __webpack_exports__PlayOverlay as PlayOverlay, __webpack_exports__PlayStreamErrorEvent as PlayStreamErrorEvent, __webpack_exports__PlayStreamEvent as PlayStreamEvent, __webpack_exports__PlayStreamRejectedEvent as PlayStreamRejectedEvent, __webpack_exports__PlayerCountEvent as PlayerCountEvent, __webpack_exports__RemoteOutboundRTPStats as RemoteOutboundRTPStats, __webpack_exports__SDPUtils as SDPUtils, __webpack_exports__SettingBase as SettingBase, __webpack_exports__SettingFlag as SettingFlag, __webpack_exports__SettingNumber as SettingNumber, __webpack_exports__SettingOption as SettingOption, __webpack_exports__SettingText as SettingText, __webpack_exports__SettingUIBase as SettingUIBase, __webpack_exports__SettingUIFlag as SettingUIFlag, __webpack_exports__SettingUINumber as SettingUINumber, __webpack_exports__SettingUIOption as SettingUIOption, __webpack_exports__SettingUIText as SettingUIText, __webpack_exports__SettingsChangedEvent as SettingsChangedEvent, __webpack_exports__ShowOnScreenKeyboardEvent as ShowOnScreenKeyboardEvent, __webpack_exports__SignallingProtocol as SignallingProtocol, __webpack_exports__StatsReceivedEvent as StatsReceivedEvent, __webpack_exports__StreamLoadingEvent as StreamLoadingEvent, __webpack_exports__StreamPreConnectEvent as StreamPreConnectEvent, __webpack_exports__StreamPreDisconnectEvent as StreamPreDisconnectEvent, __webpack_exports__StreamReconnectEvent as StreamReconnectEvent, __webpack_exports__StreamerIDChangedMessageEvent as StreamerIDChangedMessageEvent, __webpack_exports__StreamerListMessageEvent as StreamerListMessageEvent, __webpack_exports__SubscribeFailedEvent as SubscribeFailedEvent, __webpack_exports__TextOverlay as TextOverlay, __webpack_exports__TextParameters as TextParameters, __webpack_exports__UIElementCreationMode as UIElementCreationMode, __webpack_exports__VideoEncoderAvgQPEvent as VideoEncoderAvgQPEvent, __webpack_exports__VideoInitializedEvent as VideoInitializedEvent, __webpack_exports__WebRTCSettings as WebRTCSettings, __webpack_exports__WebRtcAutoConnectEvent as WebRtcAutoConnectEvent, __webpack_exports__WebRtcConnectedEvent as WebRtcConnectedEvent, __webpack_exports__WebRtcConnectingEvent as WebRtcConnectingEvent, __webpack_exports__WebRtcDisconnectedEvent as WebRtcDisconnectedEvent, __webpack_exports__WebRtcFailedEvent as WebRtcFailedEvent, __webpack_exports__WebRtcPlayerController as WebRtcPlayerController, __webpack_exports__WebRtcSdpAnswerEvent as WebRtcSdpAnswerEvent, __webpack_exports__WebRtcSdpEvent as WebRtcSdpEvent, __webpack_exports__WebRtcSdpOfferEvent as WebRtcSdpOfferEvent, __webpack_exports__WebRtcTCPRelayDetectedEvent as WebRtcTCPRelayDetectedEvent, __webpack_exports__WebSocketTransport as WebSocketTransport, __webpack_exports__WebSocketTransportNJS as WebSocketTransportNJS, __webpack_exports__WebXRController as WebXRController, __webpack_exports__WebsocketState as WebsocketState, __webpack_exports__XrFrameEvent as XrFrameEvent, __webpack_exports__XrSessionEndedEvent as XrSessionEndedEvent, __webpack_exports__XrSessionStartedEvent as XrSessionStartedEvent, __webpack_exports__isFlagId as isFlagId, __webpack_exports__isNumericId as isNumericId, __webpack_exports__isOptionId as isOptionId, __webpack_exports__isTextId as isTextId, __webpack_exports__overrideLogger as overrideLogger };
package/index.umd.js CHANGED
@@ -23462,7 +23462,7 @@ class ArcwareConfig extends lib_pixelstreamingfrontend_ue5_5_1.Config {
23462
23462
  if (!config.initialSettings.ss)
23463
23463
  config.initialSettings.ss = exports.DefaultUrl;
23464
23464
  super(config);
23465
- this.VERSION = "1.3.19";
23465
+ this.VERSION = "1.3.21";
23466
23466
  this.whiteLabellingChanged = new EventHandler_1.EventHandler();
23467
23467
  this.signallingWlURL = "https://signalling-client.arcware.cloud/whiteLabel/";
23468
23468
  if (config.envName) {
@@ -23479,11 +23479,16 @@ class ArcwareConfig extends lib_pixelstreamingfrontend_ue5_5_1.Config {
23479
23479
  if (this.useUrlParams) {
23480
23480
  // Get the query string from URL
23481
23481
  const qs = new URLSearchParams(window.location.search);
23482
- if (qs.has("wl") && qs.get("wl") !== "") {
23483
- // Retrieve image loading from there
23484
- const wlParsed = this.useUrlParams ? (0, whiteLabelling_1.readWhiteLabelFromQuery)(qs) : undefined; // respect useUrlParams
23485
- if (wlParsed) {
23486
- this.settings.whiteLabelling = Object.assign(Object.assign({}, ((_c = this.settings.whiteLabelling) !== null && _c !== void 0 ? _c : {})), wlParsed);
23482
+ if (qs.has("wl")) {
23483
+ if (qs.get("wl") !== "") {
23484
+ // Retrieve image loading from there
23485
+ const wlParsed = this.useUrlParams ? (0, whiteLabelling_1.readWhiteLabelFromQuery)(qs) : undefined; // respect useUrlParams
23486
+ if (wlParsed) {
23487
+ this.settings.whiteLabelling = Object.assign(Object.assign({}, ((_c = this.settings.whiteLabelling) !== null && _c !== void 0 ? _c : {})), wlParsed);
23488
+ }
23489
+ }
23490
+ else {
23491
+ this.settings.fetchRemoteWhiteLabelling = true;
23487
23492
  }
23488
23493
  }
23489
23494
  this.settings.infoButton = qs.has("i") || qs.has("info");
@@ -23492,9 +23497,13 @@ class ArcwareConfig extends lib_pixelstreamingfrontend_ue5_5_1.Config {
23492
23497
  getWhiteLabelling(ShareId) {
23493
23498
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
23494
23499
  const qs = new URLSearchParams(window.location.search);
23495
- // Only fetch when wl param is present and empty (as before)
23496
- if (!(qs.has("wl") && qs.get("wl") === ""))
23500
+ if (qs.get("wl") !== "") {
23501
+ EventHandler_1.EventHandler.Emit(this.whiteLabellingChanged, {
23502
+ next: this.settings.whiteLabelling,
23503
+ changed: false
23504
+ });
23497
23505
  return undefined;
23506
+ }
23498
23507
  // Build final URL safely (trim trailing slashes, encode ShareId)
23499
23508
  const base = this.signallingWlURL.replace(/\/+$/, "");
23500
23509
  const requestUrl = `${base}/${encodeURIComponent(ShareId)}`;
@@ -23610,8 +23619,9 @@ let globalConfig = null;
23610
23619
  let globalApplication = null;
23611
23620
  let previousShareId = null;
23612
23621
  let previousProjectId = null;
23613
- function ArcwareInit({ shareId, projectId }, configuration, forceRefresh = false) {
23622
+ function ArcwareInit(ids, configuration, forceRefresh = false) {
23614
23623
  var _a;
23624
+ const { shareId, projectId } = ids;
23615
23625
  if (shareId && !shareId.startsWith("share-"))
23616
23626
  throw new Error(`Unexpected shareId-format: '${shareId}'.`);
23617
23627
  if (shareId && previousShareId !== shareId) {
@@ -23642,9 +23652,12 @@ function ArcwareInit({ shareId, projectId }, configuration, forceRefresh = false
23642
23652
  }
23643
23653
  const Config = new ArcwareConfig_1.ArcwareConfig({
23644
23654
  useUrlParams: (configuration === null || configuration === void 0 ? void 0 : configuration.useUrlParams) === true,
23645
- initialSettings: Object.assign({ ss: ArcwareConfig_1.DefaultUrl, AutoConnect: false, StartVideoMuted: true, AutoPlayVideo: true, KeyboardInput: true, MouseInput: true, GamepadInput: true, TouchInput: true, XRControllerInput: true, UseMic: true, SuppressBrowserKeys: true, FakeMouseWithTouches: false, ForceMonoAudio: false, HoveringMouse: true }, configuration === null || configuration === void 0 ? void 0 : configuration.initialSettings),
23655
+ initialSettings: Object.assign({ ss: ArcwareConfig_1.DefaultUrl, AutoConnect: false, AutoPlayVideo: true, HoveringMouse: true, ForceMonoAudio: false, FakeMouseWithTouches: false, StartVideoMuted: true, SuppressBrowserKeys: true, UseMic: true, KeyboardInput: true, MouseInput: true, TouchInput: true, GamepadInput: true, XRControllerInput: true }, configuration === null || configuration === void 0 ? void 0 : configuration.initialSettings),
23646
23656
  settings: Object.assign({ shareId,
23647
- projectId, fullscreenButton: true, audioButton: true, stopButton: false, infoButton: false, micButton: false, settingsButton: false, connectionStrengthIcon: false, connectionIdentifierLoggingDisabled: undefined, errorHandler: undefined, loveLetterHandler: undefined, loveLetterLogging: undefined, queueHandler: undefined, sessionIdHandler: undefined, startHeight: undefined, startWidth: undefined, orientationZoom: undefined, whiteLabelling: {
23657
+ projectId, fullscreenButton: true, audioButton: true, stopButton: false, infoButton: false, micButton: false, settingsButton: false, connectionStrengthIcon: false, errorHandler: undefined, loveLetterHandler: undefined, loveLetterLogging: undefined, queueHandler: undefined, sessionIdHandler: undefined, startHeight: undefined, startWidth: undefined, orientationZoom: {
23658
+ landscape: 0,
23659
+ portrait: 0
23660
+ }, whiteLabelling: {
23648
23661
  splashScreenUrl: undefined,
23649
23662
  loadingIconFadeMs: undefined,
23650
23663
  loadingIconUrl: undefined,
@@ -23678,7 +23691,7 @@ exports.ArcwareInit = ArcwareInit;
23678
23691
 
23679
23692
 
23680
23693
  Object.defineProperty(exports, "__esModule", ({ value: true }));
23681
- exports.ArcwarePixelStreaming = void 0;
23694
+ exports.ArcwarePixelStreaming = exports.WebsocketState = void 0;
23682
23695
  const tslib_1 = __webpack_require__(655);
23683
23696
  const shared_pixelstreaming_websdk_1 = __webpack_require__(7910);
23684
23697
  const lib_pixelstreamingfrontend_ue5_5_1 = __webpack_require__(693);
@@ -23689,9 +23702,19 @@ const debounce_1 = __webpack_require__(9580);
23689
23702
  const LoveLetters_1 = __webpack_require__(4572);
23690
23703
  const ArcwareLogoLoader_1 = __webpack_require__(6469);
23691
23704
  const MicrophoneOverlay_1 = __webpack_require__(3613);
23692
- const ConnectionIdentifier_1 = __webpack_require__(5999);
23693
23705
  const DiagnosticsCollector_1 = __webpack_require__(8429);
23694
23706
  const common_1 = __webpack_require__(2483);
23707
+ var WebsocketState;
23708
+ (function (WebsocketState) {
23709
+ // Socket has been created. The connection is not yet open.
23710
+ WebsocketState[WebsocketState["CONNECTING"] = 0] = "CONNECTING";
23711
+ // The connection is open and ready to communicate.
23712
+ WebsocketState[WebsocketState["OPEN"] = 1] = "OPEN";
23713
+ // The connection is in the process of closing.
23714
+ WebsocketState[WebsocketState["CLOSING"] = 2] = "CLOSING";
23715
+ // The connection is closed or couldn't be opened.
23716
+ WebsocketState[WebsocketState["CLOSED"] = 3] = "CLOSED";
23717
+ })(WebsocketState = exports.WebsocketState || (exports.WebsocketState = {}));
23695
23718
  class ArcwarePixelStreaming extends lib_pixelstreamingfrontend_ue5_5_1.PixelStreaming {
23696
23719
  resetInitGuardsAndHooks() {
23697
23720
  this.videoInitializedSent = false;
@@ -23763,14 +23786,6 @@ class ArcwarePixelStreaming extends lib_pixelstreamingfrontend_ue5_5_1.PixelStre
23763
23786
  const ws = (_b = (_a = this.webRtcController) === null || _a === void 0 ? void 0 : _a.transport) === null || _b === void 0 ? void 0 : _b.webSocket;
23764
23787
  return !!ws && ws.readyState === WebSocket.OPEN;
23765
23788
  }
23766
- /** Returns a list of WebSocketStates of all PixelStreaming Instances generated. */
23767
- get WebsocketStates() {
23768
- return ConnectionIdentifier_1.ConnectionIdentifier.Instance.GetWebSocketStates();
23769
- }
23770
- /** Counts all active PixelStreaming Instances generated. (CONNECTING & CONNECTED) */
23771
- get ActiveInstances() {
23772
- return ConnectionIdentifier_1.ConnectionIdentifier.Instance.ActiveInstances;
23773
- }
23774
23789
  /** Returns this PixelStreaming Instances websocket state. */
23775
23790
  get websocketState() {
23776
23791
  var _a, _b, _c;
@@ -23903,7 +23918,6 @@ class ArcwarePixelStreaming extends lib_pixelstreamingfrontend_ue5_5_1.PixelStre
23903
23918
  this.sessionIdHandler.add(this.config.settings.sessionIdHandler);
23904
23919
  if (this.config.settings.loveLetterHandler)
23905
23920
  this.loveLetterHandler.add(this.config.settings.loveLetterHandler);
23906
- ConnectionIdentifier_1.ConnectionIdentifier.Instance.register(this);
23907
23921
  this.removeXRIconIfDisabled();
23908
23922
  this.handleMouseLock();
23909
23923
  }
@@ -24025,8 +24039,6 @@ class ArcwarePixelStreaming extends lib_pixelstreamingfrontend_ue5_5_1.PixelStre
24025
24039
  Object.entries(streamInfo.streamInfo.webSdkSettings.conf).forEach(([key, value]) => {
24026
24040
  const k = key;
24027
24041
  this.config.settings[k] = value;
24028
- if (key === "connectionIdentifierLoggingDisabled" && value === true)
24029
- ConnectionIdentifier_1.ConnectionIdentifier.Instance.disable();
24030
24042
  });
24031
24043
  }
24032
24044
  }
@@ -24694,14 +24706,12 @@ exports.ArcwareSettingsSchema = zod_1.z.object({
24694
24706
  connectionStrengthIcon: zod_1.z.boolean().optional(),
24695
24707
  /** ShareId, used for sharing your project.
24696
24708
  * Using ArcwareInit will set this required property for you. */
24697
- shareId: zod_1.z.string().startsWith("share-").optional(),
24709
+ shareId: zod_1.z.string().startsWith("share-"),
24698
24710
  /** Id of your project, only required if your shareId refers to multiple projects.
24699
24711
  * Using ArcwareInit will set this required property for you. */
24700
24712
  projectId: zod_1.z.string().optional(),
24701
24713
  /** Enable/Disable LoveLetter logging to the console. */
24702
24714
  loveLetterLogging: zod_1.z.boolean().optional(),
24703
- /** Enable/Disable Connection Identifier logging to the console. */
24704
- connectionIdentifierLoggingDisabled: zod_1.z.boolean().optional(),
24705
24715
  /** Width with which instance should be started */
24706
24716
  startWidth: zod_1.z.number().optional(),
24707
24717
  /** Height with which instance should be started */
@@ -24720,79 +24730,6 @@ exports.ArcwareSettingsSchema = zod_1.z.object({
24720
24730
  });
24721
24731
 
24722
24732
 
24723
- /***/ }),
24724
-
24725
- /***/ 5999:
24726
- /***/ ((__unused_webpack_module, exports) => {
24727
-
24728
-
24729
- Object.defineProperty(exports, "__esModule", ({ value: true }));
24730
- exports.ConnectionIdentifier = exports.WebsocketState = void 0;
24731
- var WebsocketState;
24732
- (function (WebsocketState) {
24733
- // Socket has been created. The connection is not yet open.
24734
- WebsocketState[WebsocketState["CONNECTING"] = 0] = "CONNECTING";
24735
- // The connection is open and ready to communicate.
24736
- WebsocketState[WebsocketState["OPEN"] = 1] = "OPEN";
24737
- // The connection is in the process of closing.
24738
- WebsocketState[WebsocketState["CLOSING"] = 2] = "CLOSING";
24739
- // The connection is closed or couldn't be opened.
24740
- WebsocketState[WebsocketState["CLOSED"] = 3] = "CLOSED";
24741
- })(WebsocketState = exports.WebsocketState || (exports.WebsocketState = {}));
24742
- class ConnectionIdentifier {
24743
- static get Instance() {
24744
- if (!this.instance) {
24745
- this.instance = new ConnectionIdentifier();
24746
- }
24747
- return this.instance;
24748
- }
24749
- get WebsocketStates() {
24750
- return this.aps.map((ps) => ps.websocketState);
24751
- }
24752
- constructor() {
24753
- this.aps = [];
24754
- this.enabled = true;
24755
- }
24756
- register(ps) {
24757
- var _a;
24758
- if (!this.aps.includes(ps)) {
24759
- this.aps.push(ps);
24760
- if ((_a = ps.config.settings) === null || _a === void 0 ? void 0 : _a.connectionIdentifierLoggingDisabled)
24761
- this.disable();
24762
- }
24763
- if (!this.interval)
24764
- this.interval = setInterval(this.connectionWatcher.bind(this), 10 * 1000);
24765
- }
24766
- GetWebSocketStates() {
24767
- return this.aps.map((ps) => ps.websocketState);
24768
- }
24769
- ActiveInstances() {
24770
- return this.GetWebSocketStates().filter((state) => state <= WebsocketState.OPEN).length;
24771
- }
24772
- disable() {
24773
- this.enabled = false;
24774
- }
24775
- /**
24776
- * The purpose of this method is to periodically tell the developer the amount of connected instances.
24777
- * This way the developer can figure out, when they messed up the implementation and there's shadow instances still running.
24778
- * Or when they accidentally set up multiple connections!
24779
- * Things like that can happen, for example if the React.useEffect was not setup perfectly!
24780
- */
24781
- connectionWatcher() {
24782
- if (!this.enabled)
24783
- return;
24784
- const activeStates = this.GetWebSocketStates().filter((state) => state <= WebsocketState.OPEN);
24785
- if (activeStates.length === 1) {
24786
- //console.log(`PixelStreaming Instance is connected.`);
24787
- }
24788
- else if (activeStates.length !== 0) {
24789
- console.warn(`${activeStates.length} PixelStreaming Instances are connected!`);
24790
- }
24791
- }
24792
- }
24793
- exports.ConnectionIdentifier = ConnectionIdentifier;
24794
-
24795
-
24796
24733
  /***/ }),
24797
24734
 
24798
24735
  /***/ 3379:
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.19",
4
+ "version": "1.3.21",
5
5
  "type": "commonjs",
6
6
  "main": "./index.umd.js",
7
7
  "module": "./index.esm.js",
@@ -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.19";
32
+ readonly VERSION = "1.3.21";
33
33
  readonly whiteLabellingChanged: EventHandler<{
34
34
  next: WhiteLabel;
35
35
  changed: boolean;
@@ -1,15 +1,19 @@
1
1
  import { ArcwareConfig, ArcwareConfigParams } from "./ArcwareConfig";
2
2
  import { ArcwarePixelStreaming } from "./ArcwarePixelStreaming";
3
3
  import { ArcwareApplication } from "./ArcwareApplication";
4
- type DeepPartial<T> = T extends Function ? T : T extends object ? {
5
- [P in keyof T]?: DeepPartial<T[P]>;
6
- } : T;
7
- export declare function ArcwareInit({ shareId, projectId }: {
8
- shareId?: string;
4
+ type ArcwareSettings = ArcwareConfigParams["settings"];
5
+ export type ArcwareInitConfiguration = Partial<Omit<ArcwareConfigParams, "settings">> & {
6
+ settings?: Partial<Omit<ArcwareSettings, "shareId" | "projectId">>;
7
+ };
8
+ export type ConnectionInfo = {
9
+ shareId: string;
9
10
  projectId?: string;
10
- }, configuration?: DeepPartial<ArcwareConfigParams>, forceRefresh?: boolean): {
11
+ };
12
+ /** What ArcwareInit returns. */
13
+ export interface ArcwareInitResult {
11
14
  Config: ArcwareConfig;
12
15
  PixelStreaming: ArcwarePixelStreaming;
13
16
  Application: ArcwareApplication;
14
- };
17
+ }
18
+ export declare function ArcwareInit(ids: ConnectionInfo, configuration?: ArcwareInitConfiguration, forceRefresh?: boolean): ArcwareInitResult;
15
19
  export {};
@@ -4,10 +4,15 @@ import { z } from "zod";
4
4
  import { ArcwareConfig } from "./ArcwareConfig";
5
5
  import { EventHandler } from "./domain/EventHandler";
6
6
  import { Session } from "./domain/Session";
7
- import { WebsocketState } from "./domain/ConnectionIdentifier";
8
7
  type OutboundByKey<K extends keyof typeof Messages.Send> = z.input<(typeof Messages.Send)[K]> & {
9
8
  type: K;
10
9
  };
10
+ export declare enum WebsocketState {
11
+ CONNECTING = 0,
12
+ OPEN = 1,
13
+ CLOSING = 2,
14
+ CLOSED = 3
15
+ }
11
16
  export declare class ArcwarePixelStreaming extends PixelStreaming {
12
17
  /** Override default config with ArcwareConfig. */
13
18
  config: ArcwareConfig;
@@ -37,10 +42,6 @@ export declare class ArcwarePixelStreaming extends PixelStreaming {
37
42
  private isRetryableClose;
38
43
  private bindTransportEvents;
39
44
  private get isWsOpen();
40
- /** Returns a list of WebSocketStates of all PixelStreaming Instances generated. */
41
- get WebsocketStates(): WebsocketState[];
42
- /** Counts all active PixelStreaming Instances generated. (CONNECTING & CONNECTED) */
43
- get ActiveInstances(): () => number;
44
45
  /** Returns this PixelStreaming Instances websocket state. */
45
46
  get websocketState(): WebsocketState;
46
47
  constructor(config: ArcwareConfig, overrides?: PixelStreamingOverrides);
@@ -109,14 +109,12 @@ export declare const ArcwareSettingsSchema: z.ZodObject<{
109
109
  connectionStrengthIcon: z.ZodOptional<z.ZodBoolean>;
110
110
  /** ShareId, used for sharing your project.
111
111
  * Using ArcwareInit will set this required property for you. */
112
- shareId: z.ZodOptional<z.ZodString>;
112
+ shareId: z.ZodString;
113
113
  /** Id of your project, only required if your shareId refers to multiple projects.
114
114
  * Using ArcwareInit will set this required property for you. */
115
115
  projectId: z.ZodOptional<z.ZodString>;
116
116
  /** Enable/Disable LoveLetter logging to the console. */
117
117
  loveLetterLogging: z.ZodOptional<z.ZodBoolean>;
118
- /** Enable/Disable Connection Identifier logging to the console. */
119
- connectionIdentifierLoggingDisabled: z.ZodOptional<z.ZodBoolean>;
120
118
  /** Width with which instance should be started */
121
119
  startWidth: z.ZodOptional<z.ZodNumber>;
122
120
  /** Height with which instance should be started */
@@ -200,7 +198,6 @@ export declare const ArcwareSettingsSchema: z.ZodObject<{
200
198
  shareId?: string;
201
199
  projectId?: string;
202
200
  loveLetterLogging?: boolean;
203
- connectionIdentifierLoggingDisabled?: boolean;
204
201
  startWidth?: number;
205
202
  startHeight?: number;
206
203
  orientationZoom?: {
@@ -256,7 +253,6 @@ export declare const ArcwareSettingsSchema: z.ZodObject<{
256
253
  shareId?: string;
257
254
  projectId?: string;
258
255
  loveLetterLogging?: boolean;
259
- connectionIdentifierLoggingDisabled?: boolean;
260
256
  startWidth?: number;
261
257
  startHeight?: number;
262
258
  orientationZoom?: {
@@ -1,27 +0,0 @@
1
- import { ArcwarePixelStreaming } from "../ArcwarePixelStreaming";
2
- export declare enum WebsocketState {
3
- CONNECTING = 0,
4
- OPEN = 1,
5
- CLOSING = 2,
6
- CLOSED = 3
7
- }
8
- export declare class ConnectionIdentifier {
9
- private static instance;
10
- static get Instance(): ConnectionIdentifier;
11
- private interval;
12
- private aps;
13
- get WebsocketStates(): WebsocketState[];
14
- private constructor();
15
- register(ps: ArcwarePixelStreaming): void;
16
- GetWebSocketStates(): WebsocketState[];
17
- ActiveInstances(): number;
18
- private enabled;
19
- disable(): void;
20
- /**
21
- * The purpose of this method is to periodically tell the developer the amount of connected instances.
22
- * This way the developer can figure out, when they messed up the implementation and there's shadow instances still running.
23
- * Or when they accidentally set up multiple connections!
24
- * Things like that can happen, for example if the React.useEffect was not setup perfectly!
25
- */
26
- private connectionWatcher;
27
- }