@3dsource/angular-unreal-module 0.0.9 → 0.0.10
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.
|
@@ -1639,7 +1639,7 @@ const initialState$2 = {
|
|
|
1639
1639
|
dataChannelConnected: false,
|
|
1640
1640
|
isVideoPlaying: false,
|
|
1641
1641
|
isPdfGenerating: false,
|
|
1642
|
-
showCaseStatus:
|
|
1642
|
+
showCaseStatus: 'stop',
|
|
1643
1643
|
showCaseSceneId: null,
|
|
1644
1644
|
statusPercentSignallingServer: null,
|
|
1645
1645
|
statusMessage: null,
|
|
@@ -1727,11 +1727,11 @@ const unrealReducer = createImmerReducer(initialState$2, on(changeLowBandwidth,
|
|
|
1727
1727
|
state.isPdfGenerating = false;
|
|
1728
1728
|
return state;
|
|
1729
1729
|
}), on(initShowcase, (state, { sceneId }) => {
|
|
1730
|
-
state.showCaseStatus =
|
|
1730
|
+
state.showCaseStatus = 'init';
|
|
1731
1731
|
state.showCaseSceneId = sceneId;
|
|
1732
1732
|
return state;
|
|
1733
1733
|
}), on(stopShowcase, (state, { isResetSceneId }) => {
|
|
1734
|
-
state.showCaseStatus =
|
|
1734
|
+
state.showCaseStatus = 'stop';
|
|
1735
1735
|
state.showCaseSceneId = isResetSceneId ? null : state.showCaseSceneId;
|
|
1736
1736
|
return state;
|
|
1737
1737
|
}), on(playPauseShowcase, (state, { showcase }) => {
|
|
@@ -1842,11 +1842,11 @@ const selectIsAutostart = createSelector(selectStreamConfig, (config) => config?
|
|
|
1842
1842
|
const selectWsUrl = createSelector(unrealFeature.selectAwsInstance, (instance) => instance?.wsUrl);
|
|
1843
1843
|
const selectShowReconnectPopup = createSelector(unrealFeature.selectWasInitialized, unrealFeature.selectCirrusConnected, unrealFeature.selectEstablishingConnection, unrealFeature.selectImageIntroSrc, unrealFeature.selectVideoIntroSrc, (wasInitialized, connected, establishing, imageSrc, videoSrc) => wasInitialized && !connected && !establishing && !imageSrc && !videoSrc);
|
|
1844
1844
|
const selectShowLoader = createSelector(unrealFeature.selectWasInitialized, unrealFeature.selectViewportReady, selectStreamConfig, selectShowReconnectPopup, (wasInitialized, viewportReady, config, showPopup) => ((config.autoStart && !wasInitialized) || !showPopup) && !viewportReady);
|
|
1845
|
-
const selectIsShowShowcase = createSelector(unrealFeature.selectShowCaseStatus, unrealFeature.selectVideoIntroSrc, (status, isModularVideoIntro) => status !==
|
|
1846
|
-
const selectShowcaseIsInit = createSelector(unrealFeature.selectShowCaseStatus, (status) => status !==
|
|
1847
|
-
const selectShowcaseIsStopped = createSelector(unrealFeature.selectShowCaseStatus, (status) => status ===
|
|
1848
|
-
const selectShowcaseIsPlayStatus = createSelector(unrealFeature.selectShowCaseStatus, (status) => status ===
|
|
1849
|
-
const selectShowcaseIsPauseStatus = createSelector(unrealFeature.selectShowCaseStatus, (status) => status ===
|
|
1845
|
+
const selectIsShowShowcase = createSelector(unrealFeature.selectShowCaseStatus, unrealFeature.selectVideoIntroSrc, (status, isModularVideoIntro) => status !== 'stop' || isModularVideoIntro);
|
|
1846
|
+
const selectShowcaseIsInit = createSelector(unrealFeature.selectShowCaseStatus, (status) => status !== 'stop');
|
|
1847
|
+
const selectShowcaseIsStopped = createSelector(unrealFeature.selectShowCaseStatus, (status) => status === 'stop');
|
|
1848
|
+
const selectShowcaseIsPlayStatus = createSelector(unrealFeature.selectShowCaseStatus, (status) => status === 'play');
|
|
1849
|
+
const selectShowcaseIsPauseStatus = createSelector(unrealFeature.selectShowCaseStatus, (status) => status === 'pause');
|
|
1850
1850
|
const selectShowcaseIsPlaying = createSelector(selectShowcaseIsPlayStatus, selectShowcaseIsPauseStatus, (isPlay, isPause) => isPlay || isPause);
|
|
1851
1851
|
const selectIsVideoPlayingAndDataChannelConnected = createSelector(unrealFeature.selectIsVideoPlaying, unrealFeature.selectDataChannelConnected, (isVideoPlaying, isDataChannelConnected) => isVideoPlaying && isDataChannelConnected);
|
|
1852
1852
|
const selectSignalingParameters = createSelector(unrealFeature.selectSsData, unrealFeature.selectAwsInstance, unrealFeature.selectSsInfo, (data, instance, ssInfo) => {
|
|
@@ -4466,7 +4466,7 @@ class UnrealEffects {
|
|
|
4466
4466
|
}));
|
|
4467
4467
|
});
|
|
4468
4468
|
this.changeShowcaseStatus$ = createEffect(() => {
|
|
4469
|
-
return this.actions$.pipe(ofType(playPauseShowcase), filter(({ showcase }) => showcase ===
|
|
4469
|
+
return this.actions$.pipe(ofType(playPauseShowcase), filter(({ showcase }) => showcase === 'init' || showcase === 'stop'), map$1(({ showcase }) => showcase === 'init'
|
|
4470
4470
|
? setConfig({ config: { warnTimeout: DEFAULT_SHOWCASE_TIMEOUT } })
|
|
4471
4471
|
: resetWarnTimeout()));
|
|
4472
4472
|
});
|
|
@@ -6011,13 +6011,6 @@ const showCaseIcons = [
|
|
|
6011
6011
|
siShowcaseFullscreenOut,
|
|
6012
6012
|
];
|
|
6013
6013
|
|
|
6014
|
-
const ShowCaseStatus = {
|
|
6015
|
-
INIT: 'init',
|
|
6016
|
-
PLAY: 'play',
|
|
6017
|
-
PAUSE: 'pause',
|
|
6018
|
-
STOP: 'stop',
|
|
6019
|
-
};
|
|
6020
|
-
|
|
6021
6014
|
const initialState = {
|
|
6022
6015
|
playRate: 0.5,
|
|
6023
6016
|
timeResponseChangeCallBack: 0.05, // IMPORTANT: min - 0.05 !!!
|
|
@@ -6096,11 +6089,11 @@ class ShowCaseComponentStore extends ImmerComponentStore {
|
|
|
6096
6089
|
})));
|
|
6097
6090
|
this.playShowCaseEffect$ = this.effect(($) => $.pipe(concatLatestFrom(() => [
|
|
6098
6091
|
this.#store.select(unrealFeature.selectLowBandwidth),
|
|
6099
|
-
]), tap(() => this.#store.dispatch(playPauseShowcase({ showcase:
|
|
6092
|
+
]), tap(() => this.#store.dispatch(playPauseShowcase({ showcase: 'play' }))), filter(([, isLow]) => !isLow), tap(() => this.#commandsSender.sendCommandToUnreal(getPlaySequenceCommand({ playRate: 1, reverse: false })))));
|
|
6100
6093
|
this.pauseShowCaseEffect$ = this.effect(($) => $.pipe(concatLatestFrom(() => [
|
|
6101
6094
|
this.#store.select(unrealFeature.selectLowBandwidth),
|
|
6102
6095
|
this.#store.select(unrealFeature.selectShowCaseStatus),
|
|
6103
|
-
]), tap(() => this.#store.dispatch(playPauseShowcase({ showcase:
|
|
6096
|
+
]), tap(() => this.#store.dispatch(playPauseShowcase({ showcase: 'pause' }))), filter(([, isLow, showcase]) => !isLow || (isLow && showcase !== 'stop')), tap(() => this.#commandsSender.sendCommandToUnreal(getPauseSequenceCommand()))));
|
|
6104
6097
|
}
|
|
6105
6098
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.8", ngImport: i0, type: ShowCaseComponentStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
6106
6099
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.8", ngImport: i0, type: ShowCaseComponentStore }); }
|
|
@@ -6759,6 +6752,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.8", ngImpor
|
|
|
6759
6752
|
args: ['showcase']
|
|
6760
6753
|
}] } });
|
|
6761
6754
|
|
|
6755
|
+
const ShowCaseStatus = {
|
|
6756
|
+
INIT: 'init',
|
|
6757
|
+
PLAY: 'play',
|
|
6758
|
+
PAUSE: 'pause',
|
|
6759
|
+
STOP: 'stop',
|
|
6760
|
+
};
|
|
6761
|
+
|
|
6762
6762
|
const INIT_SHOWCASE_PARAMS = {
|
|
6763
6763
|
playRate: 1,
|
|
6764
6764
|
timeResponseChangeCallBack: 0.05,
|