@3dsource/angular-unreal-module 0.0.167 → 0.0.168
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/LICENSE +14 -14
- package/README.md +228 -228
- package/fesm2022/3dsource-angular-unreal-module.mjs +128 -55
- package/fesm2022/3dsource-angular-unreal-module.mjs.map +1 -1
- package/package.json +1 -1
- package/types/3dsource-angular-unreal-module.d.ts +43 -15
package/package.json
CHANGED
|
@@ -716,6 +716,12 @@ interface BootstrapInfo {
|
|
|
716
716
|
* `track()`; the server buckets files under `data/<userId>/<sessionId>`. */
|
|
717
717
|
interface TelemetryEventEnvelope {
|
|
718
718
|
readonly userId: string;
|
|
719
|
+
/**
|
|
720
|
+
* The stream's connection id (`selectCirrusConnectionId`) — the id Cirrus
|
|
721
|
+
* runs this player under, shown as "Connection Id" in the debug overlay. Falls
|
|
722
|
+
* back to a locally generated uuid only when the attempt never got one.
|
|
723
|
+
* Stamped centrally by `track()`, so the value the emitters pass is ignored.
|
|
724
|
+
*/
|
|
719
725
|
readonly sessionId: string;
|
|
720
726
|
}
|
|
721
727
|
/** Lifecycle events additionally carry a phase-local `duration` — ms since
|
|
@@ -1640,6 +1646,8 @@ declare class StreamStatusTelemetryService2 {
|
|
|
1640
1646
|
/** Streamer identity for the adopted signaling phase params. */
|
|
1641
1647
|
private readonly ssData$;
|
|
1642
1648
|
private readonly awsInstance$;
|
|
1649
|
+
/** The session's connection id — shipped as `sessionId` on every event. */
|
|
1650
|
+
private readonly connectionId$;
|
|
1643
1651
|
private session;
|
|
1644
1652
|
/**
|
|
1645
1653
|
* Whether a session has already started during the current page lifetime.
|
|
@@ -1687,6 +1695,15 @@ declare class StreamStatusTelemetryService2 {
|
|
|
1687
1695
|
private init;
|
|
1688
1696
|
private startSession;
|
|
1689
1697
|
private endSession;
|
|
1698
|
+
/**
|
|
1699
|
+
* Adopt the stream's connection id as this session's wire id and release the
|
|
1700
|
+
* queue. The id becomes a file name on the collector, so anything that isn't
|
|
1701
|
+
* a plain `[A-Za-z0-9_-]{1,64}` token is rejected (the collector answers 400
|
|
1702
|
+
* to those — that would drop the whole session) and the local uuid is kept.
|
|
1703
|
+
*/
|
|
1704
|
+
private resolveWireId;
|
|
1705
|
+
/** Emit every queued event under `sessionId`, in emission order. */
|
|
1706
|
+
private flushOutbox;
|
|
1690
1707
|
/**
|
|
1691
1708
|
* Emit a lifecycle event with a `duration` field — ms between the
|
|
1692
1709
|
* previous lifecycle event and now (phase-local, NOT anchor-relative).
|
|
@@ -1728,7 +1745,9 @@ declare class StreamStatusTelemetryService2 {
|
|
|
1728
1745
|
*/
|
|
1729
1746
|
private emitAdoptedPhase;
|
|
1730
1747
|
/** Streamer identity params for the adopted signaling phase — mirrors the
|
|
1731
|
-
* `ssinfo-received` closer's shape (client / instanceName / …ssData
|
|
1748
|
+
* `ssinfo-received` closer's shape (client / instanceName / …ssData /
|
|
1749
|
+
* connectionId). For an adopted stream `ssData` is the one the prefetch
|
|
1750
|
+
* captured and `streamAdopted` hydrated into the store. */
|
|
1732
1751
|
private adoptedSignalingParams;
|
|
1733
1752
|
/** Read the region-ping cache the prefetch reused (localStorage), so the
|
|
1734
1753
|
* adopted region phase can still report the winning region + samples. */
|
|
@@ -1774,7 +1793,15 @@ declare class StreamStatusTelemetryService2 {
|
|
|
1774
1793
|
*/
|
|
1775
1794
|
private collectResourceTotals;
|
|
1776
1795
|
private aggregate;
|
|
1796
|
+
/**
|
|
1797
|
+
* Ship one event — or queue it when the session id isn't resolved yet.
|
|
1798
|
+
*
|
|
1799
|
+
* `sessionId` written by the callers is the local fallback; the value that
|
|
1800
|
+
* goes on the wire is always the resolved one ({@link SessionState.wireId}),
|
|
1801
|
+
* stamped here so every event of a session shares a single id.
|
|
1802
|
+
*/
|
|
1777
1803
|
private track;
|
|
1804
|
+
private emit;
|
|
1778
1805
|
static ɵfac: i0.ɵɵFactoryDeclaration<StreamStatusTelemetryService2, never>;
|
|
1779
1806
|
static ɵprov: i0.ɵɵInjectableDeclaration<StreamStatusTelemetryService2>;
|
|
1780
1807
|
}
|
|
@@ -3258,7 +3285,21 @@ declare const selectIsExistMatchUrls: _ngrx_store.MemoizedSelector<Record<string
|
|
|
3258
3285
|
declare const selectIsAutostart: _ngrx_store.MemoizedSelector<Record<string, any>, boolean, (s1: _3dsource_angular_unreal_module.StreamConfig) => boolean>;
|
|
3259
3286
|
declare const selectShowReconnectPopup: _ngrx_store.MemoizedSelector<Record<string, any>, boolean, (s1: boolean, s2: boolean) => boolean>;
|
|
3260
3287
|
declare const selectShowLoader: _ngrx_store.MemoizedSelector<Record<string, any>, boolean, (s1: boolean, s2: boolean) => boolean>;
|
|
3261
|
-
|
|
3288
|
+
/**
|
|
3289
|
+
* The connection id of the current stream session.
|
|
3290
|
+
*
|
|
3291
|
+
* The id is issued on the Cirrus side and reaches us either as the
|
|
3292
|
+
* orchestration's `streamRequestId` (polling response / `instanceReserved` /
|
|
3293
|
+
* `instanceReady`) or, when the backend issues none, in the `ssInfo` message
|
|
3294
|
+
* once Cirrus generated it itself. Inside the player it is ONE value —
|
|
3295
|
+
* `connectionId` — and this selector is where the two arrival paths collapse
|
|
3296
|
+
* into it. It names the session everywhere: the debug overlay ("Connection Id")
|
|
3297
|
+
* and the stream telemetry's `sessionId`.
|
|
3298
|
+
*
|
|
3299
|
+
* Also used by external consumers (e.g., metabox). Do not remove.
|
|
3300
|
+
*/
|
|
3301
|
+
declare const selectCirrusConnectionId: _ngrx_store.MemoizedSelector<Record<string, any>, string | undefined, (s1: _3dsource_angular_unreal_module.AwsInstance, s2: _3dsource_angular_unreal_module.SignalingData | null) => string | undefined>;
|
|
3302
|
+
declare const selectSignalingParameters: _ngrx_store.MemoizedSelector<Record<string, any>, string, (s1: _3dsource_angular_unreal_module.SignalingData | null, s2: _3dsource_angular_unreal_module.AwsInstance, s3: string | undefined) => string>;
|
|
3262
3303
|
declare const selectClientAndViewIds: _ngrx_store.MemoizedSelector<Record<string, any>, {
|
|
3263
3304
|
clientId: string | null;
|
|
3264
3305
|
viewId: string | null;
|
|
@@ -3280,19 +3321,6 @@ declare const selectIsLoaderScreenVisible: _ngrx_store.MemoizedSelector<Record<s
|
|
|
3280
3321
|
* producing a small visual step that indicates the WS handshake succeeded.
|
|
3281
3322
|
*/
|
|
3282
3323
|
declare const selectTotalProgress: _ngrx_store.MemoizedSelector<Record<string, any>, number, (s1: number | null, s2: number, s3: _3dsource_angular_unreal_module.AwsInstance, s4: boolean) => number>;
|
|
3283
|
-
/**
|
|
3284
|
-
* The connection id of the current stream session.
|
|
3285
|
-
*
|
|
3286
|
-
* Primary source is the orchestration, which issues it as `streamRequestId` —
|
|
3287
|
-
* in the polling response (legacy flow) or in `instanceReserved`/`instanceReady`
|
|
3288
|
-
* (new orchestration) — and the browser hands it to Cirrus on the WS upgrade
|
|
3289
|
-
* URL. `ssData.connectionId` (the `ssInfo` message) is the fallback for
|
|
3290
|
-
* backends that don't issue one yet: Cirrus then generates it itself and
|
|
3291
|
-
* reports it back here.
|
|
3292
|
-
*
|
|
3293
|
-
* Used by external consumers (e.g., metabox). Do not remove.
|
|
3294
|
-
*/
|
|
3295
|
-
declare const selectCirrusConnectionId: _ngrx_store.MemoizedSelector<Record<string, any>, string | undefined, (s1: _3dsource_angular_unreal_module.AwsInstance, s2: _3dsource_angular_unreal_module.SignalingData | null) => string | undefined>;
|
|
3296
3324
|
/** Used by external consumers (e.g., metabox). Do not remove. */
|
|
3297
3325
|
declare const selectUserInactivityDetected: _ngrx_store.MemoizedSelector<Record<string, any>, {
|
|
3298
3326
|
remainingSecondsToDisconnect: number;
|