@3dsource/angular-unreal-module 0.0.117 → 0.0.119

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@3dsource/angular-unreal-module",
3
- "version": "0.0.117",
3
+ "version": "0.0.119",
4
4
  "description": "Angular Unreal module for connect with unreal engine stream",
5
5
  "keywords": [
6
6
  "3dsource",
@@ -611,7 +611,6 @@ declare class AFKService extends SubService {
611
611
  private readonly unrealConfig;
612
612
  /** Ticks every time warnTimeout changes or resetAfk action fires */
613
613
  private readonly afkResetTrigger;
614
- private readonly disconnected;
615
614
  constructor();
616
615
  private hideOverlay;
617
616
  /**
@@ -656,9 +655,6 @@ declare class AggregatorService extends SubService {
656
655
  private readonly fileReceiver;
657
656
  private readonly unrealConfig;
658
657
  private readonly responseEventListeners;
659
- /**
660
- * Never called for now
661
- */
662
658
  constructor();
663
659
  protected init(): void;
664
660
  protected listenWebRTC(): void;
@@ -675,6 +671,8 @@ declare class AggregatorService extends SubService {
675
671
 
676
672
  declare class CommandTelemetryService {
677
673
  private actions$;
674
+ private readonly destroyRef;
675
+ private readonly destroy$;
678
676
  private readonly appId;
679
677
  private commandsSent;
680
678
  private exileTimeout;
@@ -699,7 +697,7 @@ declare class CommandTelemetryService {
699
697
  private get timeNow();
700
698
  private get sessionTime();
701
699
  private get canSkipSending();
702
- decorate(funcToDecorate: IToBeDecorated): (data: MetaBoxCommandPacket) => void;
700
+ decorate(funcToDecorate: ToBeDecorated): (data: MetaBoxCommandPacket) => void;
703
701
  trackStartCommand(trackingId: string): void;
704
702
  trackStopCommand(trackingId: string, multi?: boolean, response?: {
705
703
  multi?: boolean;
@@ -734,14 +732,14 @@ declare class CommandTelemetryService {
734
732
  * Starts tracking the time for the command.
735
733
  * Finally, calls the provided function with the modified data object.
736
734
  *
737
- * @param {IToBeDecorated} funcToDecorate - The function to be decorated with telemetry tracking.
735
+ * @param {ToBeDecorated} funcToDecorate - The function to be decorated with telemetry tracking.
738
736
  * @param {MetaBoxCommandPacket} data - The data object to be passed to the function. It will be augmented with a unique tracking ID.
739
737
  */
740
738
  private wrapper;
741
739
  static ɵfac: i0.ɵɵFactoryDeclaration<CommandTelemetryService, never>;
742
740
  static ɵprov: i0.ɵɵInjectableDeclaration<CommandTelemetryService>;
743
741
  }
744
- type IToBeDecorated = (data: MetaBoxCommandPacket) => void;
742
+ type ToBeDecorated = (data: MetaBoxCommandPacket) => void;
745
743
  interface TimeStampsRaw {
746
744
  timeStampPak: TimeStampPakCollection;
747
745
  timeStampCommand: TimeStampCommandCollection;
@@ -853,6 +851,8 @@ declare class InputService extends SubService {
853
851
  private getKeyCode;
854
852
  private registerKeyboardEvents;
855
853
  private startListenKeys;
854
+ static ɵfac: i0.ɵɵFactoryDeclaration<InputService, never>;
855
+ static ɵprov: i0.ɵɵInjectableDeclaration<InputService>;
856
856
  }
857
857
 
858
858
  declare class RegionsPingService {
@@ -866,8 +866,11 @@ declare class RegionsPingService {
866
866
  bust_cache: boolean;
867
867
  };
868
868
  getFastest(regionListUrl?: string): rxjs.Observable<string | undefined>;
869
- getPingResult(providers: ProvidersData): rxjs.Observable<PingResult | null>;
870
- getProviders(regionList?: string): rxjs.Observable<ProvidersData>;
869
+ getPingResult(providers: ProvidersData): rxjs.Observable<{
870
+ region_code: string;
871
+ result: number[];
872
+ } | null>;
873
+ getProviders(regionListUrl?: string): rxjs.Observable<ProvidersData>;
871
874
  private startPinging;
872
875
  private checkLatency;
873
876
  private fetchWithTimeout;
@@ -883,13 +886,8 @@ interface Region {
883
886
  url: string;
884
887
  timeout?: number;
885
888
  }
886
- interface PingResult {
887
- region_code: string | undefined;
888
- result: number[];
889
- }
890
889
 
891
890
  declare class SignallingService extends SubService {
892
- private readonly action$;
893
891
  private readonly httpClient;
894
892
  private readonly regionsPingService;
895
893
  private readonly commandTelemetryService;
@@ -1028,9 +1026,7 @@ declare class SignallingService extends SubService {
1028
1026
  static ɵprov: i0.ɵɵInjectableDeclaration<SignallingService>;
1029
1027
  }
1030
1028
 
1031
- declare class StreamStatusTelemetryService {
1032
- private readonly store;
1033
- private readonly actions$;
1029
+ declare class StreamStatusTelemetryService extends SubService {
1034
1030
  private readonly videoService;
1035
1031
  private readonly unrealConfig;
1036
1032
  constructor();
@@ -1042,7 +1038,6 @@ declare class StreamStatusTelemetryService {
1042
1038
  */
1043
1039
  private readyTimeSince;
1044
1040
  private mapEventData;
1045
- private trackEventToMixPanel;
1046
1041
  static ɵfac: i0.ɵɵFactoryDeclaration<StreamStatusTelemetryService, never>;
1047
1042
  static ɵprov: i0.ɵɵInjectableDeclaration<StreamStatusTelemetryService>;
1048
1043
  }
@@ -1089,6 +1084,8 @@ declare class StreamStatusTelemetryService2 {
1089
1084
  private readonly videoService;
1090
1085
  private readonly signallingService;
1091
1086
  private readonly unrealConfig;
1087
+ private readonly destroyRef;
1088
+ private readonly destroy$;
1092
1089
  /**
1093
1090
  * Per-browser anonymous user id. Read from `localStorage` on first access;
1094
1091
  * if missing, a new UUID is generated and persisted. Included as
@@ -1203,10 +1200,12 @@ declare class UnrealCommunicatorService {
1203
1200
  private readonly commandTelemetryService;
1204
1201
  private readonly webRtcPlayerService;
1205
1202
  private readonly unrealConfig;
1203
+ private readonly destroyRef;
1206
1204
  private destroy$;
1207
1205
  private cirrusConnected;
1208
1206
  private readonly afkIgnoredCommands;
1209
1207
  private skipAfkReset;
1208
+ private readonly resetAfk$;
1210
1209
  constructor();
1211
1210
  protected init(): void;
1212
1211
  destroy(): void;
@@ -1225,7 +1224,7 @@ declare class UnrealCommunicatorService {
1225
1224
  */
1226
1225
  emitCommand(descriptor: MetaBoxCommandPacket): void;
1227
1226
  sendInputData(data: ArrayBuffer): void;
1228
- isPlaywrightMode(): void;
1227
+ isPlaywrightMode(): boolean;
1229
1228
  private emitDescriptor;
1230
1229
  private requestInitialSettings;
1231
1230
  private requestQualityControl;
@@ -1428,6 +1427,8 @@ declare class FileReceiverService extends SubService {
1428
1427
  */
1429
1428
  setMimeTypeFromBytes(view: Uint8Array): void;
1430
1429
  setContentsFromBytes(view: Uint8Array): void;
1430
+ static ɵfac: i0.ɵɵFactoryDeclaration<FileReceiverService, never>;
1431
+ static ɵprov: i0.ɵɵInjectableDeclaration<FileReceiverService>;
1431
1432
  }
1432
1433
  interface ReceivedFile {
1433
1434
  blob: Blob;
@@ -1438,9 +1439,9 @@ interface ReceivedFile {
1438
1439
 
1439
1440
  declare class AnalyticsService extends SubService {
1440
1441
  #private;
1441
- sendEventToMixPanel(name: string, params?: Record<string, unknown>): void;
1442
1442
  constructor();
1443
1443
  private monitorMouse;
1444
+ private sendEventToMixPanel;
1444
1445
  static ɵfac: i0.ɵɵFactoryDeclaration<AnalyticsService, never>;
1445
1446
  static ɵprov: i0.ɵɵInjectableDeclaration<AnalyticsService>;
1446
1447
  }
@@ -1518,9 +1519,8 @@ declare class AnalyticsService extends SubService {
1518
1519
  * the existing `CommandsEffects.setMaxFps$` effect that sends the
1519
1520
  * `t.MaxFPS <value>` console command to Unreal Engine.
1520
1521
  */
1521
- declare class FpsMonitorService {
1522
- private videoService;
1523
- private store;
1522
+ declare class FpsMonitorService extends SubService {
1523
+ private readonly videoService;
1524
1524
  private readonly unrealConfig;
1525
1525
  /** Discrete FPS targets the controller can switch between (ascending order). Last 0 is an unlimited framerate indicator*/
1526
1526
  private readonly FPS_STEPS;
@@ -1559,7 +1559,6 @@ declare class FpsMonitorService {
1559
1559
  private samples;
1560
1560
  private lastDecisionTime;
1561
1561
  private lastUpgrade;
1562
- private disconnect$;
1563
1562
  constructor();
1564
1563
  protected init(): void;
1565
1564
  private startSession;
@@ -1781,6 +1780,14 @@ declare const smoothTransition: (start: number, end: number, duration: number) =
1781
1780
 
1782
1781
  declare const getImageFromVideoStream: (takeSizeFrom?: "video" | "constant", imageOutput?: ImageOutputValues, sizes?: StreamResolutionProps) => string | null;
1783
1782
 
1783
+ /**
1784
+ * Generator that cycles through `urls` indefinitely. Each call to
1785
+ * `getActiveUrl(urls)` returns a fresh generator with its own counter,
1786
+ * so concurrent generators (e.g., overlapping reconnect attempts) do
1787
+ * not share state. The counter is initialized once per generator
1788
+ * instance — before any `yield` — so each `.next()` call advances
1789
+ * within that single generator.
1790
+ */
1784
1791
  declare function getActiveUrl(urls: string[]): Generator<string, void, unknown>;
1785
1792
 
1786
1793
  declare class KalmanFilter1D {
@@ -2117,14 +2124,18 @@ declare const unrealCommandCallback: _ngrx_store.ActionCreator<string, (props: {
2117
2124
  declare const commandStarted: _ngrx_store.ActionCreator<string, (props: {
2118
2125
  id: string;
2119
2126
  command: string;
2127
+ timeStamp: number;
2120
2128
  }) => {
2121
2129
  id: string;
2122
2130
  command: string;
2131
+ timeStamp: number;
2123
2132
  } & _ngrx_store.Action<string>>;
2124
2133
  declare const commandCompleted: _ngrx_store.ActionCreator<string, (props: {
2125
2134
  id: string;
2135
+ now: number;
2126
2136
  }) => {
2127
2137
  id: string;
2138
+ now: number;
2128
2139
  } & _ngrx_store.Action<string>>;
2129
2140
 
2130
2141
  declare class CommandsEffects {
@@ -2132,6 +2143,7 @@ declare class CommandsEffects {
2132
2143
  private readonly unrealInitialConfig;
2133
2144
  listenUnrealCallbackByInitSignalling$: rxjs.Observable<{
2134
2145
  id: string;
2146
+ now: number;
2135
2147
  } & _ngrx_store.Action<string>> & _ngrx_effects.CreateEffectMetadata;
2136
2148
  static ɵfac: i0.ɵɵFactoryDeclaration<CommandsEffects, never>;
2137
2149
  static ɵprov: i0.ɵɵInjectableDeclaration<CommandsEffects>;
@@ -2398,9 +2410,7 @@ declare const showUnrealErrorMessage: _ngrx_store.ActionCreator<string, (props:
2398
2410
  code: number | null;
2399
2411
  error?: string;
2400
2412
  } & _ngrx_store.Action<string>>;
2401
- declare const initSignalling: _ngrx_store.FunctionWithParametersType<[resetDisconnectionReason?: any], {
2402
- resetDisconnectionReason: any;
2403
- } & _ngrx_store.Action<string>> & _ngrx_store.Action<string>;
2413
+ declare const initSignalling: _ngrx_store.ActionCreator<string, () => _ngrx_store.Action<string>>;
2404
2414
  declare const startStream: _ngrx_store.ActionCreator<string, (props: {
2405
2415
  config: Partial<StreamConfig>;
2406
2416
  }) => {
@@ -2492,6 +2502,7 @@ declare class UnrealEffects {
2492
2502
  private dataChannelConnectionTimeout;
2493
2503
  private connectionCompleted$;
2494
2504
  private reconnectConfig;
2505
+ destroyConnectionsCleanup$: rxjs.Observable<_ngrx_store.Action<string>> & _ngrx_effects.CreateEffectMetadata;
2495
2506
  destroyConnections$: rxjs.Observable<{
2496
2507
  reason: _3dsource_angular_unreal_module.DisconnectReasonType;
2497
2508
  } & _ngrx_store.Action<string>> & _ngrx_effects.CreateEffectMetadata;
@@ -2530,9 +2541,7 @@ declare class UnrealEffects {
2530
2541
  forceViewportNotReady$: rxjs.Observable<_ngrx_store.Action<string>> & _ngrx_effects.CreateEffectMetadata;
2531
2542
  resetCirrusOnDestroy$: rxjs.Observable<_ngrx_store.Action<string>> & _ngrx_effects.CreateEffectMetadata;
2532
2543
  destroyRemoteConnections$: rxjs.Observable<_ngrx_store.Action<string>> & _ngrx_effects.CreateEffectMetadata;
2533
- destroyConnectionAndRestart$: rxjs.Observable<{
2534
- resetDisconnectionReason: any;
2535
- } & _ngrx_store.Action<string>> & _ngrx_effects.CreateEffectMetadata;
2544
+ destroyConnectionAndRestart$: rxjs.Observable<_ngrx_store.Action<string>> & _ngrx_effects.CreateEffectMetadata;
2536
2545
  showUnrealError$: rxjs.Observable<{
2537
2546
  code: number | null;
2538
2547
  error?: string;
@@ -2540,10 +2549,8 @@ declare class UnrealEffects {
2540
2549
  unrealReceiverReady$: rxjs.Observable<_ngrx_store.Action<string>> & _ngrx_effects.CreateEffectMetadata;
2541
2550
  initAppByDataChannelReady$: rxjs.Observable<_ngrx_store.Action<string>> & _ngrx_effects.CreateEffectMetadata;
2542
2551
  setViewportReadyBySetLoopBackCommandIsCompleted$: rxjs.Observable<_ngrx_store.Action<string>> & _ngrx_effects.CreateEffectMetadata;
2543
- startStream$: rxjs.Observable<{
2544
- resetDisconnectionReason: any;
2545
- } & _ngrx_store.Action<string>> & _ngrx_effects.CreateEffectMetadata;
2546
- resetAfkOnVideoStart$: rxjs.Observable<_ngrx_store.Action<string>> & _ngrx_effects.CreateEffectMetadata;
2552
+ startStream$: rxjs.Observable<_ngrx_store.Action<string>> & _ngrx_effects.CreateEffectMetadata;
2553
+ resetAfkOnPausedVideoInit$: rxjs.Observable<_ngrx_store.Action<string>> & _ngrx_effects.CreateEffectMetadata;
2547
2554
  /**
2548
2555
  * Effect: `handleDataChannelClosed$`
2549
2556
  *