@3dsource/angular-unreal-module 0.0.105 → 0.0.106-dev.1
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 +369 -369
- package/fesm2022/3dsource-angular-unreal-module.mjs +538 -602
- package/fesm2022/3dsource-angular-unreal-module.mjs.map +1 -1
- package/package.json +1 -1
- package/types/3dsource-angular-unreal-module.d.ts +72 -141
- package/types/3dsource-angular-unreal-module.d.ts.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { ElementRef, OnInit, InjectionToken, PipeTransform } from '@angular/core';
|
|
3
|
-
import { DialogRef } from '@angular/cdk/dialog';
|
|
2
|
+
import { ElementRef, OnInit, InjectionToken, DestroyRef, PipeTransform } from '@angular/core';
|
|
4
3
|
import * as rxjs from 'rxjs';
|
|
5
4
|
import { Observable, Subject, Subscription } from 'rxjs';
|
|
6
5
|
import * as _3dsource_angular_unreal_module from '@3dsource/angular-unreal-module';
|
|
@@ -14,8 +13,8 @@ import { MetaBoxCommandPacket, MetaBoxCommandList, FSceneState, FProductPayload,
|
|
|
14
13
|
|
|
15
14
|
declare class AfkTimeoutModalComponent {
|
|
16
15
|
#private;
|
|
17
|
-
isAfkTimerVisible: i0.Signal<boolean>;
|
|
18
|
-
afkCountdown: i0.Signal<number>;
|
|
16
|
+
readonly isAfkTimerVisible: i0.Signal<boolean>;
|
|
17
|
+
readonly afkCountdown: i0.Signal<number>;
|
|
19
18
|
resetAfk(): void;
|
|
20
19
|
static ɵfac: i0.ɵɵFactoryDeclaration<AfkTimeoutModalComponent, never>;
|
|
21
20
|
static ɵcmp: i0.ɵɵComponentDeclaration<AfkTimeoutModalComponent, "app-afk-timeout-modal", never, {}, {}, never, never, true, never>;
|
|
@@ -30,7 +29,7 @@ declare class FreezeFrameComponent {
|
|
|
30
29
|
}
|
|
31
30
|
|
|
32
31
|
declare class LowBandwidthModalComponent {
|
|
33
|
-
|
|
32
|
+
#private;
|
|
34
33
|
close(value?: boolean): void;
|
|
35
34
|
static ɵfac: i0.ɵɵFactoryDeclaration<LowBandwidthModalComponent, never>;
|
|
36
35
|
static ɵcmp: i0.ɵɵComponentDeclaration<LowBandwidthModalComponent, "app-low-bandwidth-modal", never, {}, {}, never, never, true, never>;
|
|
@@ -38,8 +37,8 @@ declare class LowBandwidthModalComponent {
|
|
|
38
37
|
|
|
39
38
|
declare class ImageLoadingSrcComponent {
|
|
40
39
|
#private;
|
|
41
|
-
isLoaderScreenVisible: i0.Signal<boolean>;
|
|
42
|
-
imageLoadingSrc: i0.Signal<string>;
|
|
40
|
+
readonly isLoaderScreenVisible: i0.Signal<boolean>;
|
|
41
|
+
readonly imageLoadingSrc: i0.Signal<string>;
|
|
43
42
|
static ɵfac: i0.ɵɵFactoryDeclaration<ImageLoadingSrcComponent, never>;
|
|
44
43
|
static ɵcmp: i0.ɵɵComponentDeclaration<ImageLoadingSrcComponent, "app-image-loading-src", never, {}, {}, never, never, true, never>;
|
|
45
44
|
}
|
|
@@ -69,6 +68,7 @@ declare class StatGraphComponent {
|
|
|
69
68
|
}
|
|
70
69
|
|
|
71
70
|
declare class UnrealSceneComponent {
|
|
71
|
+
#private;
|
|
72
72
|
readonly unrealConfig: _3dsource_angular_unreal_module.UnrealInitialConfig;
|
|
73
73
|
readonly isStudio: i0.InputSignal<boolean>;
|
|
74
74
|
readonly useContainerAsSizeProvider: i0.InputSignal<boolean>;
|
|
@@ -85,7 +85,6 @@ declare class UnrealSceneComponent {
|
|
|
85
85
|
private width;
|
|
86
86
|
private height;
|
|
87
87
|
private readonly actions$;
|
|
88
|
-
private store;
|
|
89
88
|
private isExistMatchUrls;
|
|
90
89
|
readonly isDevMode: boolean;
|
|
91
90
|
readonly lightMode: i0.Signal<boolean>;
|
|
@@ -110,8 +109,8 @@ declare class UnrealSceneComponent {
|
|
|
110
109
|
}
|
|
111
110
|
|
|
112
111
|
declare class IntroSrcComponent {
|
|
112
|
+
#private;
|
|
113
113
|
private readonly videoElement;
|
|
114
|
-
private store;
|
|
115
114
|
protected imageIntroSrc: i0.Signal<string | null>;
|
|
116
115
|
protected videoIntroSrc: i0.Signal<string | null>;
|
|
117
116
|
private viewportReady;
|
|
@@ -183,6 +182,7 @@ declare class VideoStatsComponent implements OnInit {
|
|
|
183
182
|
|
|
184
183
|
declare class WebrtcErrorModalComponent {
|
|
185
184
|
#private;
|
|
185
|
+
readonly isCirrusConnected: i0.Signal<boolean>;
|
|
186
186
|
close(): void;
|
|
187
187
|
closeModalWithCirrusDisconnect(): void;
|
|
188
188
|
static ɵfac: i0.ɵɵFactoryDeclaration<WebrtcErrorModalComponent, never>;
|
|
@@ -253,6 +253,8 @@ interface UnrealInitialConfig {
|
|
|
253
253
|
regionsPingUrl?: string;
|
|
254
254
|
screenLockerContainerId?: string;
|
|
255
255
|
dataChannelConnectionTimeout?: number;
|
|
256
|
+
newWebRtcConnector?: boolean;
|
|
257
|
+
fpsMonitor?: boolean;
|
|
256
258
|
playwright?: boolean;
|
|
257
259
|
/** Configuration for auto-reconnection behavior */
|
|
258
260
|
reconnect?: ReconnectConfig;
|
|
@@ -350,7 +352,7 @@ declare const WS_TIMEOUT = 2000;
|
|
|
350
352
|
declare const POLLING_TIME = 4000;
|
|
351
353
|
declare const WS_OPEN_STATE = 1;
|
|
352
354
|
declare const DEFAULT_AFK_TIMEOUT_PERIOD = 15;
|
|
353
|
-
declare const DEFAULT_AFK_TIMEOUT =
|
|
355
|
+
declare const DEFAULT_AFK_TIMEOUT = 10;
|
|
354
356
|
declare const DATA_CHANNEL_CONNECTION_TIMEOUT = 8000;
|
|
355
357
|
declare const SIGNALLING_PERCENT_VALUE = 56;
|
|
356
358
|
declare const SCREEN_LOCKER_CONTAINER_ID = "3dsource_start_screen";
|
|
@@ -383,9 +385,12 @@ interface InputProps {
|
|
|
383
385
|
}
|
|
384
386
|
|
|
385
387
|
declare class SubService {
|
|
388
|
+
protected readonly destroyRef: DestroyRef;
|
|
389
|
+
protected readonly destroy$: Subject<void>;
|
|
386
390
|
actions$: Actions<any>;
|
|
387
391
|
store: Store<any>;
|
|
388
392
|
disconnect$: rxjs.Observable<false>;
|
|
393
|
+
_destroy: () => void;
|
|
389
394
|
}
|
|
390
395
|
|
|
391
396
|
declare class AFKService extends SubService {
|
|
@@ -397,6 +402,7 @@ declare class AFKService extends SubService {
|
|
|
397
402
|
private countdownTimer;
|
|
398
403
|
private selectWarnTimeout;
|
|
399
404
|
private isViewportReady;
|
|
405
|
+
private readonly unrealConfig;
|
|
400
406
|
constructor();
|
|
401
407
|
protected init(): void;
|
|
402
408
|
private hideOverlay;
|
|
@@ -427,12 +433,11 @@ declare class AggregatorService extends SubService {
|
|
|
427
433
|
private readonly webrtcPlayer;
|
|
428
434
|
private readonly freezeFrame;
|
|
429
435
|
private readonly fileReceiver;
|
|
430
|
-
private readonly
|
|
436
|
+
private readonly unrealConfig;
|
|
431
437
|
private readonly responseEventListeners;
|
|
432
438
|
/**
|
|
433
439
|
* Never called for now
|
|
434
440
|
*/
|
|
435
|
-
private readonly destroy$;
|
|
436
441
|
constructor();
|
|
437
442
|
protected init(): void;
|
|
438
443
|
protected listenWebRTC(): void;
|
|
@@ -450,7 +455,6 @@ declare class AggregatorService extends SubService {
|
|
|
450
455
|
|
|
451
456
|
declare class CommandTelemetryService {
|
|
452
457
|
private actions$;
|
|
453
|
-
private store;
|
|
454
458
|
private readonly appId;
|
|
455
459
|
private commandsSent;
|
|
456
460
|
private exileTimeout;
|
|
@@ -469,7 +473,7 @@ declare class CommandTelemetryService {
|
|
|
469
473
|
private userId;
|
|
470
474
|
private payloads;
|
|
471
475
|
private readonly httpClient;
|
|
472
|
-
private readonly
|
|
476
|
+
private readonly unrealConfig;
|
|
473
477
|
constructor();
|
|
474
478
|
protected init(): void;
|
|
475
479
|
private get timeNow();
|
|
@@ -541,6 +545,7 @@ interface TimeStampCommandCollection {
|
|
|
541
545
|
|
|
542
546
|
declare class ConsoleExtensionsService extends SubService {
|
|
543
547
|
#private;
|
|
548
|
+
private readonly unrealConfig;
|
|
544
549
|
constructor();
|
|
545
550
|
protected init(): void;
|
|
546
551
|
private unrealHelp;
|
|
@@ -560,6 +565,7 @@ declare class FreezeFrameService extends SubService {
|
|
|
560
565
|
private size;
|
|
561
566
|
private jpeg;
|
|
562
567
|
private freezeFrameOverlay;
|
|
568
|
+
private readonly unrealConfig;
|
|
563
569
|
constructor();
|
|
564
570
|
protected init(): void;
|
|
565
571
|
setData(view: Uint8Array): void;
|
|
@@ -575,6 +581,7 @@ declare class InputService extends SubService {
|
|
|
575
581
|
private commandsSender;
|
|
576
582
|
private isDevMode;
|
|
577
583
|
private videoService;
|
|
584
|
+
private readonly unrealConfig;
|
|
578
585
|
readonly defaultKeys: (17 | 37 | 38 | 39 | 40 | 46 | 65 | 68 | 83 | 87 | 107 | 109 | 187 | 189)[];
|
|
579
586
|
private availableKeys;
|
|
580
587
|
private options;
|
|
@@ -585,7 +592,7 @@ declare class InputService extends SubService {
|
|
|
585
592
|
videoBoundingRect: DOMRect;
|
|
586
593
|
fingerIds: Map<any, any>;
|
|
587
594
|
maxByteValue: number;
|
|
588
|
-
fingers:
|
|
595
|
+
fingers: (0 | 2 | 1 | 4 | 8 | 3 | 5 | 6 | 7 | 9)[];
|
|
589
596
|
private offsetParams;
|
|
590
597
|
constructor();
|
|
591
598
|
protected init(): void;
|
|
@@ -633,10 +640,9 @@ declare class RegionsPingService {
|
|
|
633
640
|
max_parallel_requests: number;
|
|
634
641
|
bust_cache: boolean;
|
|
635
642
|
};
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
getProviders(regionList?: string): Observable<ProvidersData>;
|
|
643
|
+
getFastest(regionListUrl?: string): rxjs.Observable<string | undefined>;
|
|
644
|
+
getPingResult(providers: ProvidersData): rxjs.Observable<PingResult | null>;
|
|
645
|
+
getProviders(regionList?: string): rxjs.Observable<ProvidersData>;
|
|
640
646
|
private startPinging;
|
|
641
647
|
private checkLatency;
|
|
642
648
|
private fetchWithTimeout;
|
|
@@ -662,6 +668,7 @@ declare class SignallingService extends SubService {
|
|
|
662
668
|
private readonly httpClient;
|
|
663
669
|
private readonly regionsPingService;
|
|
664
670
|
private readonly commandTelemetryService;
|
|
671
|
+
private readonly unrealConfig;
|
|
665
672
|
readonly region: i0.WritableSignal<string>;
|
|
666
673
|
readonly selectClientAndViewIds: i0.Signal<{
|
|
667
674
|
clientId: string | null;
|
|
@@ -798,6 +805,7 @@ declare class SignallingService extends SubService {
|
|
|
798
805
|
|
|
799
806
|
declare class StreamStatusTelemetryService {
|
|
800
807
|
#private;
|
|
808
|
+
private readonly unrealConfig;
|
|
801
809
|
constructor();
|
|
802
810
|
protected init(): void;
|
|
803
811
|
private mapEventData;
|
|
@@ -808,8 +816,10 @@ declare class StreamStatusTelemetryService {
|
|
|
808
816
|
|
|
809
817
|
declare class UnrealCommunicatorService {
|
|
810
818
|
private store;
|
|
819
|
+
private actions$;
|
|
811
820
|
private commandTelemetryService;
|
|
812
821
|
private webRtcPlayerService;
|
|
822
|
+
private readonly unrealConfig;
|
|
813
823
|
private destroy$;
|
|
814
824
|
private cirrusConnected;
|
|
815
825
|
constructor();
|
|
@@ -830,6 +840,7 @@ declare class UnrealCommunicatorService {
|
|
|
830
840
|
*/
|
|
831
841
|
emitCommand(descriptor: MetaBoxCommandPacket): void;
|
|
832
842
|
sendInputData(data: ArrayBuffer): void;
|
|
843
|
+
isPlaywrightMode(): void;
|
|
833
844
|
private emitDescriptor;
|
|
834
845
|
private requestInitialSettings;
|
|
835
846
|
private requestQualityControl;
|
|
@@ -845,13 +856,11 @@ declare class VideoService extends SubService {
|
|
|
845
856
|
private videoTrack$;
|
|
846
857
|
private VideoEncoderQP;
|
|
847
858
|
private aggregatedStats;
|
|
848
|
-
|
|
859
|
+
kalmanFilter1D: KalmanFilter1D;
|
|
849
860
|
/**
|
|
850
861
|
* Aggregate video stats and emit it as videoStats$
|
|
851
862
|
*/
|
|
852
863
|
videoStats$: rxjs.Observable<AggregatedStat>;
|
|
853
|
-
constructor();
|
|
854
|
-
protected init(): void;
|
|
855
864
|
setContainer(container?: HTMLDivElement | null): void;
|
|
856
865
|
setLatencyTimings(latencyTimings: string): void;
|
|
857
866
|
setEncoder(data: ArrayBuffer): void;
|
|
@@ -873,6 +882,7 @@ declare class VideoService extends SubService {
|
|
|
873
882
|
|
|
874
883
|
declare class WebRtcPlayerService extends SubService {
|
|
875
884
|
onDataChannelMessage$: Subject<ArrayBuffer>;
|
|
885
|
+
private dcClient;
|
|
876
886
|
private pcClient;
|
|
877
887
|
private signallingSrv;
|
|
878
888
|
private videoService;
|
|
@@ -881,7 +891,6 @@ declare class WebRtcPlayerService extends SubService {
|
|
|
881
891
|
private useMic;
|
|
882
892
|
private forceTURN;
|
|
883
893
|
private forceMonoAudio;
|
|
884
|
-
private dcClient;
|
|
885
894
|
private isReconnecting;
|
|
886
895
|
constructor();
|
|
887
896
|
protected init(): void;
|
|
@@ -898,7 +907,7 @@ declare class WebRtcPlayerService extends SubService {
|
|
|
898
907
|
send(data: ArrayBuffer): void;
|
|
899
908
|
/**
|
|
900
909
|
* Attempts to reconnect the peer when send fails due to DataChannel not being open.
|
|
901
|
-
* This handles cases where the DC connection is broken but no error events are fired.
|
|
910
|
+
* This handles cases where the DC connection is broken, but no error events are fired.
|
|
902
911
|
*/
|
|
903
912
|
private tryReconnectOnSendFailure;
|
|
904
913
|
/**
|
|
@@ -922,6 +931,7 @@ declare class WebRtcPlayerService extends SubService {
|
|
|
922
931
|
declare class WebRtcPlayerService2 extends SubService {
|
|
923
932
|
onDataChannelMessage$: Subject<ArrayBuffer>;
|
|
924
933
|
private pcClient;
|
|
934
|
+
private dcClient;
|
|
925
935
|
private signallingSrv;
|
|
926
936
|
private videoService;
|
|
927
937
|
private commandTelemetryService;
|
|
@@ -929,7 +939,6 @@ declare class WebRtcPlayerService2 extends SubService {
|
|
|
929
939
|
private useMic;
|
|
930
940
|
private forceTURN;
|
|
931
941
|
private forceMonoAudio;
|
|
932
|
-
private dcClient;
|
|
933
942
|
/** Whether the remote SDP has been applied to the current peer connection */
|
|
934
943
|
private remoteDescriptionSet;
|
|
935
944
|
/** ICE candidates received before the remote description was set */
|
|
@@ -942,7 +951,7 @@ declare class WebRtcPlayerService2 extends SubService {
|
|
|
942
951
|
* Creates a new peer connection, applies the remote offer,
|
|
943
952
|
* then responds with an SDP answer.
|
|
944
953
|
*
|
|
945
|
-
* The DataChannel is NOT created here — the server creates it
|
|
954
|
+
* The DataChannel is NOT created here — the server creates it,
|
|
946
955
|
* and we receive it via the `datachannel` event on the peer connection.
|
|
947
956
|
*/
|
|
948
957
|
private handleServerOffer;
|
|
@@ -1011,7 +1020,7 @@ declare class WebRtcPlayerService2 extends SubService {
|
|
|
1011
1020
|
send(data: ArrayBuffer): void;
|
|
1012
1021
|
/**
|
|
1013
1022
|
* Attempts to reconnect the peer when send fails due to DataChannel not being open.
|
|
1014
|
-
* This handles cases where the DC connection is broken but no error events are fired.
|
|
1023
|
+
* This handles cases where the DC connection is broken, but no error events are fired.
|
|
1015
1024
|
*/
|
|
1016
1025
|
private tryReconnectOnSendFailure;
|
|
1017
1026
|
/**
|
|
@@ -1027,14 +1036,14 @@ declare class WebRtcPlayerService2 extends SubService {
|
|
|
1027
1036
|
private setupDataChannelCallbacks;
|
|
1028
1037
|
private onDataChannelConnected;
|
|
1029
1038
|
/**
|
|
1030
|
-
* Creates an SDP offer, applies SDP munging, sets it as local description,
|
|
1039
|
+
* Creates an SDP offer, applies SDP munging, sets it as a local description,
|
|
1031
1040
|
* and sends it to the server via signaling.
|
|
1032
1041
|
* Transceivers already configure media directions, so deprecated
|
|
1033
1042
|
* offerToReceive* options are not used.
|
|
1034
1043
|
*/
|
|
1035
1044
|
private createOffer;
|
|
1036
1045
|
/**
|
|
1037
|
-
* Creates an SDP answer, applies SDP munging, sets it as local description,
|
|
1046
|
+
* Creates an SDP answer, applies SDP munging, sets it as a local description,
|
|
1038
1047
|
* and sends it to the server via signaling.
|
|
1039
1048
|
*/
|
|
1040
1049
|
private createAnswer;
|
|
@@ -1042,63 +1051,20 @@ declare class WebRtcPlayerService2 extends SubService {
|
|
|
1042
1051
|
static ɵprov: i0.ɵɵInjectableDeclaration<WebRtcPlayerService2>;
|
|
1043
1052
|
}
|
|
1044
1053
|
|
|
1045
|
-
declare class AfkPlaywrightService extends AFKService {
|
|
1046
|
-
init(): void;
|
|
1047
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AfkPlaywrightService, never>;
|
|
1048
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<AfkPlaywrightService>;
|
|
1049
|
-
}
|
|
1050
|
-
|
|
1051
|
-
declare class SignallingPlaywrightService extends SignallingService {
|
|
1052
|
-
constructor();
|
|
1053
|
-
init(): void;
|
|
1054
|
-
connectToSignaling(): rxjs.Observable<never>;
|
|
1055
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SignallingPlaywrightService, never>;
|
|
1056
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<SignallingPlaywrightService>;
|
|
1057
|
-
}
|
|
1058
|
-
|
|
1059
|
-
declare class UnrealCommunicatorPlaywrightService extends UnrealCommunicatorService {
|
|
1060
|
-
init(): void;
|
|
1061
|
-
sendCommandToUnreal(): void;
|
|
1062
|
-
sendInputData(): void;
|
|
1063
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<UnrealCommunicatorPlaywrightService, never>;
|
|
1064
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<UnrealCommunicatorPlaywrightService>;
|
|
1065
|
-
}
|
|
1066
|
-
|
|
1067
|
-
declare class AggregatorPlaywrightService extends AggregatorService {
|
|
1068
|
-
init(): void;
|
|
1069
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AggregatorPlaywrightService, never>;
|
|
1070
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<AggregatorPlaywrightService>;
|
|
1071
|
-
}
|
|
1072
|
-
|
|
1073
|
-
declare class FreezeFramePlaywrightService extends FreezeFrameService {
|
|
1074
|
-
init(): void;
|
|
1075
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FreezeFramePlaywrightService, never>;
|
|
1076
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<FreezeFramePlaywrightService>;
|
|
1077
|
-
}
|
|
1078
|
-
|
|
1079
|
-
declare class CommandTelemetryPlaywrightService extends CommandTelemetryService {
|
|
1080
|
-
init(): void;
|
|
1081
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CommandTelemetryPlaywrightService, never>;
|
|
1082
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<CommandTelemetryPlaywrightService>;
|
|
1083
|
-
}
|
|
1084
|
-
|
|
1085
|
-
declare class StreamStatusTelemetryPlaywrightService extends StreamStatusTelemetryService {
|
|
1086
|
-
init(): void;
|
|
1087
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<StreamStatusTelemetryPlaywrightService, never>;
|
|
1088
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<StreamStatusTelemetryPlaywrightService>;
|
|
1089
|
-
}
|
|
1090
|
-
|
|
1091
|
-
declare class ConsoleExtensionsPlaywrightService extends ConsoleExtensionsService {
|
|
1092
|
-
init(): void;
|
|
1093
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ConsoleExtensionsPlaywrightService, never>;
|
|
1094
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ConsoleExtensionsPlaywrightService>;
|
|
1095
|
-
}
|
|
1096
|
-
|
|
1097
1054
|
declare const ReceivedMimeTypes: {
|
|
1098
1055
|
readonly ApplicationJson: "application/json";
|
|
1099
1056
|
};
|
|
1100
1057
|
type ReceivedMimeType = (typeof ReceivedMimeTypes)[keyof typeof ReceivedMimeTypes];
|
|
1101
1058
|
|
|
1059
|
+
declare class FileHandlerService {
|
|
1060
|
+
private fileService;
|
|
1061
|
+
private fileHandlers;
|
|
1062
|
+
private handleJsonFile;
|
|
1063
|
+
observeFileResponse<K extends keyof MetaBoxCommandList, T extends MetaBoxCommandList[K] = MetaBoxCommandList[K]>(mimetype: ReceivedMimeType, data: T, sender: (data: T) => void, timeOut?: number): Observable<unknown>;
|
|
1064
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FileHandlerService, never>;
|
|
1065
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<FileHandlerService>;
|
|
1066
|
+
}
|
|
1067
|
+
|
|
1102
1068
|
declare class FileReceiverService extends SubService {
|
|
1103
1069
|
fileComplete$: Subject<ReceivedFile>;
|
|
1104
1070
|
private valid;
|
|
@@ -1106,8 +1072,8 @@ declare class FileReceiverService extends SubService {
|
|
|
1106
1072
|
private mimetype;
|
|
1107
1073
|
private receiving;
|
|
1108
1074
|
private extension;
|
|
1109
|
-
private timestampStart;
|
|
1110
1075
|
private data;
|
|
1076
|
+
private readonly unrealConfig;
|
|
1111
1077
|
constructor();
|
|
1112
1078
|
protected init(): void;
|
|
1113
1079
|
reset(): void;
|
|
@@ -1131,8 +1097,13 @@ interface ReceivedFile {
|
|
|
1131
1097
|
valid: boolean;
|
|
1132
1098
|
}
|
|
1133
1099
|
|
|
1134
|
-
declare class
|
|
1135
|
-
|
|
1100
|
+
declare class AnalyticsService extends SubService {
|
|
1101
|
+
#private;
|
|
1102
|
+
sendEventToMixPanel(name: string, params?: Record<string, unknown>): void;
|
|
1103
|
+
constructor();
|
|
1104
|
+
private monitorMouse;
|
|
1105
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AnalyticsService, never>;
|
|
1106
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AnalyticsService>;
|
|
1136
1107
|
}
|
|
1137
1108
|
|
|
1138
1109
|
/**
|
|
@@ -1211,13 +1182,14 @@ declare class FileReceiverPlaywrightService extends FileReceiverService {
|
|
|
1211
1182
|
declare class FpsMonitorService {
|
|
1212
1183
|
private videoService;
|
|
1213
1184
|
private store;
|
|
1185
|
+
private readonly unrealConfig;
|
|
1214
1186
|
/** Discrete FPS targets the controller can switch between (ascending order). */
|
|
1215
1187
|
private readonly FPS_STEPS;
|
|
1216
|
-
/** Reference ceiling for bitrate (bits/sec) used to
|
|
1188
|
+
/** Reference ceiling for bitrate (bits/sec) used to normalize a bitrate load to 0..1. */
|
|
1217
1189
|
private readonly MAX_BITRATE;
|
|
1218
1190
|
/**
|
|
1219
1191
|
* Cooldown (ms) for any decision (increase or decrease) following an increase.
|
|
1220
|
-
* After an increase the system should react faster.
|
|
1192
|
+
* After an increase, the system should react faster.
|
|
1221
1193
|
*/
|
|
1222
1194
|
private readonly COOLDOWN_AFTER_INCREASE_MS;
|
|
1223
1195
|
/**
|
|
@@ -1231,17 +1203,23 @@ declare class FpsMonitorService {
|
|
|
1231
1203
|
private readonly COOLDOWN_INCREASE_AFTER_DECREASE_MS;
|
|
1232
1204
|
/**
|
|
1233
1205
|
* Number of videoStats$ ticks to accumulate before evaluating.
|
|
1234
|
-
* At 250 ms per tick this gives a ~2 s sliding evaluation window,
|
|
1206
|
+
* At 250 ms per tick, this gives a ~2 s sliding evaluation window,
|
|
1235
1207
|
* long enough to smooth out single-frame jitter.
|
|
1236
1208
|
*/
|
|
1237
1209
|
private readonly SAMPLE_WINDOW;
|
|
1210
|
+
/** Emits when the session ends, cancelling the current stats' subscription. */
|
|
1211
|
+
private session$;
|
|
1238
1212
|
/** Current FPS target; starts at max (60 FPS) and adapts downward/upward. */
|
|
1239
1213
|
private currentFpsTarget;
|
|
1240
1214
|
private samples;
|
|
1241
1215
|
private lastDecisionTime;
|
|
1242
1216
|
private lastUpgrade;
|
|
1217
|
+
private disconnect$;
|
|
1243
1218
|
constructor();
|
|
1244
1219
|
protected init(): void;
|
|
1220
|
+
private startSession;
|
|
1221
|
+
private resetSession;
|
|
1222
|
+
private resetMutableState;
|
|
1245
1223
|
/**
|
|
1246
1224
|
* Called on every videoStats$ emission (~250 ms).
|
|
1247
1225
|
* Accumulates samples and evaluates once per SAMPLE_WINDOW.
|
|
@@ -1311,36 +1289,6 @@ declare class FpsMonitorService {
|
|
|
1311
1289
|
static ɵprov: i0.ɵɵInjectableDeclaration<FpsMonitorService>;
|
|
1312
1290
|
}
|
|
1313
1291
|
|
|
1314
|
-
declare class FpsMonitorEmptyService extends FpsMonitorService {
|
|
1315
|
-
init(): void;
|
|
1316
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FpsMonitorEmptyService, never>;
|
|
1317
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<FpsMonitorEmptyService>;
|
|
1318
|
-
}
|
|
1319
|
-
|
|
1320
|
-
declare class InputPlaywrightService extends InputService {
|
|
1321
|
-
init(): void;
|
|
1322
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<InputPlaywrightService, never>;
|
|
1323
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<InputPlaywrightService>;
|
|
1324
|
-
}
|
|
1325
|
-
|
|
1326
|
-
declare class FileHandlerService {
|
|
1327
|
-
private fileService;
|
|
1328
|
-
private fileHandlers;
|
|
1329
|
-
private handleJsonFile;
|
|
1330
|
-
observeFileResponse<K extends keyof MetaBoxCommandList, T extends MetaBoxCommandList[K] = MetaBoxCommandList[K]>(mimetype: ReceivedMimeType, data: T, sender: (data: T) => void, timeOut?: number): Observable<unknown>;
|
|
1331
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FileHandlerService, never>;
|
|
1332
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<FileHandlerService>;
|
|
1333
|
-
}
|
|
1334
|
-
|
|
1335
|
-
declare class AnalyticsService {
|
|
1336
|
-
#private;
|
|
1337
|
-
sendEventToMixPanel(name: string, params?: Record<string, unknown>): void;
|
|
1338
|
-
constructor();
|
|
1339
|
-
private monitorMouse;
|
|
1340
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AnalyticsService, never>;
|
|
1341
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<AnalyticsService>;
|
|
1342
|
-
}
|
|
1343
|
-
|
|
1344
1292
|
/**
|
|
1345
1293
|
* Custom Unreal callback events that are not part of MetaBoxCommandList.
|
|
1346
1294
|
* These events are pushed from Unreal to the frontend via the data channel.
|
|
@@ -1947,7 +1895,7 @@ interface FilterSettings {
|
|
|
1947
1895
|
}
|
|
1948
1896
|
|
|
1949
1897
|
declare class FilterSettingsComponent implements OnInit {
|
|
1950
|
-
private
|
|
1898
|
+
#private;
|
|
1951
1899
|
private readonly storageKey;
|
|
1952
1900
|
readonly defaultFilterModel: {
|
|
1953
1901
|
minimumBitrate: number;
|
|
@@ -2024,11 +1972,7 @@ declare class SafePipe implements PipeTransform {
|
|
|
2024
1972
|
static ɵpipe: i0.ɵɵPipeDeclaration<SafePipe, "safe", true>;
|
|
2025
1973
|
}
|
|
2026
1974
|
|
|
2027
|
-
declare function
|
|
2028
|
-
playwright?: boolean;
|
|
2029
|
-
newWebRtcConnector?: boolean;
|
|
2030
|
-
fpsMonitor?: boolean;
|
|
2031
|
-
}): i0.EnvironmentProviders;
|
|
1975
|
+
declare function provideUnrealModule(): i0.EnvironmentProviders;
|
|
2032
1976
|
|
|
2033
1977
|
/**
|
|
2034
1978
|
* Raw JSON from Unreal can either be wrapped in `commandCallback`
|
|
@@ -2102,19 +2046,6 @@ declare const selectCommandsInProgress: _ngrx_store.MemoizedSelector<Record<stri
|
|
|
2102
2046
|
id: string;
|
|
2103
2047
|
}[]) => number>;
|
|
2104
2048
|
declare const selectCommandProgress: _ngrx_store.MemoizedSelector<Record<string, any>, number, (s1: number, s2: number) => number>;
|
|
2105
|
-
declare const selectLastCommandInProgress: _ngrx_store.MemoizedSelector<Record<string, any>, {
|
|
2106
|
-
timeStamp: number;
|
|
2107
|
-
command: string;
|
|
2108
|
-
id: string;
|
|
2109
|
-
} | null, (s1: {
|
|
2110
|
-
timeStamp: number;
|
|
2111
|
-
command: string;
|
|
2112
|
-
id: string;
|
|
2113
|
-
}[]) => {
|
|
2114
|
-
timeStamp: number;
|
|
2115
|
-
command: string;
|
|
2116
|
-
id: string;
|
|
2117
|
-
} | null>;
|
|
2118
2049
|
|
|
2119
2050
|
declare const trackMixpanelEvent: _ngrx_store.ActionCreator<string, (props: {
|
|
2120
2051
|
event: string;
|
|
@@ -2410,12 +2341,15 @@ declare class UnrealEffects {
|
|
|
2410
2341
|
dataUrl: string | null;
|
|
2411
2342
|
progress: number | null;
|
|
2412
2343
|
} & _ngrx_store.Action<string>> & _ngrx_effects.CreateEffectMetadata;
|
|
2413
|
-
|
|
2344
|
+
sendLbmStatistics$: rxjs.Observable<Object> & _ngrx_effects.CreateEffectMetadata;
|
|
2414
2345
|
resetAfk$: rxjs.Observable<_ngrx_store.Action<string>> & _ngrx_effects.CreateEffectMetadata;
|
|
2415
2346
|
abortEstablishingConnection$: rxjs.Observable<_ngrx_store.Action<string>> & _ngrx_effects.CreateEffectMetadata;
|
|
2416
2347
|
setMaxFps$: rxjs.Observable<{
|
|
2417
2348
|
maxFps: number;
|
|
2418
2349
|
} & _ngrx_store.Action<string>> & _ngrx_effects.CreateEffectMetadata;
|
|
2350
|
+
setKalmanSettings$: rxjs.Observable<{
|
|
2351
|
+
settings: FilterSettings;
|
|
2352
|
+
} & _ngrx_store.Action<string>> & _ngrx_effects.CreateEffectMetadata;
|
|
2419
2353
|
setSignalingTo100$: rxjs.Observable<{
|
|
2420
2354
|
percent: number | null;
|
|
2421
2355
|
} & _ngrx_store.Action<string>> & _ngrx_effects.CreateEffectMetadata;
|
|
@@ -2524,7 +2458,6 @@ declare const unrealFeature: {
|
|
|
2524
2458
|
selectLowBandwidthStats: _ngrx_store.MemoizedSelector<Record<string, any>, _3dsource_angular_unreal_module.LBMStats | undefined, (featureState: _3dsource_angular_unreal_module.UnrealState) => _3dsource_angular_unreal_module.LBMStats | undefined>;
|
|
2525
2459
|
selectStreamConfig: _ngrx_store.MemoizedSelector<Record<string, any>, _3dsource_angular_unreal_module.StreamConfig, (featureState: _3dsource_angular_unreal_module.UnrealState) => _3dsource_angular_unreal_module.StreamConfig>;
|
|
2526
2460
|
selectAwsInstance: _ngrx_store.MemoizedSelector<Record<string, any>, _3dsource_angular_unreal_module.AwsInstance, (featureState: _3dsource_angular_unreal_module.UnrealState) => _3dsource_angular_unreal_module.AwsInstance>;
|
|
2527
|
-
selectWasInitialized: _ngrx_store.MemoizedSelector<Record<string, any>, boolean, (featureState: _3dsource_angular_unreal_module.UnrealState) => boolean>;
|
|
2528
2461
|
selectIsFirstSuccessLoad: _ngrx_store.MemoizedSelector<Record<string, any>, boolean, (featureState: _3dsource_angular_unreal_module.UnrealState) => boolean>;
|
|
2529
2462
|
selectIsAfkTimerVisible: _ngrx_store.MemoizedSelector<Record<string, any>, boolean, (featureState: _3dsource_angular_unreal_module.UnrealState) => boolean>;
|
|
2530
2463
|
selectAfkCountdown: _ngrx_store.MemoizedSelector<Record<string, any>, number, (featureState: _3dsource_angular_unreal_module.UnrealState) => number>;
|
|
@@ -2558,7 +2491,6 @@ interface UnrealState {
|
|
|
2558
2491
|
streamConfig: StreamConfig;
|
|
2559
2492
|
awsInstance: AwsInstance;
|
|
2560
2493
|
lowBandwidth: boolean;
|
|
2561
|
-
wasInitialized: boolean;
|
|
2562
2494
|
isFirstSuccessLoad: boolean;
|
|
2563
2495
|
isAfkTimerVisible: boolean;
|
|
2564
2496
|
afkCountdown: number;
|
|
@@ -2604,7 +2536,6 @@ declare const selectStreamConfig: _ngrx_store.MemoizedSelector<Record<string, an
|
|
|
2604
2536
|
declare const selectWarnTimeout: _ngrx_store.MemoizedSelector<Record<string, any>, number, (s1: _3dsource_angular_unreal_module.StreamConfig) => number>;
|
|
2605
2537
|
declare const selectIsExistMatchUrls: _ngrx_store.MemoizedSelector<Record<string, any>, boolean, (s1: string[]) => boolean>;
|
|
2606
2538
|
declare const selectIsAutostart: _ngrx_store.MemoizedSelector<Record<string, any>, boolean, (s1: _3dsource_angular_unreal_module.StreamConfig) => boolean>;
|
|
2607
|
-
declare const selectIsShowPopupWithoutAutoStart: _ngrx_store.MemoizedSelector<Record<string, any>, boolean, (s1: _3dsource_angular_unreal_module.StreamConfig, s2: boolean) => boolean>;
|
|
2608
2539
|
declare const selectShowReconnectPopup: _ngrx_store.MemoizedSelector<Record<string, any>, boolean, (s1: boolean, s2: boolean) => boolean>;
|
|
2609
2540
|
declare const selectShowLoader: _ngrx_store.MemoizedSelector<Record<string, any>, boolean, (s1: boolean, s2: boolean) => boolean>;
|
|
2610
2541
|
declare const selectIsVideoPlayingAndDataChannelConnected: _ngrx_store.MemoizedSelector<Record<string, any>, boolean, (s1: boolean, s2: boolean) => boolean>;
|
|
@@ -2622,5 +2553,5 @@ declare const selectClientAndViewIds: _ngrx_store.MemoizedSelector<Record<string
|
|
|
2622
2553
|
}>;
|
|
2623
2554
|
declare const selectIsLoaderScreenVisible: _ngrx_store.MemoizedSelector<Record<string, any>, boolean, (s1: boolean, s2: boolean, s3: boolean) => boolean>;
|
|
2624
2555
|
|
|
2625
|
-
export { AFKService,
|
|
2556
|
+
export { AFKService, AfkTimeoutModalComponent, AggregatorService, AnalyticsService, AnswerHandler, CONSOLE_COMMAND_DISABLE_MESSAGES, CONSOLE_COMMAND_ENABLE_MESSAGES, CONSOLE_COMMAND_PIXEL_QUALITY, CommandTelemetryService, CommandsEffects, ConfigHandler, ConsoleExtensionsService, ControlScheme, DATA_CHANNEL_CONNECTION_TIMEOUT, DEBOUNCE_TO_MANY_RESIZE_CALLS, DEFAULT_AFK_TIMEOUT, DEFAULT_AFK_TIMEOUT_PERIOD, DEFAULT_RECONNECT_DELAY_MS, DEFAULT_RECONNECT_ENABLED, DEFAULT_RECONNECT_MAX_ATTEMPTS, DEFAULT_RECONNECT_ON_DATACHANNEL_CLOSE, DEFAULT_RECONNECT_ON_ICE_FAILURE, DataFlowMonitor, DevModeService, DisconnectReason, FULL_HD_HEIGHT, FULL_HD_WIDTH, FileHandlerService, FileReceiverService, FilterSettingsComponent, FpsMonitorService, FreezeFrameComponent, FreezeFrameService, IceCandidateHandler, ImageLoadingSrcComponent, InputOptions, InputService, InstanceReadyHandler, InstanceReservedHandler, IntroSrcComponent, KalmanFilter1D, LatencyTimings, LowBandwidthDetectorComponent, LowBandwidthModalComponent, MINIMAL_FPS, MessageType, MouseButton, MouseButtonsMask, OnCloseHandler, OnErrorHandler, OnMessageHandler, OnOpenHandler, OrchestrationMessageTypes, POLLING_TIME, PingHandler, PlayerCountHandler, RegionsPingService, SAME_SIZE_THRESHOLD, SCREEN_LOCKER_CONTAINER_ID, SIGNALLING_PERCENT_VALUE, SSInfoHandler, STREAMING_VIDEO_ID, SafePipe, SignallingService, SpecialKeyCodes, StatGraphComponent, StreamStatusTelemetryService, SubService, ToClientMessage, UNREAL_CONFIG, UnrealCallbackService, UnrealCommunicatorService, UnrealEffects, UnrealSceneComponent, UnrealStatusMessage, VideoService, VideoStatsComponent, WSCloseCode_CIRRUS_ABNORMAL_CLOSURE, WSCloseCode_CIRRUS_MAX_PLAYERS_ERROR, WSCloseCode_CIRRUS_PLAYER_DISCONNECTED, WSCloseCode_CIRRUS_STREAMER_KIKED_PLAYER, WSCloseCode_FORCE_CIRRUS_CLOSE, WSCloseCode_NORMAL_AFK_TIMEOUT, WSCloseCode_NORMAL_CLOSURE, WSCloseCode_NORMAL_MANUAL_DISCONNECT, WSCloseCode_UNKNOWN, WSCloseCodes, WS_OPEN_STATE, WS_TIMEOUT, WebRtcPlayerService, WebRtcPlayerService2, WebrtcErrorModalComponent, abortEstablishingConnection, changeLowBandwidth, changeStatusMainVideoOnScene, changeStreamResolutionAction, changeStreamResolutionSuccessAction, commandCompleted, commandStarted, commandsFeature, commandsReducer, dataChannelConnected, dataChannelReady, decodeData, destroyRemoteConnections, destroyUnrealScene, disconnectStream, dispatchResize, dropConnection, dropDC, dropPC, floatToSmoothPercents, forceResizeViewport, fromResizeObserver, getActiveUrl, getImageFromVideoStream, getResizeStudioValues, getResizeStudioValuesOld, getResizeValuesUniversal, getResizeValuesUniversalOld, getRtcErrorMessage, iceConnectionFailed, initSignalling, keepMaxUntilReset, makeEven, provideUnrealModule, qpToQuality, reconnectPeer, reconnectPeerFailed, reconnectPeerSuccess, resetAfk, resetConfig, resetDataChannelForReconnect, resetIntroSrc, resetWarnTimeout, saveAnalyticsEvent, selectClientAndViewIds, selectCommandProgress, selectCommandsInProgress, selectFreezeFrameCombinedDataUrl, selectFreezeFrameDataUrl, selectFreezeFrameDataUrlFromVideo, selectFreezeFrameProgressMessageFromVideo, selectIsAutostart, selectIsExistMatchUrls, selectIsFreezeFrameLoading, selectIsLoaderScreenVisible, selectIsVideoPlayingAndDataChannelConnected, selectShowLoader, selectShowReconnectPopup, selectSignalingParameters, selectStreamConfig, selectTotalProgress, selectWarnTimeout, setAfkTimerCountdown, setAfkTimerHide, setAfkTimerVisible, setAwsInstance, setCirrusConnected, setCirrusDisconnected, setConfig, setDataChannelConnected, setEstablishingConnection, setFreezeFrame, setFreezeFrameFromVideo, setIntroImageSrc, setIntroVideoSrc, setKalmanSettings, setLoadingImageSrc, setLoopBackCommandIsCompleted, setMaxFps, setOrchestrationContext, setOrchestrationMessage, setOrchestrationParameters, setOrchestrationProgress, setSignalingName, setStatusMessage, setStatusPercentSignallingServer, setStreamClientCompanyId, setStreamViewId, setUnrealPlaywrightConfig, setViewportNotReady, setViewportReady, showUnrealErrorMessage, smoothTransition, startStream, trackMixpanelEvent, unrealCommandCallback, unrealFeature, unrealReducer, updateCirrusInfo, videoAdaptedToContainer, videoStreamInitialized };
|
|
2626
2557
|
export type { AggregatedStat, AnySignalingMessage, AwsInstance, CandidateMessage, CloseReason, ConfigMessage, ConnectionError, ControlSchemeValues, DataFlowCheckResult, DisconnectReasonType, ForceClientDisconnect, FreezeFrameMessage, InboundVideoStats, InputProps, InstanceReady, InstanceReserved, InterruptClientStream, LBMStats, ListStreamersMessage, MessageBase, MessageTypeValues, NormalizeAndQuantizeSignedValue, NormalizeAndQuantizeUnsignedValue, OrchestrationErrorMessage, OrchestrationMessageType, P2PEstablishedMessage, PingMessage, PlayerCountMessage, PollingOrchestrationMessage, Quality, ReceivedFile, ReconnectConfig, RequestStream, SSInfo, SignalingData, SignalingMessageHandler, SignalingMessageMap, StreamConfig, StreamRequestContext, StreamResolutionProps, StreamerListMessage, TelemetryType, UnknownFields, UnquantizeAndDenormalizeUnsignedValue, UnrealCallbackDescriptor, UnrealCallbackEventMap, UnrealCallbackJson, UnrealCallbackJsonWrapped, UnrealCommandsState, UnrealInitialConfig, UnrealState, WSCloseCodesValues, streamPreparedForUserInteractionMessage };
|