@arcware-cloud/pixelstreaming-websdk 1.3.30 → 1.3.32
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.
|
@@ -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) {
|
|
@@ -23393,19 +23393,6 @@ const ZWhiteLabel_1 = __webpack_require__(1938);
|
|
|
23393
23393
|
const EventHandler_1 = __webpack_require__(3916);
|
|
23394
23394
|
/** Default arcware signalling endpoint. */
|
|
23395
23395
|
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
23396
|
function deepEqual(a, b) {
|
|
23410
23397
|
try {
|
|
23411
23398
|
return JSON.stringify(a) === JSON.stringify(b);
|
|
@@ -23462,7 +23449,7 @@ class ArcwareConfig extends lib_pixelstreamingfrontend_ue5_5_1.Config {
|
|
|
23462
23449
|
if (!config.initialSettings.ss)
|
|
23463
23450
|
config.initialSettings.ss = exports.DefaultUrl;
|
|
23464
23451
|
super(config);
|
|
23465
|
-
this.VERSION = "1.3.
|
|
23452
|
+
this.VERSION = "1.3.32";
|
|
23466
23453
|
this.whiteLabellingChanged = new EventHandler_1.EventHandler();
|
|
23467
23454
|
this.signallingWlURL = "https://signalling-client.arcware.cloud/whiteLabel/";
|
|
23468
23455
|
if (config.envName) {
|
|
@@ -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
|
|
22882
|
-
/* harmony import */ var
|
|
22883
|
-
/* harmony import */ var
|
|
22884
|
-
/* harmony import */ var
|
|
22885
|
-
/* harmony import */ var
|
|
22886
|
-
/* harmony import */ var
|
|
22887
|
-
/* harmony import */ var
|
|
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
|
|
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
|
|
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
|
|
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,
|
|
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,
|
|
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(
|
|
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,
|
|
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,
|
|
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,
|
|
23339
|
-
const base = msg.filename && msg.filename.trim() ? (0,
|
|
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)
|
|
@@ -23388,13 +23388,12 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
23388
23388
|
/* harmony export */ });
|
|
23389
23389
|
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1635);
|
|
23390
23390
|
/* harmony import */ var zod__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2080);
|
|
23391
|
-
/* harmony import */ var _epicgames_ps_lib_pixelstreamingfrontend_ue5_5__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
|
|
23392
|
-
/* harmony import */ var
|
|
23393
|
-
/* harmony import */ var
|
|
23394
|
-
/* harmony import */ var
|
|
23395
|
-
/* harmony import */ var
|
|
23396
|
-
/* harmony import */ var
|
|
23397
|
-
/* harmony import */ var _domain_EventHandler__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(3916);
|
|
23391
|
+
/* harmony import */ var _epicgames_ps_lib_pixelstreamingfrontend_ue5_5__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(223);
|
|
23392
|
+
/* harmony import */ var _domain_Session__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(3266);
|
|
23393
|
+
/* harmony import */ var _domain_ArcwareSettingsSchema__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(9913);
|
|
23394
|
+
/* harmony import */ var _features_whiteLabelling__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(5292);
|
|
23395
|
+
/* harmony import */ var _features_ZWhiteLabel__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(1938);
|
|
23396
|
+
/* harmony import */ var _domain_EventHandler__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(3916);
|
|
23398
23397
|
|
|
23399
23398
|
|
|
23400
23399
|
|
|
@@ -23405,19 +23404,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
23405
23404
|
|
|
23406
23405
|
/** Default arcware signalling endpoint. */
|
|
23407
23406
|
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
23407
|
function deepEqual(a, b) {
|
|
23422
23408
|
try {
|
|
23423
23409
|
return JSON.stringify(a) === JSON.stringify(b);
|
|
@@ -23426,7 +23412,7 @@ function deepEqual(a, b) {
|
|
|
23426
23412
|
return false;
|
|
23427
23413
|
}
|
|
23428
23414
|
}
|
|
23429
|
-
class ArcwareConfig extends
|
|
23415
|
+
class ArcwareConfig extends _epicgames_ps_lib_pixelstreamingfrontend_ue5_5__WEBPACK_IMPORTED_MODULE_2__.Config {
|
|
23430
23416
|
/**
|
|
23431
23417
|
* Can be used to fetch projectId and shareId from the current url.
|
|
23432
23418
|
* Example:
|
|
@@ -23462,7 +23448,7 @@ class ArcwareConfig extends _epicgames_ps_lib_pixelstreamingfrontend_ue5_5__WEBP
|
|
|
23462
23448
|
throw new Error(`ShareId or ProjectId must be specified.`);
|
|
23463
23449
|
}
|
|
23464
23450
|
// Validate settings input.
|
|
23465
|
-
const settings =
|
|
23451
|
+
const settings = _domain_ArcwareSettingsSchema__WEBPACK_IMPORTED_MODULE_4__.ArcwareSettingsSchema.parse(config.settings);
|
|
23466
23452
|
// Setup arcware default settings.
|
|
23467
23453
|
if (!config.initialSettings)
|
|
23468
23454
|
config.initialSettings = {};
|
|
@@ -23474,17 +23460,17 @@ class ArcwareConfig extends _epicgames_ps_lib_pixelstreamingfrontend_ue5_5__WEBP
|
|
|
23474
23460
|
if (!config.initialSettings.ss)
|
|
23475
23461
|
config.initialSettings.ss = DefaultUrl;
|
|
23476
23462
|
super(config);
|
|
23477
|
-
this.VERSION = "1.3.
|
|
23478
|
-
this.whiteLabellingChanged = new
|
|
23463
|
+
this.VERSION = "1.3.32";
|
|
23464
|
+
this.whiteLabellingChanged = new _domain_EventHandler__WEBPACK_IMPORTED_MODULE_7__.EventHandler();
|
|
23479
23465
|
this.signallingWlURL = "https://signalling-client.arcware.cloud/whiteLabel/";
|
|
23480
23466
|
if (config.envName) {
|
|
23481
23467
|
this.signallingWlURL = `https://signalling-client.${config.envName}.arcware.cloud/whiteLabel/`;
|
|
23482
23468
|
}
|
|
23483
23469
|
this.settings = settings;
|
|
23484
|
-
this.session = new
|
|
23470
|
+
this.session = new _domain_Session__WEBPACK_IMPORTED_MODULE_3__.Session();
|
|
23485
23471
|
this._initialSettings = config.initialSettings;
|
|
23486
23472
|
// Setup arcware default settings.
|
|
23487
|
-
this.setFlagEnabled(
|
|
23473
|
+
this.setFlagEnabled(_epicgames_ps_lib_pixelstreamingfrontend_ue5_5__WEBPACK_IMPORTED_MODULE_2__.Flags.AFKDetection, true);
|
|
23488
23474
|
// IMPORTANT NOTE: The feature BrowserSendOffer is no longer supported in PSInfra 5.5.
|
|
23489
23475
|
// The offer is now expected to come from UE. Ensure that your signalling server supports this behaviour.
|
|
23490
23476
|
//this.setFlagEnabled(Flags.BrowserSendOffer, true);
|
|
@@ -23494,7 +23480,7 @@ class ArcwareConfig extends _epicgames_ps_lib_pixelstreamingfrontend_ue5_5__WEBP
|
|
|
23494
23480
|
if (qs.has("wl")) {
|
|
23495
23481
|
if (qs.get("wl") !== "") {
|
|
23496
23482
|
// Retrieve image loading from there
|
|
23497
|
-
const wlParsed = this.useUrlParams ? (0,
|
|
23483
|
+
const wlParsed = this.useUrlParams ? (0,_features_whiteLabelling__WEBPACK_IMPORTED_MODULE_5__.readWhiteLabelFromQuery)(qs) : undefined; // respect useUrlParams
|
|
23498
23484
|
if (wlParsed) {
|
|
23499
23485
|
this.settings.whiteLabelling = Object.assign(Object.assign({}, ((_c = this.settings.whiteLabelling) !== null && _c !== void 0 ? _c : {})), wlParsed);
|
|
23500
23486
|
}
|
|
@@ -23510,7 +23496,7 @@ class ArcwareConfig extends _epicgames_ps_lib_pixelstreamingfrontend_ue5_5__WEBP
|
|
|
23510
23496
|
return (0,tslib__WEBPACK_IMPORTED_MODULE_0__.__awaiter)(this, void 0, void 0, function* () {
|
|
23511
23497
|
const qs = new URLSearchParams(window.location.search);
|
|
23512
23498
|
if (qs.get("wl") !== "") {
|
|
23513
|
-
|
|
23499
|
+
_domain_EventHandler__WEBPACK_IMPORTED_MODULE_7__.EventHandler.Emit(this.whiteLabellingChanged, {
|
|
23514
23500
|
next: this.settings.whiteLabelling,
|
|
23515
23501
|
changed: false
|
|
23516
23502
|
});
|
|
@@ -23540,14 +23526,14 @@ class ArcwareConfig extends _epicgames_ps_lib_pixelstreamingfrontend_ue5_5__WEBP
|
|
|
23540
23526
|
catch (_a) {
|
|
23541
23527
|
return undefined;
|
|
23542
23528
|
}
|
|
23543
|
-
const parsed =
|
|
23529
|
+
const parsed = _features_ZWhiteLabel__WEBPACK_IMPORTED_MODULE_6__.ZWhiteLabel.safeParse(json);
|
|
23544
23530
|
if (!parsed.success)
|
|
23545
23531
|
return undefined;
|
|
23546
23532
|
// Only apply & emit if it actually changed
|
|
23547
23533
|
const prev = this.settings.whiteLabelling;
|
|
23548
23534
|
const next = parsed.data;
|
|
23549
23535
|
this.settings.whiteLabelling = next;
|
|
23550
|
-
|
|
23536
|
+
_domain_EventHandler__WEBPACK_IMPORTED_MODULE_7__.EventHandler.Emit(this.whiteLabellingChanged, { next, changed: !deepEqual(prev, next) });
|
|
23551
23537
|
return parsed.data;
|
|
23552
23538
|
}
|
|
23553
23539
|
catch (_b) {
|
|
@@ -23609,7 +23595,7 @@ class ArcwareConfig extends _epicgames_ps_lib_pixelstreamingfrontend_ue5_5__WEBP
|
|
|
23609
23595
|
return this._initialSettings;
|
|
23610
23596
|
}
|
|
23611
23597
|
modifyInitialSettings(mouseLock) {
|
|
23612
|
-
this.setFlagEnabled(
|
|
23598
|
+
this.setFlagEnabled(_epicgames_ps_lib_pixelstreamingfrontend_ue5_5__WEBPACK_IMPORTED_MODULE_2__.Flags.HoveringMouseMode, mouseLock);
|
|
23613
23599
|
}
|
|
23614
23600
|
}
|
|
23615
23601
|
|
|
@@ -23709,19 +23695,27 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
23709
23695
|
/* harmony export */ WebsocketState: () => (/* binding */ WebsocketState)
|
|
23710
23696
|
/* harmony export */ });
|
|
23711
23697
|
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1635);
|
|
23712
|
-
/* harmony import */ var _shared_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
23713
|
-
/* harmony import */ var
|
|
23714
|
-
/* harmony import */ var
|
|
23715
|
-
/* harmony import */ var
|
|
23716
|
-
/* harmony import */ var
|
|
23717
|
-
/* harmony import */ var
|
|
23718
|
-
/* harmony import */ var
|
|
23719
|
-
/* harmony import */ var
|
|
23720
|
-
/* harmony import */ var
|
|
23721
|
-
/* harmony import */ var
|
|
23722
|
-
/* harmony import */ var
|
|
23723
|
-
/* harmony import */ var
|
|
23724
|
-
/* harmony import */ var
|
|
23698
|
+
/* harmony import */ var _shared_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1142);
|
|
23699
|
+
/* harmony import */ var _shared_index__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(6770);
|
|
23700
|
+
/* harmony import */ var _shared_index__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(8237);
|
|
23701
|
+
/* harmony import */ var _shared_index__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(1687);
|
|
23702
|
+
/* harmony import */ var _shared_index__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(3450);
|
|
23703
|
+
/* harmony import */ var _shared_index__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(3407);
|
|
23704
|
+
/* harmony import */ var _shared_index__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(1704);
|
|
23705
|
+
/* harmony import */ var _shared_index__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(8858);
|
|
23706
|
+
/* harmony import */ var _shared_index__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(3020);
|
|
23707
|
+
/* harmony import */ var _epicgames_ps_lib_pixelstreamingfrontend_ue5_5__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(948);
|
|
23708
|
+
/* harmony import */ var _epicgames_ps_lib_pixelstreamingfrontend_ue5_5__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(223);
|
|
23709
|
+
/* harmony import */ var _epicgames_ps_lib_pixelstreamingfrontend_ue5_5__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(9307);
|
|
23710
|
+
/* harmony import */ var _ApplyUrlHack__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(9601);
|
|
23711
|
+
/* harmony import */ var _domain_EventHandler__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(3916);
|
|
23712
|
+
/* harmony import */ var _domain_Stats__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(6393);
|
|
23713
|
+
/* harmony import */ var _domain_debounce__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(4975);
|
|
23714
|
+
/* harmony import */ var _ui_LoveLetters__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(8246);
|
|
23715
|
+
/* harmony import */ var _ui_ArcwareLogoLoader__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(8418);
|
|
23716
|
+
/* harmony import */ var _ui_MicrophoneOverlay__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(9507);
|
|
23717
|
+
/* harmony import */ var _features_DiagnosticsCollector__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(842);
|
|
23718
|
+
/* harmony import */ var _features_common__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(8216);
|
|
23725
23719
|
|
|
23726
23720
|
|
|
23727
23721
|
|
|
@@ -23745,7 +23739,7 @@ var WebsocketState;
|
|
|
23745
23739
|
// The connection is closed or couldn't be opened.
|
|
23746
23740
|
WebsocketState[WebsocketState["CLOSED"] = 3] = "CLOSED";
|
|
23747
23741
|
})(WebsocketState || (WebsocketState = {}));
|
|
23748
|
-
class ArcwarePixelStreaming extends
|
|
23742
|
+
class ArcwarePixelStreaming extends _epicgames_ps_lib_pixelstreamingfrontend_ue5_5__WEBPACK_IMPORTED_MODULE_12__.PixelStreaming {
|
|
23749
23743
|
resetInitGuardsAndHooks() {
|
|
23750
23744
|
this.videoInitializedSent = false;
|
|
23751
23745
|
this._postInitSideEffectsDone = false;
|
|
@@ -23805,7 +23799,7 @@ class ArcwarePixelStreaming extends _epicgames_ps_lib_pixelstreamingfrontend_ue5
|
|
|
23805
23799
|
const ws = current.webSocket;
|
|
23806
23800
|
if (ws && !this._onWsClose) {
|
|
23807
23801
|
this._onWsClose = (evt) => {
|
|
23808
|
-
|
|
23802
|
+
_domain_EventHandler__WEBPACK_IMPORTED_MODULE_14__.EventHandler.Emit(this.websocketOnCloseHandler, evt);
|
|
23809
23803
|
};
|
|
23810
23804
|
ws.addEventListener("close", this._onWsClose);
|
|
23811
23805
|
}
|
|
@@ -23825,7 +23819,7 @@ class ArcwarePixelStreaming extends _epicgames_ps_lib_pixelstreamingfrontend_ue5
|
|
|
23825
23819
|
constructor(config, overrides) {
|
|
23826
23820
|
var _a, _b;
|
|
23827
23821
|
/** As soon as upstream is fixed, we got to adjust the url building process. */
|
|
23828
|
-
(0,
|
|
23822
|
+
(0,_ApplyUrlHack__WEBPACK_IMPORTED_MODULE_13__.ApplyUrlHack)();
|
|
23829
23823
|
super(config, overrides);
|
|
23830
23824
|
this.loveLettersQueue = [];
|
|
23831
23825
|
this.isProcessingQueue = false;
|
|
@@ -23836,14 +23830,14 @@ class ArcwarePixelStreaming extends _epicgames_ps_lib_pixelstreamingfrontend_ue5
|
|
|
23836
23830
|
this._rVFCsupported = "requestVideoFrameCallback" in HTMLVideoElement.prototype;
|
|
23837
23831
|
this._postInitSideEffectsDone = false;
|
|
23838
23832
|
// Externalized
|
|
23839
|
-
this.queueHandler = new
|
|
23840
|
-
this.errorHandler = new
|
|
23841
|
-
this.loveLetterHandler = new
|
|
23842
|
-
this.sessionIdHandler = new
|
|
23833
|
+
this.queueHandler = new _domain_EventHandler__WEBPACK_IMPORTED_MODULE_14__.EventHandler();
|
|
23834
|
+
this.errorHandler = new _domain_EventHandler__WEBPACK_IMPORTED_MODULE_14__.EventHandler();
|
|
23835
|
+
this.loveLetterHandler = new _domain_EventHandler__WEBPACK_IMPORTED_MODULE_14__.EventHandler();
|
|
23836
|
+
this.sessionIdHandler = new _domain_EventHandler__WEBPACK_IMPORTED_MODULE_14__.EventHandler();
|
|
23843
23837
|
/** VideoInitialized (native Epic event) */
|
|
23844
|
-
this.videoInitializedHandler = new
|
|
23838
|
+
this.videoInitializedHandler = new _domain_EventHandler__WEBPACK_IMPORTED_MODULE_14__.EventHandler();
|
|
23845
23839
|
// Internal
|
|
23846
|
-
this.websocketOnCloseHandler = new
|
|
23840
|
+
this.websocketOnCloseHandler = new _domain_EventHandler__WEBPACK_IMPORTED_MODULE_14__.EventHandler();
|
|
23847
23841
|
/** 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
23842
|
* Instead we use ApplyUrlHack();
|
|
23849
23843
|
*/
|
|
@@ -23896,8 +23890,8 @@ class ArcwarePixelStreaming extends _epicgames_ps_lib_pixelstreamingfrontend_ue5
|
|
|
23896
23890
|
}))();
|
|
23897
23891
|
}
|
|
23898
23892
|
this.loveLettersList = [];
|
|
23899
|
-
this.microphoneOverlay = new
|
|
23900
|
-
this.diagnosticsCollector = new
|
|
23893
|
+
this.microphoneOverlay = new _ui_MicrophoneOverlay__WEBPACK_IMPORTED_MODULE_19__.MicrophoneOverlay(this);
|
|
23894
|
+
this.diagnosticsCollector = new _features_DiagnosticsCollector__WEBPACK_IMPORTED_MODULE_20__.DiagnosticsCollector({
|
|
23901
23895
|
enableBandwidthProbe: false
|
|
23902
23896
|
});
|
|
23903
23897
|
// after super(...) and once webRtcController is available
|
|
@@ -23909,16 +23903,16 @@ class ArcwarePixelStreaming extends _epicgames_ps_lib_pixelstreamingfrontend_ue5
|
|
|
23909
23903
|
// Bind the event listener function to the class instance
|
|
23910
23904
|
this.handleResolutionChange = this.handleResolutionChange.bind(this);
|
|
23911
23905
|
// Register message handlers.
|
|
23912
|
-
this.addMessageHandler("letter", _shared_index__WEBPACK_IMPORTED_MODULE_1__.
|
|
23913
|
-
this.addMessageHandler("streamInfo",
|
|
23914
|
-
this.addMessageHandler("sessionId",
|
|
23915
|
-
this.addMessageHandler("error",
|
|
23916
|
-
this.addMessageHandler("ping",
|
|
23917
|
-
this.addMessageHandler("queue",
|
|
23918
|
-
this.addMessageHandler("version",
|
|
23919
|
-
this.addMessageHandler("render",
|
|
23906
|
+
this.addMessageHandler("letter", _shared_index__WEBPACK_IMPORTED_MODULE_1__.ZLoveLetter, this.onLoveLetter);
|
|
23907
|
+
this.addMessageHandler("streamInfo", _shared_index__WEBPACK_IMPORTED_MODULE_2__.ZStreamInfo, this.onStreamInfo);
|
|
23908
|
+
this.addMessageHandler("sessionId", _shared_index__WEBPACK_IMPORTED_MODULE_3__.ZSessionId, this.onSessionId);
|
|
23909
|
+
this.addMessageHandler("error", _shared_index__WEBPACK_IMPORTED_MODULE_4__.ZErrorMessage, this.onError);
|
|
23910
|
+
this.addMessageHandler("ping", _shared_index__WEBPACK_IMPORTED_MODULE_5__.ZPing, this.onPing);
|
|
23911
|
+
this.addMessageHandler("queue", _shared_index__WEBPACK_IMPORTED_MODULE_6__.ZQueue, this.onQueue);
|
|
23912
|
+
this.addMessageHandler("version", _shared_index__WEBPACK_IMPORTED_MODULE_7__.ZVersion, this.onVersion);
|
|
23913
|
+
this.addMessageHandler("render", _shared_index__WEBPACK_IMPORTED_MODULE_8__.ZRender, this.onRender);
|
|
23920
23914
|
// Create a debounced version of the handleResolutionChange function
|
|
23921
|
-
const debouncedResolutionChange = (0,
|
|
23915
|
+
const debouncedResolutionChange = (0,_domain_debounce__WEBPACK_IMPORTED_MODULE_16__["default"])(() => {
|
|
23922
23916
|
this.handleResolutionChange();
|
|
23923
23917
|
}, 0);
|
|
23924
23918
|
// Register event listeners.
|
|
@@ -23969,7 +23963,7 @@ class ArcwarePixelStreaming extends _epicgames_ps_lib_pixelstreamingfrontend_ue5
|
|
|
23969
23963
|
diagnostics = yield this.diagnosticsCollector.collect();
|
|
23970
23964
|
}
|
|
23971
23965
|
catch (e) {
|
|
23972
|
-
(_a =
|
|
23966
|
+
(_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
23967
|
}
|
|
23974
23968
|
finally {
|
|
23975
23969
|
const payload = {
|
|
@@ -24051,13 +24045,13 @@ class ArcwarePixelStreaming extends _epicgames_ps_lib_pixelstreamingfrontend_ue5
|
|
|
24051
24045
|
/** Handle incoming configurations. */
|
|
24052
24046
|
onStreamInfo(streamInfo) {
|
|
24053
24047
|
var _a, _b, _c, _d;
|
|
24054
|
-
|
|
24048
|
+
_epicgames_ps_lib_pixelstreamingfrontend_ue5_5__WEBPACK_IMPORTED_MODULE_10__.Logger.Info(`StreamInfo received.`);
|
|
24055
24049
|
this.streamInfo = streamInfo;
|
|
24056
24050
|
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
24051
|
const { afk } = streamInfo.streamInfo;
|
|
24058
24052
|
if (afk) {
|
|
24059
|
-
this.config.setFlagEnabled(
|
|
24060
|
-
this.config.setNumericSetting(
|
|
24053
|
+
this.config.setFlagEnabled(_epicgames_ps_lib_pixelstreamingfrontend_ue5_5__WEBPACK_IMPORTED_MODULE_11__.Flags.AFKDetection, afk.enabled);
|
|
24054
|
+
this.config.setNumericSetting(_epicgames_ps_lib_pixelstreamingfrontend_ue5_5__WEBPACK_IMPORTED_MODULE_11__.NumericParameters.AFKTimeoutSecs, afk.warn + afk.error);
|
|
24061
24055
|
// Hack
|
|
24062
24056
|
const { afkController } = this.webRtcController;
|
|
24063
24057
|
afkController.countDown = afk.action;
|
|
@@ -24077,12 +24071,12 @@ class ArcwarePixelStreaming extends _epicgames_ps_lib_pixelstreamingfrontend_ue5
|
|
|
24077
24071
|
this.injectCustomUI();
|
|
24078
24072
|
}
|
|
24079
24073
|
onQueue(message) {
|
|
24080
|
-
|
|
24081
|
-
|
|
24074
|
+
_epicgames_ps_lib_pixelstreamingfrontend_ue5_5__WEBPACK_IMPORTED_MODULE_10__.Logger.Info(`QueueInfo received.`);
|
|
24075
|
+
_domain_EventHandler__WEBPACK_IMPORTED_MODULE_14__.EventHandler.Emit(this.queueHandler, message);
|
|
24082
24076
|
}
|
|
24083
24077
|
onError(error) {
|
|
24084
24078
|
var _a, _b;
|
|
24085
|
-
|
|
24079
|
+
_epicgames_ps_lib_pixelstreamingfrontend_ue5_5__WEBPACK_IMPORTED_MODULE_10__.Logger.Error(error.type);
|
|
24086
24080
|
console.log(error);
|
|
24087
24081
|
const retryable = this.isRetryableClose(error);
|
|
24088
24082
|
if (!retryable) {
|
|
@@ -24098,18 +24092,18 @@ class ArcwarePixelStreaming extends _epicgames_ps_lib_pixelstreamingfrontend_ue5
|
|
|
24098
24092
|
// Leave your existing auto-retry behavior for transient errors
|
|
24099
24093
|
this.startTransportWatcher(); // (in case it was stopped)
|
|
24100
24094
|
}
|
|
24101
|
-
|
|
24095
|
+
_domain_EventHandler__WEBPACK_IMPORTED_MODULE_14__.EventHandler.Emit(this.errorHandler, error);
|
|
24102
24096
|
}
|
|
24103
24097
|
onLoveLetter(loveLetter) {
|
|
24104
24098
|
if (this.config.settings.loveLetterLogging)
|
|
24105
24099
|
console.info(loveLetter.reason);
|
|
24106
|
-
|
|
24100
|
+
_domain_EventHandler__WEBPACK_IMPORTED_MODULE_14__.EventHandler.Emit(this.loveLetterHandler, loveLetter);
|
|
24107
24101
|
this.pushLetter(loveLetter.reason);
|
|
24108
24102
|
}
|
|
24109
24103
|
onSessionId(message) {
|
|
24110
|
-
|
|
24104
|
+
_epicgames_ps_lib_pixelstreamingfrontend_ue5_5__WEBPACK_IMPORTED_MODULE_10__.Logger.Info(message.sessionId);
|
|
24111
24105
|
this.session.set(message.sessionId);
|
|
24112
|
-
|
|
24106
|
+
_domain_EventHandler__WEBPACK_IMPORTED_MODULE_14__.EventHandler.Emit(this.sessionIdHandler, message.sessionId);
|
|
24113
24107
|
}
|
|
24114
24108
|
sendVideoInitializedOnce() {
|
|
24115
24109
|
if (this.videoInitializedSent)
|
|
@@ -24119,7 +24113,7 @@ class ArcwarePixelStreaming extends _epicgames_ps_lib_pixelstreamingfrontend_ue5
|
|
|
24119
24113
|
this.cancelFirstRenderedFrameHook();
|
|
24120
24114
|
this.send({ type: "onVideoInitialized" });
|
|
24121
24115
|
if (this.videoInitializedHandler) {
|
|
24122
|
-
|
|
24116
|
+
_domain_EventHandler__WEBPACK_IMPORTED_MODULE_14__.EventHandler.Emit(this.videoInitializedHandler, undefined);
|
|
24123
24117
|
}
|
|
24124
24118
|
}
|
|
24125
24119
|
runPostInitSideEffectsOnce() {
|
|
@@ -24235,7 +24229,7 @@ class ArcwarePixelStreaming extends _epicgames_ps_lib_pixelstreamingfrontend_ue5
|
|
|
24235
24229
|
else {
|
|
24236
24230
|
const parsedError = parsed;
|
|
24237
24231
|
const error = new Error(`Unexpected message content. Event:'${type}', ZodError: ${parsedError.error.message}`);
|
|
24238
|
-
|
|
24232
|
+
_epicgames_ps_lib_pixelstreamingfrontend_ue5_5__WEBPACK_IMPORTED_MODULE_10__.Logger.Error(error.message);
|
|
24239
24233
|
}
|
|
24240
24234
|
if (type === "error") {
|
|
24241
24235
|
// this.disconnect();
|
|
@@ -24248,18 +24242,18 @@ class ArcwarePixelStreaming extends _epicgames_ps_lib_pixelstreamingfrontend_ue5
|
|
|
24248
24242
|
* * * * * *
|
|
24249
24243
|
*/
|
|
24250
24244
|
sendStats(stats) {
|
|
24251
|
-
const message = { type: "stats", stats: (0,
|
|
24245
|
+
const message = { type: "stats", stats: (0,_domain_Stats__WEBPACK_IMPORTED_MODULE_15__.Stats)(stats) };
|
|
24252
24246
|
this.send(message);
|
|
24253
24247
|
}
|
|
24254
24248
|
send(a, b) {
|
|
24255
24249
|
var _a, _b;
|
|
24256
24250
|
const msg = typeof a === "string" ? Object.assign({ type: a }, (b !== null && b !== void 0 ? b : {})) : a;
|
|
24257
24251
|
// Optional zod validation if you have schemas for this type
|
|
24258
|
-
const schema = (_a =
|
|
24252
|
+
const schema = (_a = _shared_index__WEBPACK_IMPORTED_MODULE_9__.Send) === null || _a === void 0 ? void 0 : _a[msg.type];
|
|
24259
24253
|
if (schema) {
|
|
24260
24254
|
const result = schema.safeParse(msg);
|
|
24261
24255
|
if (!result.success) {
|
|
24262
|
-
(_b =
|
|
24256
|
+
(_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
24257
|
return;
|
|
24264
24258
|
}
|
|
24265
24259
|
this._dispatchOrBuffer(result.data);
|
|
@@ -24403,7 +24397,7 @@ class ArcwarePixelStreaming extends _epicgames_ps_lib_pixelstreamingfrontend_ue5
|
|
|
24403
24397
|
}
|
|
24404
24398
|
initLoveLettersContainer() {
|
|
24405
24399
|
var _a;
|
|
24406
|
-
const logoLoader = new
|
|
24400
|
+
const logoLoader = new _ui_ArcwareLogoLoader__WEBPACK_IMPORTED_MODULE_18__.ArcwareLogoLoader();
|
|
24407
24401
|
this.logoLoader = logoLoader;
|
|
24408
24402
|
if (!this.loveLettersContainer) {
|
|
24409
24403
|
const loveLettersContainer = document.createElement("div");
|
|
@@ -24443,7 +24437,7 @@ class ArcwarePixelStreaming extends _epicgames_ps_lib_pixelstreamingfrontend_ue5
|
|
|
24443
24437
|
if (letter !== undefined) {
|
|
24444
24438
|
const formattedLoveLetter = letter === null || letter === void 0 ? void 0 : letter.replace(/LL: |\.$/g, "");
|
|
24445
24439
|
(_a = this === null || this === void 0 ? void 0 : this.loveLettersList) === null || _a === void 0 ? void 0 : _a.push(formattedLoveLetter);
|
|
24446
|
-
const loveLettersBox = new
|
|
24440
|
+
const loveLettersBox = new _ui_LoveLetters__WEBPACK_IMPORTED_MODULE_17__.LoveLetters();
|
|
24447
24441
|
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
24442
|
setTimeout(() => {
|
|
24449
24443
|
this.processLoveLetterQueue();
|
|
@@ -24486,7 +24480,7 @@ class ArcwarePixelStreaming extends _epicgames_ps_lib_pixelstreamingfrontend_ue5
|
|
|
24486
24480
|
}
|
|
24487
24481
|
toggleMic(enable, isDefault) {
|
|
24488
24482
|
var _a, _b;
|
|
24489
|
-
(_a = this === null || this === void 0 ? void 0 : this.config) === null || _a === void 0 ? void 0 : _a.setFlagEnabled(
|
|
24483
|
+
(_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
24484
|
if (!isDefault) {
|
|
24491
24485
|
(_b = this === null || this === void 0 ? void 0 : this.microphoneOverlay) === null || _b === void 0 ? void 0 : _b.toggleMessage(enable);
|
|
24492
24486
|
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 +24509,7 @@ class ArcwarePixelStreaming extends _epicgames_ps_lib_pixelstreamingfrontend_ue5
|
|
|
24515
24509
|
removeXRIconIfDisabled() {
|
|
24516
24510
|
var _a, _b, _c, _d, _e;
|
|
24517
24511
|
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(
|
|
24512
|
+
(_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
24513
|
if (this.videoElementParent) {
|
|
24520
24514
|
if ((_d = this === null || this === void 0 ? void 0 : this.videoElementParent) === null || _d === void 0 ? void 0 : _d.parentElement) {
|
|
24521
24515
|
const xrBtn = (_e = this === null || this === void 0 ? void 0 : this.videoElementParent) === null || _e === void 0 ? void 0 : _e.parentElement.querySelector("#xrBtn");
|
|
@@ -24525,7 +24519,7 @@ class ArcwarePixelStreaming extends _epicgames_ps_lib_pixelstreamingfrontend_ue5
|
|
|
24525
24519
|
}
|
|
24526
24520
|
}
|
|
24527
24521
|
injectCustomUI() {
|
|
24528
|
-
(0,
|
|
24522
|
+
(0,_features_common__WEBPACK_IMPORTED_MODULE_21__.waitForElement)("#stream-ui").then((el) => {
|
|
24529
24523
|
var _a;
|
|
24530
24524
|
const videoElementParent = (_a = this === null || this === void 0 ? void 0 : this.videoElementParent) === null || _a === void 0 ? void 0 : _a.parentElement;
|
|
24531
24525
|
if (videoElementParent) {
|
|
@@ -24704,8 +24698,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
24704
24698
|
/* harmony export */ ArcwareSettingsSchema: () => (/* binding */ ArcwareSettingsSchema)
|
|
24705
24699
|
/* harmony export */ });
|
|
24706
24700
|
/* harmony import */ var zod__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2080);
|
|
24707
|
-
/* harmony import */ var _shared_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
24708
|
-
/* harmony import */ var
|
|
24701
|
+
/* harmony import */ var _shared_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1687);
|
|
24702
|
+
/* harmony import */ var _shared_index__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(3407);
|
|
24703
|
+
/* harmony import */ var _shared_index__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(1142);
|
|
24704
|
+
/* harmony import */ var _features_ZWhiteLabel__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(1938);
|
|
24709
24705
|
|
|
24710
24706
|
|
|
24711
24707
|
|
|
@@ -24722,14 +24718,14 @@ const ArcwareSettingsSchema = zod__WEBPACK_IMPORTED_MODULE_0__.object({
|
|
|
24722
24718
|
// /** Configure DirectFlow Token. */
|
|
24723
24719
|
// directFlow: z.string().optional(),
|
|
24724
24720
|
/** Handler for server side error messages. */
|
|
24725
|
-
errorHandler: zod__WEBPACK_IMPORTED_MODULE_0__["function"]().args(_shared_index__WEBPACK_IMPORTED_MODULE_1__.
|
|
24721
|
+
errorHandler: zod__WEBPACK_IMPORTED_MODULE_0__["function"]().args(_shared_index__WEBPACK_IMPORTED_MODULE_1__.ZErrorMessage).returns(zod__WEBPACK_IMPORTED_MODULE_0__["void"]()).optional(),
|
|
24726
24722
|
/** Handler for queue events. */
|
|
24727
|
-
queueHandler: zod__WEBPACK_IMPORTED_MODULE_0__["function"]().args(
|
|
24723
|
+
queueHandler: zod__WEBPACK_IMPORTED_MODULE_0__["function"]().args(_shared_index__WEBPACK_IMPORTED_MODULE_2__.ZQueue).returns(zod__WEBPACK_IMPORTED_MODULE_0__["void"]()).optional(),
|
|
24728
24724
|
/** Handler for sessionId message. */
|
|
24729
24725
|
sessionIdHandler: zod__WEBPACK_IMPORTED_MODULE_0__["function"]().args(zod__WEBPACK_IMPORTED_MODULE_0__.string()).returns(zod__WEBPACK_IMPORTED_MODULE_0__["void"]()).optional(),
|
|
24730
24726
|
/** Handler for love letters.
|
|
24731
24727
|
* "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(
|
|
24728
|
+
loveLetterHandler: zod__WEBPACK_IMPORTED_MODULE_0__["function"]().args(_shared_index__WEBPACK_IMPORTED_MODULE_3__.ZLoveLetter).returns(zod__WEBPACK_IMPORTED_MODULE_0__["void"]()).optional(),
|
|
24733
24729
|
/** Show or hide the fullscreen button. */
|
|
24734
24730
|
fullscreenButton: zod__WEBPACK_IMPORTED_MODULE_0__.boolean().optional(),
|
|
24735
24731
|
/** Show or hide the settings button. */
|
|
@@ -24764,7 +24760,7 @@ const ArcwareSettingsSchema = zod__WEBPACK_IMPORTED_MODULE_0__.object({
|
|
|
24764
24760
|
.strict()
|
|
24765
24761
|
.optional(),
|
|
24766
24762
|
/** Loader customization */
|
|
24767
|
-
whiteLabelling:
|
|
24763
|
+
whiteLabelling: _features_ZWhiteLabel__WEBPACK_IMPORTED_MODULE_4__.ZWhiteLabel.optional(),
|
|
24768
24764
|
fetchRemoteWhiteLabelling: zod__WEBPACK_IMPORTED_MODULE_0__.boolean().optional()
|
|
24769
24765
|
});
|
|
24770
24766
|
|
|
@@ -24903,10 +24899,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
24903
24899
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
24904
24900
|
/* harmony export */ Stats: () => (/* binding */ Stats)
|
|
24905
24901
|
/* harmony export */ });
|
|
24906
|
-
/* harmony import */ var _shared_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
24902
|
+
/* harmony import */ var _shared_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3195);
|
|
24907
24903
|
|
|
24908
24904
|
function Stats(stats) {
|
|
24909
|
-
const result = _shared_index__WEBPACK_IMPORTED_MODULE_0__.
|
|
24905
|
+
const result = _shared_index__WEBPACK_IMPORTED_MODULE_0__.ZStats.shape.stats.parse({
|
|
24910
24906
|
/**
|
|
24911
24907
|
* Other known properties.
|
|
24912
24908
|
*/
|
|
@@ -26952,19 +26948,6 @@ class StopIcon {
|
|
|
26952
26948
|
}
|
|
26953
26949
|
|
|
26954
26950
|
|
|
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
26951
|
/***/ },
|
|
26969
26952
|
|
|
26970
26953
|
/***/ 1687
|
|
@@ -27442,20 +27425,6 @@ const Send = {
|
|
|
27442
27425
|
};
|
|
27443
27426
|
|
|
27444
27427
|
|
|
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
27428
|
/***/ },
|
|
27460
27429
|
|
|
27461
27430
|
/***/ 1591
|
|
@@ -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) {
|
|
@@ -23403,19 +23403,6 @@ const ZWhiteLabel_1 = __webpack_require__(1938);
|
|
|
23403
23403
|
const EventHandler_1 = __webpack_require__(3916);
|
|
23404
23404
|
/** Default arcware signalling endpoint. */
|
|
23405
23405
|
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
23406
|
function deepEqual(a, b) {
|
|
23420
23407
|
try {
|
|
23421
23408
|
return JSON.stringify(a) === JSON.stringify(b);
|
|
@@ -23472,7 +23459,7 @@ class ArcwareConfig extends lib_pixelstreamingfrontend_ue5_5_1.Config {
|
|
|
23472
23459
|
if (!config.initialSettings.ss)
|
|
23473
23460
|
config.initialSettings.ss = exports.DefaultUrl;
|
|
23474
23461
|
super(config);
|
|
23475
|
-
this.VERSION = "1.3.
|
|
23462
|
+
this.VERSION = "1.3.32";
|
|
23476
23463
|
this.whiteLabellingChanged = new EventHandler_1.EventHandler();
|
|
23477
23464
|
this.signallingWlURL = "https://signalling-client.arcware.cloud/whiteLabel/";
|
|
23478
23465
|
if (config.envName) {
|
package/package.json
CHANGED
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcware-cloud/pixelstreaming-websdk",
|
|
3
3
|
"description": "WebSDK for easy implementation of pixel streaming with Arcware Cloud Services. Heavily based on the '@epicgames-ps' library.",
|
|
4
|
-
"version": "1.3.
|
|
4
|
+
"version": "1.3.32",
|
|
5
5
|
"type": "commonjs",
|
|
6
|
-
"main": "./index.cjs
|
|
6
|
+
"main": "./index.cjs",
|
|
7
7
|
"types": "./types/index.d.ts",
|
|
8
8
|
"exports": {
|
|
9
9
|
".": {
|
|
10
10
|
"types": "./types/index.d.ts",
|
|
11
|
-
"require": "./index.cjs
|
|
12
|
-
"import": "./index.
|
|
13
|
-
"default": "./index.cjs
|
|
11
|
+
"require": "./index.cjs",
|
|
12
|
+
"import": "./index.mjs",
|
|
13
|
+
"default": "./index.cjs"
|
|
14
14
|
},
|
|
15
|
-
"./umd": "./index.umd.
|
|
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.
|
|
32
|
+
readonly VERSION = "1.3.32";
|
|
33
33
|
readonly whiteLabellingChanged: EventHandler<{
|
|
34
34
|
next: WhiteLabel;
|
|
35
35
|
changed: boolean;
|