@3dsource/angular-unreal-module 0.0.77-dev.0 → 0.0.77-dev.2
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.
|
@@ -413,7 +413,6 @@ class FreezeFrameService extends SubService {
|
|
|
413
413
|
this.freezeFrameOverlay = new Image();
|
|
414
414
|
}
|
|
415
415
|
init() {
|
|
416
|
-
console.log('DEBUG: FreezeFrameService init');
|
|
417
416
|
this.store
|
|
418
417
|
.select(unrealFeature.selectViewportReady)
|
|
419
418
|
.pipe(filter(Truthy))
|
|
@@ -609,7 +608,6 @@ class VideoService extends SubService {
|
|
|
609
608
|
this.init();
|
|
610
609
|
}
|
|
611
610
|
init() {
|
|
612
|
-
console.log('DEBUG: VideoService init');
|
|
613
611
|
Signal.on('setKalmanParams').subscribe((data) => {
|
|
614
612
|
this.kalmanFilter1D.config(data);
|
|
615
613
|
BITRATE_MONITOR.config(data);
|
|
@@ -873,7 +871,6 @@ class CommandTelemetryService {
|
|
|
873
871
|
this.init();
|
|
874
872
|
}
|
|
875
873
|
init() {
|
|
876
|
-
console.log('DEBUG: CommandTelemetryService init');
|
|
877
874
|
if (!this.unrealInitialConfig?.commandTelemetryReceiver) {
|
|
878
875
|
return;
|
|
879
876
|
}
|
|
@@ -1199,7 +1196,6 @@ class SignallingService extends SubService {
|
|
|
1199
1196
|
this.init();
|
|
1200
1197
|
}
|
|
1201
1198
|
init() {
|
|
1202
|
-
console.log('DEBUG: SignallingService init');
|
|
1203
1199
|
this.setHandlersFromStream();
|
|
1204
1200
|
this.store
|
|
1205
1201
|
.select(unrealFeature.selectDataChannelConnected)
|
|
@@ -1511,7 +1507,6 @@ class WebRtcPlayerService extends SubService {
|
|
|
1511
1507
|
this.init();
|
|
1512
1508
|
}
|
|
1513
1509
|
init() {
|
|
1514
|
-
console.log('DEBUG: WebRtcPlayerService init');
|
|
1515
1510
|
const iceCandidateBuffer = [];
|
|
1516
1511
|
const processBuffer = () => {
|
|
1517
1512
|
iceCandidateBuffer.forEach((cnd) => {
|
|
@@ -1896,7 +1891,6 @@ class FileReceiverService extends SubService {
|
|
|
1896
1891
|
this.init();
|
|
1897
1892
|
}
|
|
1898
1893
|
init() {
|
|
1899
|
-
console.log('DEBUG: FileReceiverService init');
|
|
1900
1894
|
this.store
|
|
1901
1895
|
.select(unrealFeature.selectViewportReady)
|
|
1902
1896
|
.pipe(filter(Truthy))
|
|
@@ -2012,7 +2006,6 @@ class AggregatorService extends SubService {
|
|
|
2012
2006
|
this.destroy$ = new Subject();
|
|
2013
2007
|
}
|
|
2014
2008
|
init() {
|
|
2015
|
-
console.log('DEBUG: AggregatorService init');
|
|
2016
2009
|
this.listenWebRTC();
|
|
2017
2010
|
this.initialize();
|
|
2018
2011
|
}
|
|
@@ -2191,7 +2184,6 @@ class ConsoleExtensionsService extends SubService {
|
|
|
2191
2184
|
#httpClient = inject(HttpClient);
|
|
2192
2185
|
#isDevMode = inject(DevModeService).isDevMode;
|
|
2193
2186
|
init() {
|
|
2194
|
-
console.log('DEBUG: ConsoleExtensionsService init');
|
|
2195
2187
|
if (!this.#isDevMode) {
|
|
2196
2188
|
return;
|
|
2197
2189
|
}
|
|
@@ -2433,7 +2425,6 @@ class UnrealCommunicatorService {
|
|
|
2433
2425
|
this.consoleExtensionsService.init();
|
|
2434
2426
|
this.afkService.init();
|
|
2435
2427
|
this.freezeFrameService.init();
|
|
2436
|
-
console.log('DEBUG: UnrealCommunicatorService init');
|
|
2437
2428
|
this.emitUIInteraction = this.commandTelemetryService.decorate(this.emitUIInteraction.bind(this));
|
|
2438
2429
|
this.listenVideo();
|
|
2439
2430
|
this.store
|
|
@@ -2469,7 +2460,7 @@ class UnrealCommunicatorService {
|
|
|
2469
2460
|
"{ ConsoleCommand: <string> }"
|
|
2470
2461
|
|
|
2471
2462
|
2. A command to change the resolution to the given width and height.
|
|
2472
|
-
"{ Resolution.Width: <value>, Resolution.Height: <value> }
|
|
2463
|
+
"{ Resolution.Width: <value>, Resolution.Height: <value> }"
|
|
2473
2464
|
*/
|
|
2474
2465
|
emitCommand(descriptor) {
|
|
2475
2466
|
this.emitDescriptor(EMessageType.Command, descriptor);
|
|
@@ -2538,7 +2529,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImpo
|
|
|
2538
2529
|
|
|
2539
2530
|
class InputService extends SubService {
|
|
2540
2531
|
constructor() {
|
|
2541
|
-
super(
|
|
2532
|
+
super();
|
|
2542
2533
|
this.commandsSender = inject(UnrealCommunicatorService);
|
|
2543
2534
|
this.isDevMode = inject(DevModeService).isDevMode;
|
|
2544
2535
|
this.defaultKeys = [
|
|
@@ -2571,9 +2562,9 @@ class InputService extends SubService {
|
|
|
2571
2562
|
offsetByY: 0,
|
|
2572
2563
|
offsetByX: 0,
|
|
2573
2564
|
};
|
|
2565
|
+
this.init();
|
|
2574
2566
|
}
|
|
2575
2567
|
init() {
|
|
2576
|
-
console.log('DEBUG: InputService init');
|
|
2577
2568
|
const visibilityHiddenTrigger$ = fromEvent(document, 'visibilitychange').pipe(map$1(() => document.visibilityState === 'hidden'), filter(Truthy));
|
|
2578
2569
|
const visibilityVisibleTrigger$ = fromEvent(document, 'visibilitychange').pipe(map$1(() => document.visibilityState === 'visible'), filter(Truthy), startWith(true));
|
|
2579
2570
|
this.deactivatedVideoTrigger$ = merge(this.disconnect$, this.reInit$, visibilityHiddenTrigger$);
|
|
@@ -2583,6 +2574,9 @@ class InputService extends SubService {
|
|
|
2583
2574
|
.pipe(filter(Truthy), startWith(true))), filter(([video]) => !!video))
|
|
2584
2575
|
.subscribe(([video]) => this.setup(video));
|
|
2585
2576
|
}
|
|
2577
|
+
fakeInit() {
|
|
2578
|
+
// it is for init
|
|
2579
|
+
}
|
|
2586
2580
|
useKeyboardKeys(keys) {
|
|
2587
2581
|
this.availableKeys = keys || [];
|
|
2588
2582
|
}
|
|
@@ -3126,7 +3120,6 @@ class StreamStatusTelemetryService {
|
|
|
3126
3120
|
#store = inject(Store);
|
|
3127
3121
|
#videoService = inject(VideoService);
|
|
3128
3122
|
init() {
|
|
3129
|
-
console.log('DEBUG: StreamStatusTelemetryService init');
|
|
3130
3123
|
this.#videoService.videoStats$
|
|
3131
3124
|
.pipe(withLatestFrom(this.#store.select(unrealFeature.selectAwsInstance), this.#store.select(unrealFeature.selectLowBandwidth), this.#store.select(unrealFeature.selectLowBandwidthStats), this.#store.select(unrealFeature.selectCirrusConnected)), auditTime(5000), filter(([, , , , cirrusConnected]) => cirrusConnected), map$1(([data, signalingServer, isLowBandwidth, lbmStats]) => this.mapEventData(data, signalingServer, isLowBandwidth, lbmStats)))
|
|
3132
3125
|
.subscribe((data) => this.trackEventToMixPanel(data));
|
|
@@ -3819,8 +3812,8 @@ class UnrealEffects {
|
|
|
3819
3812
|
info: action?.error ?? '',
|
|
3820
3813
|
},
|
|
3821
3814
|
})
|
|
3822
|
-
.pipe(tap(() =>
|
|
3823
|
-
|
|
3815
|
+
.pipe(tap(() => Logger.log(`successfully send to ${this.unrealInitialConfig?.customErrorsEndpoint}`)), catchError(() => {
|
|
3816
|
+
Logger.error(`get error from ${this.unrealInitialConfig?.customErrorsEndpoint}`);
|
|
3824
3817
|
return EMPTY;
|
|
3825
3818
|
}))));
|
|
3826
3819
|
}, { dispatch: false });
|
|
@@ -4867,11 +4860,13 @@ class UnrealSceneComponent {
|
|
|
4867
4860
|
onMouseOut() {
|
|
4868
4861
|
this.changeMouseOverScene.emit(false);
|
|
4869
4862
|
}
|
|
4870
|
-
|
|
4871
|
-
this.videoService.setContainer(this.container.nativeElement);
|
|
4863
|
+
ngOnInit() {
|
|
4872
4864
|
this.streamStatusTelemetryService.init();
|
|
4873
4865
|
this.aggregatorService.init();
|
|
4874
|
-
this.inputService.
|
|
4866
|
+
this.inputService.fakeInit();
|
|
4867
|
+
}
|
|
4868
|
+
ngAfterViewInit() {
|
|
4869
|
+
this.videoService.setContainer(this.container.nativeElement);
|
|
4875
4870
|
fromEvent(this.element.nativeElement, 'contextmenu')
|
|
4876
4871
|
.pipe(takeUntilDestroyed(this.destroyRef))
|
|
4877
4872
|
.subscribe((event) => event.preventDefault());
|