@3dsource/angular-unreal-module 0.0.73-dev.1 → 0.0.73
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.
|
@@ -3841,6 +3841,9 @@ class UnrealEffects {
|
|
|
3841
3841
|
this.startStream$ = createEffect(() => {
|
|
3842
3842
|
return this.actions$.pipe(ofType(startStream), tapLog('Start Stream Pressed'), map(() => initSignalling()));
|
|
3843
3843
|
});
|
|
3844
|
+
this.setMatchUrls$ = createEffect(() => {
|
|
3845
|
+
return this.actions$.pipe(ofType(setOrchestrationContext), tapLog('Set Orchestration Context'), map(() => initSignalling()));
|
|
3846
|
+
});
|
|
3844
3847
|
this.listenUnrealCallbackByInitSignalling$ = createEffect(() => {
|
|
3845
3848
|
return this.actions$.pipe(ofType(initSignalling), filter(() => !this.unrealInitialConfig?.playwright), switchMap$1(() => fromSignal(UnrealInternalSignalEvents.UnrealCallback).pipe(map(({ json }) => json?.commandCallback
|
|
3846
3849
|
?.correlationId), filter(Truthy), map((id) => commandCompleted({ id })))));
|
|
@@ -3890,7 +3893,6 @@ const selectIsFreezeFrameLoading = createSelector(unrealFeature.selectFreezeFram
|
|
|
3890
3893
|
const selectFreezeFrameCombinedDataUrl = createSelector(selectFreezeFrameDataUrlFromVideo, selectFreezeFrameDataUrl, (dataUrlFromVideo, remoteDataUrl) => dataUrlFromVideo || remoteDataUrl || null);
|
|
3891
3894
|
const selectStreamConfig = createSelector(unrealFeature.selectStreamConfig, (config) => config);
|
|
3892
3895
|
const selectWarnTimeout = createSelector(selectStreamConfig, (config) => config?.warnTimeout || DEFAULT_AFK_TIMEOUT);
|
|
3893
|
-
const selectIsExistMatchUrls = createSelector(unrealFeature.selectMatchUrls, (urls) => urls?.length > 0);
|
|
3894
3896
|
const selectIsAutostart = createSelector(selectStreamConfig, (config) => config?.autoStart);
|
|
3895
3897
|
const showPopupWithoutAutoStart = createSelector(selectStreamConfig, unrealFeature.selectWasInitialized, (config, wasInitialized) => !config.autoStart && !wasInitialized);
|
|
3896
3898
|
const selectShowReconnectPopup = createSelector(unrealFeature.selectCirrusConnected, unrealFeature.selectEstablishingConnection, (connected, establishing) => !connected && !establishing);
|
|
@@ -4709,11 +4711,8 @@ class ResumeStreamButtonComponent {
|
|
|
4709
4711
|
this.showReconnectPopup = this.store.selectSignal(selectShowReconnectPopup);
|
|
4710
4712
|
this.isLoaderScreenVisible = this.store.selectSignal(isLoaderScreenVisible);
|
|
4711
4713
|
this.streamConfig = this.store.selectSignal(selectStreamConfig);
|
|
4712
|
-
this.isExistMatchUrls = this.store.selectSignal(selectIsExistMatchUrls);
|
|
4713
4714
|
this.isSecondStart = signal(!!(this.streamConfig()?.autoStart && location.href.match(/^https/gi)), ...(ngDevMode ? [{ debugName: "isSecondStart" }] : []));
|
|
4714
|
-
this.isShowResumeButton = computed(() => this.isLoaderScreenVisible() &&
|
|
4715
|
-
this.showReconnectPopup() &&
|
|
4716
|
-
this.isExistMatchUrls(), ...(ngDevMode ? [{ debugName: "isShowResumeButton" }] : []));
|
|
4715
|
+
this.isShowResumeButton = computed(() => this.isLoaderScreenVisible() && this.showReconnectPopup(), ...(ngDevMode ? [{ debugName: "isShowResumeButton" }] : []));
|
|
4717
4716
|
this.playCallBack = null;
|
|
4718
4717
|
}
|
|
4719
4718
|
ngOnInit() {
|
|
@@ -4815,7 +4814,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImpo
|
|
|
4815
4814
|
|
|
4816
4815
|
class UnrealSceneComponent {
|
|
4817
4816
|
constructor() {
|
|
4818
|
-
this.isDevMode = inject(DevModeService).isDevMode;
|
|
4819
4817
|
this.isStudio = input(false, ...(ngDevMode ? [{ debugName: "isStudio" }] : []));
|
|
4820
4818
|
this.useContainerAsSizeProvider = input(true, ...(ngDevMode ? [{ debugName: "useContainerAsSizeProvider" }] : []));
|
|
4821
4819
|
this.studioResolutionSize = input({
|
|
@@ -4830,14 +4828,17 @@ class UnrealSceneComponent {
|
|
|
4830
4828
|
this.width = FULL_HD_WIDTH;
|
|
4831
4829
|
this.height = FULL_HD_HEIGHT;
|
|
4832
4830
|
this.store = inject(Store);
|
|
4831
|
+
this.isDevMode = inject(DevModeService).isDevMode;
|
|
4833
4832
|
this.lightMode = this.store.selectSignal(unrealFeature.selectLowBandwidth);
|
|
4834
4833
|
this.isFreezeFrameLoading = this.store.selectSignal(selectIsFreezeFrameLoading);
|
|
4835
|
-
this.isExistMatchUrls = this.store.selectSignal(selectIsExistMatchUrls);
|
|
4836
4834
|
this.commandsSender = inject(UnrealCommunicatorService);
|
|
4837
|
-
this.inputService = inject(InputService);
|
|
4838
4835
|
this.videoService = inject(VideoService);
|
|
4839
4836
|
this.element = inject(ElementRef);
|
|
4840
4837
|
this.destroyRef = inject(DestroyRef);
|
|
4838
|
+
this._destroy = this.destroyRef.onDestroy(() => {
|
|
4839
|
+
this.commandsSender.destroy();
|
|
4840
|
+
this.store.dispatch(destroyUnrealScene());
|
|
4841
|
+
});
|
|
4841
4842
|
}
|
|
4842
4843
|
get resizeValues() {
|
|
4843
4844
|
if (!this.isStudio()) {
|
|
@@ -4855,18 +4856,13 @@ class UnrealSceneComponent {
|
|
|
4855
4856
|
this.changeMouseOverScene.emit(false);
|
|
4856
4857
|
}
|
|
4857
4858
|
ngAfterViewInit() {
|
|
4859
|
+
this.videoService.setContainer(this.container.nativeElement);
|
|
4858
4860
|
fromEvent(this.element.nativeElement, 'contextmenu')
|
|
4859
4861
|
.pipe(takeUntilDestroyed(this.destroyRef))
|
|
4860
4862
|
.subscribe((event) => event.preventDefault());
|
|
4861
|
-
this.
|
|
4862
|
-
|
|
4863
|
-
|
|
4864
|
-
this.store.dispatch(destroyUnrealScene());
|
|
4865
|
-
});
|
|
4866
|
-
this.inputService.useKeyboardKeys(this.inputService.defaultKeys);
|
|
4867
|
-
if (this.isExistMatchUrls()) {
|
|
4868
|
-
this.store.dispatch(initSignalling());
|
|
4869
|
-
}
|
|
4863
|
+
this.listenResizeValues();
|
|
4864
|
+
}
|
|
4865
|
+
listenResizeValues() {
|
|
4870
4866
|
const customSizeInputChanged$ = this.studioResolutionValues.pipe(filter(Truthy), distinctUntilChanged(), filter(({ width, height }) => this.width !== width || this.height !== height), map$1(({ width, height }) => ({ width, height })), tap(({ width, height }) => {
|
|
4871
4867
|
this.width = width;
|
|
4872
4868
|
this.height = height;
|
|
@@ -4951,7 +4947,7 @@ class UnrealSceneComponent {
|
|
|
4951
4947
|
out = fitIntoMax;
|
|
4952
4948
|
}
|
|
4953
4949
|
else {
|
|
4954
|
-
// Otherwise, use the lowest resolution
|
|
4950
|
+
// Otherwise, use the lowest resolution because the layout size is smaller than 1920x1080
|
|
4955
4951
|
out.scale = 1;
|
|
4956
4952
|
}
|
|
4957
4953
|
/**
|
|
@@ -5208,5 +5204,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImpo
|
|
|
5208
5204
|
* Generated bundle index. Do not edit.
|
|
5209
5205
|
*/
|
|
5210
5206
|
|
|
5211
|
-
export { AFKService, AfkPlaywrightService, AggregatorPlaywrightService, AggregatorService, AnswerHandler, CONSOLE_COMMAND_DISABLE_MESSAGES, CONSOLE_COMMAND_ENABLE_MESSAGES, CONSOLE_COMMAND_PIXEL_QUALITY, ClickableOverlayComponent, CommandTelemetryPlaywrightService, CommandTelemetryService, ConfigHandler, ConsoleExtensionsPlaywrightService, ConsoleExtensionsService, DATA_CHANNEL_CONNECTION_TIMEOUT, DEBOUNCE_TO_MANY_RESIZE_CALLS, DEFAULT_AFK_TIMEOUT, DEFAULT_AFK_TIMEOUT_PERIOD, DataFlowMonitor, DevModeService, DisconnectReason, EControlSchemeType, EMessageType, EToClientMessageType, FULL_HD_HEIGHT, FULL_HD_WIDTH, FileHandlerService, FileReceiverPlaywrightService, FileReceiverService, FilterSettingsComponent, FreezeFrameComponent, FreezeFramePlaywrightService, FreezeFrameService, IceCandidateHandler, ImageLoadingSrcComponent, InputOptions, InputService, InstanceReadyHandler, InstanceReservedHandler, IntroSrcComponent, KalmanFilter1D, LatencyTimings, LowBandwidthDetectorComponent, LowBandwidthModalComponent, MINIMAL_FPS, MouseButton, MouseButtonsMask, OnCloseHandler, OnErrorHandler, OnMessageHandler, OnOpenHandler, OrchestrationMessageTypes, POLLING_TIME, PingHandler, PlayerCountHandler, RegionsPingService, ResetTelemetry, SAME_SIZE_THRESHOLD, SCREEN_LOCKER_CONTAINER_ID, SIGNALLING_PERCENT_VALUE, SSInfoHandler, STREAMING_VIDEO_ID, SafePipe, SignallingPlaywrightService, SignallingService, SpecialKeyCodes, StatGraphComponent, StreamStatusTelemetryPlaywrightService, StreamStatusTelemetryService, SubService, TelemetryStart, TelemetryStop, UNREAL_CONFIG, UnrealCommunicatorPlaywrightService, UnrealCommunicatorService, UnrealEffects, UnrealInternalSignalEvents, UnrealSceneComponent, UnrealStatusMessage, VideoRecorder, 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, WebrtcErrorModalComponent, abortEstablishingConnection, changeLowBandwidth, changeStatusMainVideoOnScene, changeStreamResolutionAction, changeStreamResolutionSuccessAction, commandCompleted, commandStarted, decodeData, destroyRemoteConnections, destroyUnrealScene, disconnectStream, dispatchResize, dropConnection, floatToSmoothPercents, forceResizeUnrealVideo, fromResizeObserver, fromSignal, fromUnrealCallBackSignal, getActiveUrl, getImageFromVideoStream, getRtcErrorMessage, initSignalling, initialState, isLoaderScreenVisible, keepMaxUntilReset, mapQpToQuality, observeCommandResponse, provideAngularUnrealModule, removeExileCommands, resetAfk, resetAfkAction, resetConfig, resetIntroSrc, resetWarnTimeout, selectClientAndViewIds, selectCommandProgress, selectCommandsInProgress, selectFreezeFrameCombinedDataUrl, selectFreezeFrameDataUrl, selectFreezeFrameDataUrlFromVideo, selectFreezeFrameProgressMessageFromVideo, selectIsAutostart,
|
|
5207
|
+
export { AFKService, AfkPlaywrightService, AggregatorPlaywrightService, AggregatorService, AnswerHandler, CONSOLE_COMMAND_DISABLE_MESSAGES, CONSOLE_COMMAND_ENABLE_MESSAGES, CONSOLE_COMMAND_PIXEL_QUALITY, ClickableOverlayComponent, CommandTelemetryPlaywrightService, CommandTelemetryService, ConfigHandler, ConsoleExtensionsPlaywrightService, ConsoleExtensionsService, DATA_CHANNEL_CONNECTION_TIMEOUT, DEBOUNCE_TO_MANY_RESIZE_CALLS, DEFAULT_AFK_TIMEOUT, DEFAULT_AFK_TIMEOUT_PERIOD, DataFlowMonitor, DevModeService, DisconnectReason, EControlSchemeType, EMessageType, EToClientMessageType, FULL_HD_HEIGHT, FULL_HD_WIDTH, FileHandlerService, FileReceiverPlaywrightService, FileReceiverService, FilterSettingsComponent, FreezeFrameComponent, FreezeFramePlaywrightService, FreezeFrameService, IceCandidateHandler, ImageLoadingSrcComponent, InputOptions, InputService, InstanceReadyHandler, InstanceReservedHandler, IntroSrcComponent, KalmanFilter1D, LatencyTimings, LowBandwidthDetectorComponent, LowBandwidthModalComponent, MINIMAL_FPS, MouseButton, MouseButtonsMask, OnCloseHandler, OnErrorHandler, OnMessageHandler, OnOpenHandler, OrchestrationMessageTypes, POLLING_TIME, PingHandler, PlayerCountHandler, RegionsPingService, ResetTelemetry, SAME_SIZE_THRESHOLD, SCREEN_LOCKER_CONTAINER_ID, SIGNALLING_PERCENT_VALUE, SSInfoHandler, STREAMING_VIDEO_ID, SafePipe, SignallingPlaywrightService, SignallingService, SpecialKeyCodes, StatGraphComponent, StreamStatusTelemetryPlaywrightService, StreamStatusTelemetryService, SubService, TelemetryStart, TelemetryStop, UNREAL_CONFIG, UnrealCommunicatorPlaywrightService, UnrealCommunicatorService, UnrealEffects, UnrealInternalSignalEvents, UnrealSceneComponent, UnrealStatusMessage, VideoRecorder, 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, WebrtcErrorModalComponent, abortEstablishingConnection, changeLowBandwidth, changeStatusMainVideoOnScene, changeStreamResolutionAction, changeStreamResolutionSuccessAction, commandCompleted, commandStarted, decodeData, destroyRemoteConnections, destroyUnrealScene, disconnectStream, dispatchResize, dropConnection, floatToSmoothPercents, forceResizeUnrealVideo, fromResizeObserver, fromSignal, fromUnrealCallBackSignal, getActiveUrl, getImageFromVideoStream, getRtcErrorMessage, initSignalling, initialState, isLoaderScreenVisible, keepMaxUntilReset, mapQpToQuality, observeCommandResponse, provideAngularUnrealModule, removeExileCommands, resetAfk, resetAfkAction, resetConfig, resetIntroSrc, resetWarnTimeout, selectClientAndViewIds, selectCommandProgress, selectCommandsInProgress, selectFreezeFrameCombinedDataUrl, selectFreezeFrameDataUrl, selectFreezeFrameDataUrlFromVideo, selectFreezeFrameProgressMessageFromVideo, selectIsAutostart, selectIsFreezeFrameLoading, selectIsVideoPlayingAndDataChannelConnected, selectLastCommandInProgress, selectLoaderCommands, selectShowLoader, selectShowReconnectPopup, selectSignalingParameters, selectStreamConfig, selectTotalProgress, selectWarnTimeout, sendSignal, setAfkTimerHide, setAfkTimerVisible, setAwsInstance, setCirrusConnected, setCirrusDisconnected, setConfig, setDataChannelConnected, setEstablishingConnection, setFreezeFrame, setFreezeFrameFromVideo, setIntroImageSrc, setIntroVideoSrc, setLoadingImageSrc, setLoopBackCommandIsCompleted, setMaxFps, setOrchestrationContext, setOrchestrationMessage, setOrchestrationParameters, setOrchestrationProgress, setSignalingName, setStatusMessage, setStatusPercentSignallingServer, setStreamClientCompanyId, setStreamViewId, setUnrealPlaywrightConfig, setViewportNotReady, setViewportReady, showPopupWithoutAutoStart, showUnrealErrorMessage, smoothTransition, startStream, trackMixpanelEvent, unrealFeature, unrealReducer, updateCirrusInfo };
|
|
5212
5208
|
//# sourceMappingURL=3dsource-angular-unreal-module.mjs.map
|