@3dsource/angular-unreal-module 0.0.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/README.md +64 -0
- package/fesm2022/3dsource-angular-unreal-module.mjs +6226 -0
- package/fesm2022/3dsource-angular-unreal-module.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/components/clickable-overlay/clickable-overlay.component.d.ts +14 -0
- package/lib/components/freeze-frame/freeze-frame.component.d.ts +8 -0
- package/lib/components/index.d.ts +12 -0
- package/lib/components/low-bandwidth-indicator/DataFlowConstants.d.ts +66 -0
- package/lib/components/low-bandwidth-indicator/filter-settings/filter-settings.component.d.ts +37 -0
- package/lib/components/low-bandwidth-indicator/index.d.ts +2 -0
- package/lib/components/low-bandwidth-indicator/low-bandwidth-detector.component.d.ts +38 -0
- package/lib/components/low-bandwidth-modal/low-bandwidth-modal.component.d.ts +8 -0
- package/lib/components/pdf/components/generator/pdf-base-page.component.d.ts +20 -0
- package/lib/components/pdf/components/generator/pdf-generator.component.d.ts +26 -0
- package/lib/components/pdf/components/templates/general/header/header-pdf.component.d.ts +8 -0
- package/lib/components/pdf/components/templates/general/image-pdf/image-pdf.component.d.ts +7 -0
- package/lib/components/pdf/components/templates/general/intro-pdf/intro-pdf.component.d.ts +6 -0
- package/lib/components/pdf/components/templates/general/materials-page-pdf/materials-page-pdf.component.d.ts +6 -0
- package/lib/components/pdf/components/templates/general/materials-pdf/materials-pdf.component.d.ts +8 -0
- package/lib/components/pdf/components/templates/general/page-number/page-number.component.d.ts +8 -0
- package/lib/components/pdf/constants/pdf.d.ts +5 -0
- package/lib/components/pdf/container/pdf.component.d.ts +13 -0
- package/lib/components/pdf/directives/insertion.directive.d.ts +7 -0
- package/lib/components/pdf/helpers/generate-pdf-schema.d.ts +2 -0
- package/lib/components/pdf/helpers/get-pdf-url.d.ts +1 -0
- package/lib/components/pdf/index.d.ts +1 -0
- package/lib/components/pdf/interfaces/pdf.interface.d.ts +53 -0
- package/lib/components/pdf/store/pdf.component.store.d.ts +44 -0
- package/lib/components/screen-locker/afk-restart-screen-locker.component.d.ts +25 -0
- package/lib/components/show-case/components/source-slider/source-slider.component.d.ts +42 -0
- package/lib/components/show-case/components/source-slider/user-interact.directive.d.ts +33 -0
- package/lib/components/show-case/constants/icons/fullscreen-out.d.ts +2 -0
- package/lib/components/show-case/constants/icons/fullscreen.d.ts +2 -0
- package/lib/components/show-case/constants/icons/pause-circle.d.ts +2 -0
- package/lib/components/show-case/constants/icons/pause-icon.d.ts +2 -0
- package/lib/components/show-case/constants/icons/play-icon.d.ts +2 -0
- package/lib/components/show-case/constants/icons/player-boomerang.d.ts +2 -0
- package/lib/components/show-case/constants/icons/player-laps.d.ts +2 -0
- package/lib/components/show-case/constants/icons/player-next.d.ts +2 -0
- package/lib/components/show-case/constants/icons/player-prev.d.ts +2 -0
- package/lib/components/show-case/constants/index.d.ts +7 -0
- package/lib/components/show-case/constants/show-case.icons.d.ts +1 -0
- package/lib/components/show-case/container/show-case.component.d.ts +98 -0
- package/lib/components/show-case/helpers/mapOnInitSequenceData.d.ts +3 -0
- package/lib/components/show-case/index.d.ts +1 -0
- package/lib/components/show-case/interfaces/showcase-status.d.ts +20 -0
- package/lib/components/show-case/store/show-case.component.interface.d.ts +32 -0
- package/lib/components/show-case/store/show-case.component.store.d.ts +37 -0
- package/lib/components/stat-graph/stat-graph.component.d.ts +28 -0
- package/lib/components/unreal-scene/unreal-scene.component.d.ts +50 -0
- package/lib/components/unreal-status/unreal-status.component.d.ts +24 -0
- package/lib/components/video-locker/video-locker.component.d.ts +14 -0
- package/lib/components/video-stats/video-stats.component.d.ts +36 -0
- package/lib/components/webrtc-error-modal/webrtc-error-modal.component.d.ts +10 -0
- package/lib/constants/ButtonsAndCodes.d.ts +23 -0
- package/lib/constants/EControlSchemeType.d.ts +6 -0
- package/lib/constants/EMessageType.d.ts +25 -0
- package/lib/constants/EToClientMessageType.d.ts +12 -0
- package/lib/constants/InputOptions.d.ts +2 -0
- package/lib/constants/UnrealStatusMessage.d.ts +4 -0
- package/lib/constants/index.d.ts +11 -0
- package/lib/constants/initial-config.d.ts +3 -0
- package/lib/constants/mix-panel.constant.d.ts +11 -0
- package/lib/constants/struct.d.ts +5553 -0
- package/lib/constants/timeout.constant.d.ts +6 -0
- package/lib/constants/unreal.constant.d.ts +11 -0
- package/lib/constants/unreal.providers.d.ts +15 -0
- package/lib/helpers/CommandObserver.d.ts +8 -0
- package/lib/helpers/DataDecoder.d.ts +1 -0
- package/lib/helpers/DataFlowMonitor.d.ts +39 -0
- package/lib/helpers/EventWrapper.d.ts +18 -0
- package/lib/helpers/FromStreamerHandlers/AnswerHandler.d.ts +3 -0
- package/lib/helpers/FromStreamerHandlers/ConfigHandler.d.ts +3 -0
- package/lib/helpers/FromStreamerHandlers/IceCandidateHandler.d.ts +4 -0
- package/lib/helpers/FromStreamerHandlers/InstanceReadyHandler.d.ts +3 -0
- package/lib/helpers/FromStreamerHandlers/InstanceReservedHandler.d.ts +3 -0
- package/lib/helpers/FromStreamerHandlers/PingHandler.d.ts +2 -0
- package/lib/helpers/FromStreamerHandlers/PlayerCountHandler.d.ts +3 -0
- package/lib/helpers/FromStreamerHandlers/SSInfoHandler.d.ts +3 -0
- package/lib/helpers/FromStreamerHandlers/index.d.ts +8 -0
- package/lib/helpers/GetNextUrl.d.ts +1 -0
- package/lib/helpers/KalmanFilter1D.d.ts +20 -0
- package/lib/helpers/LatencyTimings.d.ts +13 -0
- package/lib/helpers/TouchEmulator.d.ts +24 -0
- package/lib/helpers/VideoRecorder.d.ts +8 -0
- package/lib/helpers/WsHandlers/OnCloseHandler.d.ts +2 -0
- package/lib/helpers/WsHandlers/OnErrorHandler.d.ts +2 -0
- package/lib/helpers/WsHandlers/OnMessageHandler.d.ts +2 -0
- package/lib/helpers/WsHandlers/OpenHandler.d.ts +2 -0
- package/lib/helpers/WsHandlers/index.d.ts +4 -0
- package/lib/helpers/clamp-and-keep-max-percents.d.ts +2 -0
- package/lib/helpers/deepEqual.d.ts +1 -0
- package/lib/helpers/dispatchResize.d.ts +2 -0
- package/lib/helpers/error-codes.d.ts +1 -0
- package/lib/helpers/float-to-smooth-percents.d.ts +2 -0
- package/lib/helpers/get-image-from-video-stream.d.ts +3 -0
- package/lib/helpers/index.d.ts +21 -0
- package/lib/helpers/mapQpToQuality.d.ts +2 -0
- package/lib/helpers/prepare-commands.d.ts +52 -0
- package/lib/helpers/remove-exile-commands.d.ts +10 -0
- package/lib/helpers/resetAfk.d.ts +1 -0
- package/lib/helpers/resize-observer.d.ts +2 -0
- package/lib/interfaces/CloseReason.d.ts +5 -0
- package/lib/interfaces/CustomCloseCodes.d.ts +6 -0
- package/lib/interfaces/LBMStats.d.ts +6 -0
- package/lib/interfaces/SignalingData.d.ts +8 -0
- package/lib/interfaces/SignalingMessage.d.ts +77 -0
- package/lib/interfaces/TelemetryEvent.d.ts +1 -0
- package/lib/interfaces/disconnect-reasons.d.ts +9 -0
- package/lib/interfaces/errors.interface.d.ts +5 -0
- package/lib/interfaces/freeze-frame-message.interface.d.ts +4 -0
- package/lib/interfaces/index.d.ts +16 -0
- package/lib/interfaces/initial-config.d.ts +8 -0
- package/lib/interfaces/input.interface.d.ts +19 -0
- package/lib/interfaces/mix-panel-events.d.ts +8 -0
- package/lib/interfaces/quality.interface.d.ts +1 -0
- package/lib/interfaces/stream-config.interface.d.ts +5 -0
- package/lib/interfaces/stream-resolution.interface.d.ts +4 -0
- package/lib/interfaces/unreal-internal-signal-events.interface.d.ts +83 -0
- package/lib/pipes/index.d.ts +1 -0
- package/lib/pipes/safe-html.pipe.d.ts +9 -0
- package/lib/services/afk.service.d.ts +38 -0
- package/lib/services/aggregator.service.d.ts +53 -0
- package/lib/services/command-telemetry.service.d.ts +71 -0
- package/lib/services/console-extensions.service.d.ts +10 -0
- package/lib/services/dev-mode.service.d.ts +7 -0
- package/lib/services/freeze-frame.service.d.ts +16 -0
- package/lib/services/image-capture.service.d.ts +30 -0
- package/lib/services/index.d.ts +17 -0
- package/lib/services/input.service.d.ts +53 -0
- package/lib/services/mix-panel.service.d.ts +11 -0
- package/lib/services/regions-ping.service.d.ts +34 -0
- package/lib/services/signalling.service.d.ts +41 -0
- package/lib/services/stream-status-telemetry.service.d.ts +11 -0
- package/lib/services/sub.service.d.ts +5 -0
- package/lib/services/unreal-communicator.service.d.ts +38 -0
- package/lib/services/video-stream-status.service.d.ts +24 -0
- package/lib/services/video.service.d.ts +17 -0
- package/lib/services/web-rtc-player.service.d.ts +44 -0
- package/lib/store/index.d.ts +5 -0
- package/lib/store/unreal.actions.d.ts +196 -0
- package/lib/store/unreal.effects.d.ts +79 -0
- package/lib/store/unreal.feature.d.ts +35 -0
- package/lib/store/unreal.reducer.d.ts +56 -0
- package/lib/store/unreal.selectors.d.ts +36 -0
- package/package.json +36 -0
- package/public-api.d.ts +7 -0
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const DEFAULT_TIMEOUT_PERIOD = 15;
|
|
2
|
+
export declare const DEFAULT_WARN_TIMEOUT = 120;
|
|
3
|
+
export declare const DEFAULT_SHOWCASE_TIMEOUT = 120;
|
|
4
|
+
export declare const DEFAULT_PDF_TIMEOUT = 300;
|
|
5
|
+
export declare const DEFAULT_RENDER_SPINNER_TIMEOUT: number;
|
|
6
|
+
export declare const DATA_CHANNEL_CONNECTION_TIMEOUT = 5000;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare const DEBOUNCE_TO_MANY_RESIZE_CALLS = 100;
|
|
2
|
+
export declare const SAME_SIZE_THRESHOLD = 1.01;
|
|
3
|
+
export declare const MINIMAL_FPS = 6;
|
|
4
|
+
export declare const STREAMING_VIDEO_ID = "streamingVideo";
|
|
5
|
+
export declare const CONSOLE_COMMAND_ENABLE_MESSAGES = "EnableAllScreenMessages";
|
|
6
|
+
export declare const CONSOLE_COMMAND_DISABLE_MESSAGES = "DisableAllScreenMessages";
|
|
7
|
+
export declare const CONSOLE_COMMAND_PIXEL_QUALITY = "PixelStreaming.FreezeFrameQuality 95";
|
|
8
|
+
export declare const FULL_HD_WIDTH = 1920;
|
|
9
|
+
export declare const FULL_HD_HEIGHT = 1080;
|
|
10
|
+
export declare const WS_TIMEOUT = 2000;
|
|
11
|
+
export declare const WS_OPEN_STATE = 1;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { AFKService } from '../services/afk.service';
|
|
2
|
+
import { AggregatorService } from '../services/aggregator.service';
|
|
3
|
+
import { CommandTelemetryService } from '../services/command-telemetry.service';
|
|
4
|
+
import { ConsoleExtensionsService } from '../services/console-extensions.service';
|
|
5
|
+
import { FreezeFrameService } from '../services/freeze-frame.service';
|
|
6
|
+
import { InputService } from '../services/input.service';
|
|
7
|
+
import { SignallingService } from '../services/signalling.service';
|
|
8
|
+
import { StreamStatusTelemetryService } from '../services/stream-status-telemetry.service';
|
|
9
|
+
import { UnrealCommunicatorService } from '../services/unreal-communicator.service';
|
|
10
|
+
import { VideoService } from '../services/video.service';
|
|
11
|
+
import { VideoStreamStatusService } from '../services/video-stream-status.service';
|
|
12
|
+
import { WebRtcPlayerService } from '../services/web-rtc-player.service';
|
|
13
|
+
import { ImageCaptureService } from '../services/image-capture.service';
|
|
14
|
+
import { RegionsPingService } from '../services/regions-ping.service';
|
|
15
|
+
export declare const UNREAL_PROVIDERS: (import("@angular/core").EnvironmentProviders | (typeof CommandTelemetryService | typeof WebRtcPlayerService | typeof VideoStreamStatusService | typeof VideoService | typeof AFKService | typeof FreezeFrameService | typeof ConsoleExtensionsService | typeof UnrealCommunicatorService | typeof ImageCaptureService | typeof RegionsPingService | typeof SignallingService | typeof InputService | typeof AggregatorService | typeof StreamStatusTelemetryService)[])[];
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { MetaBoxCommandList, MetaBoxCommandPacket } from '@struct';
|
|
2
|
+
import type { Observable } from 'rxjs';
|
|
3
|
+
export declare function observeCommandResponse<K extends keyof MetaBoxCommandList, T extends MetaBoxCommandList[K] = MetaBoxCommandList[K]>(data: T, sender: (data: T) => void, timeOut?: number, dispatchOnTimeout?: boolean): Observable<ObservedCallbackResponse<T> | never>;
|
|
4
|
+
export interface ObservedCallbackResponse<T extends MetaBoxCommandPacket> {
|
|
5
|
+
json: {
|
|
6
|
+
commandCallback: T;
|
|
7
|
+
};
|
|
8
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function decodeData(anyData: any): string;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { Quality } from '../interfaces/quality.interface';
|
|
2
|
+
import type { FilterSettings } from '../components/low-bandwidth-indicator/DataFlowConstants';
|
|
3
|
+
export interface DataFlowCheckResult {
|
|
4
|
+
isDropDetected: boolean;
|
|
5
|
+
dropPercentage: number;
|
|
6
|
+
activeMedian: number;
|
|
7
|
+
quality: Quality;
|
|
8
|
+
message: string;
|
|
9
|
+
dataHistory: number[];
|
|
10
|
+
config: {
|
|
11
|
+
yellowFlagThresholdPercentage: number;
|
|
12
|
+
redFlagThresholdPercentage: number;
|
|
13
|
+
historyBufferLength: number;
|
|
14
|
+
splitPoint: number;
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
export declare class DataFlowMonitor {
|
|
18
|
+
protected yellowFlagThresholdPercentage: number;
|
|
19
|
+
protected redFlagThresholdPercentage: number;
|
|
20
|
+
protected historyBufferLength: number;
|
|
21
|
+
protected splitPoint: number;
|
|
22
|
+
protected dataHistory: number[];
|
|
23
|
+
/**
|
|
24
|
+
* Initializes the DataFlowMonitor monitor.
|
|
25
|
+
* @param yellowFlagThresholdPercentage - The percentage drop to trigger a YELLOW warning (default: 15%).
|
|
26
|
+
* @param redFlagThresholdPercentage - The percentage drop to trigger a RED warning (default: 30%).
|
|
27
|
+
* @param historyBufferLength - buffer length (default: 100).
|
|
28
|
+
* @param splitPoint - The point at which to split the history buffer into two halves (default: 0.5).
|
|
29
|
+
*/
|
|
30
|
+
constructor(yellowFlagThresholdPercentage?: number, redFlagThresholdPercentage?: number, historyBufferLength?: number, splitPoint?: number);
|
|
31
|
+
reset(): void;
|
|
32
|
+
config(data: FilterSettings): void;
|
|
33
|
+
/**
|
|
34
|
+
* Adds a new bitrate measurement and checks for significant drops.
|
|
35
|
+
* @param currentValue - The current bitrate in kbps.
|
|
36
|
+
* @returns BitrateCheckResult indicating if a drop was detected.
|
|
37
|
+
*/
|
|
38
|
+
addValue(currentValue: number): DataFlowCheckResult;
|
|
39
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { SignalDescriptor } from '../interfaces/unreal-internal-signal-events.interface';
|
|
2
|
+
import type { Observable } from 'rxjs';
|
|
3
|
+
import type { MetaBoxCommandList } from '@struct';
|
|
4
|
+
type Descriptor = MetaBoxCommandList & SignalDescriptor;
|
|
5
|
+
/**
|
|
6
|
+
* UnrealInternalSignalEvents commands list wrapper listener
|
|
7
|
+
* @param event
|
|
8
|
+
*/
|
|
9
|
+
export declare function fromSignal<K extends keyof Descriptor>(event: K): Observable<Descriptor[K]>;
|
|
10
|
+
type ArgumentType<K extends keyof Descriptor> = Descriptor[K] extends void ? never : Descriptor[K];
|
|
11
|
+
/**
|
|
12
|
+
* UnrealInternalSignalEvents commands list wrapper sender
|
|
13
|
+
* @param event
|
|
14
|
+
* @param args
|
|
15
|
+
*/
|
|
16
|
+
export declare function sendSignal<K extends keyof Descriptor>(event: K, ...args: ArgumentType<K> extends never ? [] : [ArgumentType<K>]): void;
|
|
17
|
+
export declare function fromUnrealCallBackSignal<K extends keyof Descriptor>(command: K): Observable<Descriptor[K]>;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from './AnswerHandler';
|
|
2
|
+
export * from './ConfigHandler';
|
|
3
|
+
export * from './IceCandidateHandler';
|
|
4
|
+
export * from './InstanceReadyHandler';
|
|
5
|
+
export * from './InstanceReservedHandler';
|
|
6
|
+
export * from './PingHandler';
|
|
7
|
+
export * from './PlayerCountHandler';
|
|
8
|
+
export * from './SSInfoHandler';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function getActiveUrl(urls: string[]): Generator<string, void, unknown>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { FilterSettings } from '../components/low-bandwidth-indicator/DataFlowConstants';
|
|
2
|
+
export declare class KalmanFilter1D {
|
|
3
|
+
private estimate;
|
|
4
|
+
private uncertainty;
|
|
5
|
+
private processNoise;
|
|
6
|
+
private measurementNoise;
|
|
7
|
+
/**
|
|
8
|
+
* @param initialEstimate Initial guess of the state.
|
|
9
|
+
* @param initialUncertainty Initial uncertainty in the guess.
|
|
10
|
+
* @param processNoise Process variance (Q) representing model uncertainty.
|
|
11
|
+
* @param measurementNoise Measurement variance (R) representing noise in measurements.
|
|
12
|
+
*/
|
|
13
|
+
constructor(initialEstimate: number, initialUncertainty: number, processNoise: number, measurementNoise: number);
|
|
14
|
+
/**
|
|
15
|
+
* Incorporates a new measurement and returns the updated estimate.
|
|
16
|
+
* @param measurement The new measurement value.
|
|
17
|
+
*/
|
|
18
|
+
update(measurement: number): number;
|
|
19
|
+
config(data: FilterSettings): void;
|
|
20
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare class LatencyTimings {
|
|
2
|
+
TestStartTimeMs: number | null;
|
|
3
|
+
UEReceiptTimeMs: number | null;
|
|
4
|
+
UEEncodeMs: number | null;
|
|
5
|
+
UECaptureToSendMs: number | null;
|
|
6
|
+
UETransmissionTimeMs: number | null;
|
|
7
|
+
BrowserReceiptTimeMs: number | null;
|
|
8
|
+
FrameDisplayDeltaTimeMs: number | null;
|
|
9
|
+
Reset(): void;
|
|
10
|
+
SetUETimings(UETimings: any): void;
|
|
11
|
+
SetFrameDisplayDeltaTime(DeltaTimeMs: number): void;
|
|
12
|
+
OnAllLatencyTimingsReady(Timings: any): void;
|
|
13
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { InputService } from '../services/input.service';
|
|
2
|
+
export default class TouchEmulator {
|
|
3
|
+
private host;
|
|
4
|
+
private lastDistance;
|
|
5
|
+
private prevDistance;
|
|
6
|
+
private touchReset;
|
|
7
|
+
private delta;
|
|
8
|
+
private moveSensitivityScale;
|
|
9
|
+
private prevX;
|
|
10
|
+
private prevY;
|
|
11
|
+
constructor(host: InputService);
|
|
12
|
+
private getPosition;
|
|
13
|
+
private getCenter;
|
|
14
|
+
private getDistance;
|
|
15
|
+
updateDistance(touches: TouchList): {
|
|
16
|
+
x: number;
|
|
17
|
+
y: number;
|
|
18
|
+
};
|
|
19
|
+
private touchToVector2;
|
|
20
|
+
private twoFingersAction;
|
|
21
|
+
private threeFingersActionMove;
|
|
22
|
+
private twoFingersActionZoom;
|
|
23
|
+
private registerTouchEvents;
|
|
24
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const deepEqual: (a: any, b: any) => boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function getRtcErrorMessage(code: number | null): string | undefined;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { ImageOutputValues } from '@3dsource/utils';
|
|
2
|
+
import type { StreamResolutionProps } from '../interfaces/stream-resolution.interface';
|
|
3
|
+
export declare const getImageFromVideoStream: (takeSizeFrom?: "video" | "constant", imageOutput?: ImageOutputValues, sizes?: StreamResolutionProps) => string | null;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export * from './FromStreamerHandlers';
|
|
2
|
+
export * from './WsHandlers';
|
|
3
|
+
export * from './clamp-and-keep-max-percents';
|
|
4
|
+
export * from './CommandObserver';
|
|
5
|
+
export * from './DataDecoder';
|
|
6
|
+
export * from './DataFlowMonitor';
|
|
7
|
+
export * from './dispatchResize';
|
|
8
|
+
export * from './error-codes';
|
|
9
|
+
export * from './EventWrapper';
|
|
10
|
+
export * from './float-to-smooth-percents';
|
|
11
|
+
export * from './get-image-from-video-stream';
|
|
12
|
+
export * from './GetNextUrl';
|
|
13
|
+
export * from './KalmanFilter1D';
|
|
14
|
+
export * from './LatencyTimings';
|
|
15
|
+
export * from './mapQpToQuality';
|
|
16
|
+
export * from './prepare-commands';
|
|
17
|
+
export * from './remove-exile-commands';
|
|
18
|
+
export * from './resetAfk';
|
|
19
|
+
export * from './resize-observer';
|
|
20
|
+
export * from './TouchEmulator';
|
|
21
|
+
export * from './VideoRecorder';
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import type { FAlignProductsToPlaneCommand, FAlignProductsToPlanePayload, FApplyCameraPresetCommand, FApplyZoomCommand, FApplyZoomPayload, FBoolPayload, FCameraBoxCommand, FCameraClampsPayload, FCameraPresetPayload, FCameraRecenterCommand, FCameraSettingsCommand, FCameraSettingsPayload, FChangeGizmoTypeCommand, FChangeResolutionCommand, FClampPanToProductsCommand, FClickSnapCommand, FComposurePayload, FControlCameraModePayload, FControlSensitivityCommand, FControlSensitivityPayload, FDebugModeCommand, FDragCommand, FDragSequenceCommand, FDragSequencePayload, FDropCommand, FDropPayload, FEnableComposureCommand, FEnableControlsCommand, FEnableSpinnerModeCommand, FEnableTeleportCommand, FExecuteConsoleCommandCommand, FFitToObjectsCommand, FFitToObjectsPayload, FFreezeFrameCommand, FFStringPayload, FFStringsPayload, FFVectorPayload, FGizmoTypePayload, FInitSequenceByObjectNameCommand, FInitSequenceByObjectNamePayload, FJumpToSequenceCommand, FJumpToSequencePayload, FLevelPayload, FLoadLevelCommand, FLoadProductCommand, FLoadSceneStateCommand, FLoadSceneStatePayload, FLoopBackCommand, FMoveSelectedCommand, FMoveSelectedPayload, FPauseSequenceCommand, FPlaySequenceCommand, FPlaySequencePayload, FProductPayload, FRenderPayload, FRequestCameraPresetCommand, FResetControlClampsCommand, FResolutionPayload, FRotatePayload, FRotateSelectedCommand, FSelectProductByObjectNameCommand, FSelectProductByObjectNamePayload, FSetCameraControlClampsCommand, FSetControlCameraModeCommand, FSetMaterialCommand, FSetMaterialPayload, FSetPawnMovementModeCommand, FSetPawnMovementModePayload, FSetProductsLocationCommand, FSetProductsLocationPayload, FSetSettingsSequenceCommand, FSettingsSequencePayload, FStopSequenceCommand, FTakeRenderCommand, FTakeSpinnerRenderCommand, FTakeSpinnerRenderPreviewCommand, FUnLoadAllLevelsCommand, FUnLoadAllProductsCommand, FUnLoadProductByObjectNameCommand, FUnselectAllProductsCommand, FWeatherCommand, FWeatherPayload } from '@struct';
|
|
2
|
+
export declare const getResetControlClampsCommand: () => FResetControlClampsCommand;
|
|
3
|
+
export declare const getCameraRecenterCommand: () => FCameraRecenterCommand;
|
|
4
|
+
export declare const unLoadAllLevelsCommand: () => FUnLoadAllLevelsCommand;
|
|
5
|
+
export declare const getDragCommand: () => FDragCommand;
|
|
6
|
+
export declare const getUnselectAllProductsCommand: () => FUnselectAllProductsCommand;
|
|
7
|
+
export declare const getPauseSequenceCommand: () => FPauseSequenceCommand;
|
|
8
|
+
export declare const getStopSequenceCommand: () => FStopSequenceCommand;
|
|
9
|
+
export declare const getUnLoadAllProductsCommand: () => FUnLoadAllProductsCommand;
|
|
10
|
+
export declare const getRequestCameraPresetCommand: () => FRequestCameraPresetCommand;
|
|
11
|
+
export declare const getLoopBackCommand: () => FLoopBackCommand;
|
|
12
|
+
export declare const getSetFpsCommand: (fpsRequired: number) => FExecuteConsoleCommandCommand;
|
|
13
|
+
export declare const getFreezeFrameCommand: (payload: FBoolPayload, source: string) => FFreezeFrameCommand;
|
|
14
|
+
export declare const getDragSequenceCommand: (payload: FDragSequencePayload) => FDragSequenceCommand;
|
|
15
|
+
export declare const alignProductsToPlaneCommand: (payload: FAlignProductsToPlanePayload) => FAlignProductsToPlaneCommand;
|
|
16
|
+
export declare const getApplyCameraPresetCommand: (payload: FCameraPresetPayload) => FApplyCameraPresetCommand;
|
|
17
|
+
export declare const getLoadSceneStateCommand: (payload: FLoadSceneStatePayload) => FLoadSceneStateCommand;
|
|
18
|
+
export declare const getClickSnapCommand: (payload: FBoolPayload) => FClickSnapCommand;
|
|
19
|
+
export declare const getSetControlCameraModeCommand: (payload: FControlCameraModePayload) => FSetControlCameraModeCommand;
|
|
20
|
+
export declare const getSetCameraControlClampsCommand: (payload: FCameraClampsPayload) => FSetCameraControlClampsCommand;
|
|
21
|
+
export declare const getSetPawnMovementModeCommand: (payload: FSetPawnMovementModePayload) => FSetPawnMovementModeCommand;
|
|
22
|
+
export declare const getEnableTeleportCommand: (payload: FBoolPayload) => FEnableTeleportCommand;
|
|
23
|
+
export declare const getApplyZoomCommand: (payload: FApplyZoomPayload) => FApplyZoomCommand;
|
|
24
|
+
export declare const getCameraBoxCommand: (payload: FFVectorPayload) => FCameraBoxCommand;
|
|
25
|
+
export declare const getDropCommand: (payload?: FDropPayload) => FDropCommand;
|
|
26
|
+
export declare const getSelectProductByObjectNameCommand: (payload: FSelectProductByObjectNamePayload) => FSelectProductByObjectNameCommand;
|
|
27
|
+
export declare const getChangeGizmoTypeCommand: (payload: FGizmoTypePayload) => FChangeGizmoTypeCommand;
|
|
28
|
+
export declare const getWeatherCommand: (payload: FWeatherPayload) => FWeatherCommand;
|
|
29
|
+
export declare const getFitToObjectsCommand: (payload?: FFitToObjectsPayload) => FFitToObjectsCommand;
|
|
30
|
+
export declare const setProductsLocationCommand: (payload: FSetProductsLocationPayload) => FSetProductsLocationCommand;
|
|
31
|
+
export declare const getChangeResolutionCommand: (payload: FResolutionPayload) => FChangeResolutionCommand;
|
|
32
|
+
export declare const getEnableSpinnerModeCommand: (payload: FBoolPayload) => FEnableSpinnerModeCommand;
|
|
33
|
+
export declare const getControlSensitivityCommand: (payload: FControlSensitivityPayload) => FControlSensitivityCommand;
|
|
34
|
+
export declare const getCameraSettingsCommand: (payload: FCameraSettingsPayload) => FCameraSettingsCommand;
|
|
35
|
+
export declare const getDebugModeCommand: (payload: FBoolPayload) => FDebugModeCommand;
|
|
36
|
+
export declare const getEnableControlsCommand: (payload: FBoolPayload) => FEnableControlsCommand;
|
|
37
|
+
export declare const getExecuteConsoleCommand: (payload: FFStringPayload) => FExecuteConsoleCommandCommand;
|
|
38
|
+
export declare const getInitSequenceByObjectNameCommand: (payload: FInitSequenceByObjectNamePayload) => FInitSequenceByObjectNameCommand;
|
|
39
|
+
export declare const getPlaySequenceCommand: (payload: FPlaySequencePayload) => FPlaySequenceCommand;
|
|
40
|
+
export declare const getJumpToSequenceCommand: (payload: FJumpToSequencePayload) => FJumpToSequenceCommand;
|
|
41
|
+
export declare const getMoveSelectedCommand: (payload: FMoveSelectedPayload) => FMoveSelectedCommand;
|
|
42
|
+
export declare const getRotateSelectedCommand: (payload: FRotatePayload) => FRotateSelectedCommand;
|
|
43
|
+
export declare const getTakeRenderCommand: (payload: FRenderPayload) => FTakeRenderCommand;
|
|
44
|
+
export declare const getTakeSpinnerRenderPreviewCommand: (payload: FRenderPayload) => FTakeSpinnerRenderPreviewCommand;
|
|
45
|
+
export declare const getTakeSpinnerRenderCommand: (payload: FRenderPayload) => FTakeSpinnerRenderCommand;
|
|
46
|
+
export declare const getSetMaterialCommand: (payload: FSetMaterialPayload) => FSetMaterialCommand;
|
|
47
|
+
export declare const getLoadProductCommand: (payload: FProductPayload) => FLoadProductCommand;
|
|
48
|
+
export declare const getUnLoadProductByObjectNameCommand: (payload: FFStringPayload) => FUnLoadProductByObjectNameCommand;
|
|
49
|
+
export declare const getLoadLevelCommand: (payload: FLevelPayload) => FLoadLevelCommand;
|
|
50
|
+
export declare const getEnableComposureCommand: (payload: FComposurePayload) => FEnableComposureCommand;
|
|
51
|
+
export declare const clampPanToProductsCommand: (payload?: FFStringsPayload) => FClampPanToProductsCommand;
|
|
52
|
+
export declare const getSetSettingsSequenceCommand: (payload: FSettingsSequencePayload) => FSetSettingsSequenceCommand;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { CommandsLoaderState } from '../store/unreal.reducer';
|
|
2
|
+
export declare const removeExileCommands: (state: CommandsLoaderState, idToRemove: string) => {
|
|
3
|
+
commandsInProgress: {
|
|
4
|
+
timeStamp: number;
|
|
5
|
+
command: import("../constants/struct").MetaBoxCommand;
|
|
6
|
+
id: string;
|
|
7
|
+
}[];
|
|
8
|
+
totalCommandsStarted: number;
|
|
9
|
+
totalCommandsCompleted: number;
|
|
10
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const resetAfk: () => void;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const WSCloseCode_NORMAL_CLOSURE = 3000;
|
|
2
|
+
export declare const WSCloseCode_NORMAL_AFK_TIMEOUT = 3001;
|
|
3
|
+
export declare const WSCloseCode_NORMAL_MANUAL_DISCONNECT = 3002;
|
|
4
|
+
export declare const WSCloseCode_NORMAL_CIRRUS_CLOSED = 3003;
|
|
5
|
+
export declare const WSCloseCodes: readonly [3000, 3001, 3002, 3003];
|
|
6
|
+
export type WSCloseCodesValues = (typeof WSCloseCodes)[number];
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import type { SignalingData } from '../interfaces/SignalingData';
|
|
2
|
+
export interface InstanceReady extends InstanceMessageBase {
|
|
3
|
+
type: 'instanceReady';
|
|
4
|
+
}
|
|
5
|
+
export interface InstanceReserved extends InstanceMessageBase {
|
|
6
|
+
type: 'instanceReserved';
|
|
7
|
+
}
|
|
8
|
+
interface InstanceMessageBase extends MessageBase {
|
|
9
|
+
correlationId: string;
|
|
10
|
+
payload: {
|
|
11
|
+
instanceId: string;
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
export interface MessageBase {
|
|
15
|
+
type: OrchestrationMessageType;
|
|
16
|
+
}
|
|
17
|
+
export interface SSInfo extends MessageBase {
|
|
18
|
+
type: 'ssInfo';
|
|
19
|
+
message: string;
|
|
20
|
+
data: SignalingData;
|
|
21
|
+
}
|
|
22
|
+
export interface PlayerCountMessage extends MessageBase {
|
|
23
|
+
type: 'playerCount';
|
|
24
|
+
playerCount: number;
|
|
25
|
+
}
|
|
26
|
+
export interface AnswerMessage extends RTCSessionDescriptionInit {
|
|
27
|
+
type: RTCSdpType;
|
|
28
|
+
}
|
|
29
|
+
export interface ConfigMessage extends MessageBase, UnknownFields {
|
|
30
|
+
type: 'config';
|
|
31
|
+
peerConnectionOptions: RTCConfiguration;
|
|
32
|
+
}
|
|
33
|
+
export interface CandidateMessage extends MessageBase {
|
|
34
|
+
type: 'iceCandidate';
|
|
35
|
+
candidate: RTCIceCandidate;
|
|
36
|
+
}
|
|
37
|
+
export interface PingMessage extends MessageBase {
|
|
38
|
+
type: 'ping';
|
|
39
|
+
playerId: string;
|
|
40
|
+
appConnectionCounter: number;
|
|
41
|
+
}
|
|
42
|
+
export type UnknownFields = Record<string, unknown>;
|
|
43
|
+
export declare const OrchestrationMessageTypes: {
|
|
44
|
+
readonly requestReservation: "requestReservation";
|
|
45
|
+
readonly instanceReady: "instanceReady";
|
|
46
|
+
readonly instanceReserved: "instanceReserved";
|
|
47
|
+
readonly ssInfo: "ssInfo";
|
|
48
|
+
readonly playerCount: "playerCount";
|
|
49
|
+
readonly answer: "answer";
|
|
50
|
+
readonly iceCandidate: "iceCandidate";
|
|
51
|
+
readonly ping: "ping";
|
|
52
|
+
readonly config: "config";
|
|
53
|
+
};
|
|
54
|
+
export interface SignalingMessageMap {
|
|
55
|
+
[OrchestrationMessageTypes.ssInfo]: SSInfo;
|
|
56
|
+
[OrchestrationMessageTypes.playerCount]: PlayerCountMessage;
|
|
57
|
+
[OrchestrationMessageTypes.answer]: AnswerMessage;
|
|
58
|
+
[OrchestrationMessageTypes.config]: ConfigMessage;
|
|
59
|
+
[OrchestrationMessageTypes.iceCandidate]: CandidateMessage;
|
|
60
|
+
[OrchestrationMessageTypes.instanceReady]: InstanceReady;
|
|
61
|
+
[OrchestrationMessageTypes.instanceReserved]: InstanceReserved;
|
|
62
|
+
[OrchestrationMessageTypes.ping]: PingMessage;
|
|
63
|
+
}
|
|
64
|
+
export type OrchestrationMessageType = keyof SignalingMessageMap;
|
|
65
|
+
export type SignalingMessageHandler<T extends keyof SignalingMessageMap> = (msg: SignalingMessageMap[T]) => void;
|
|
66
|
+
export interface PollingOrchestrationMessage {
|
|
67
|
+
mm_message?: string;
|
|
68
|
+
signallingServer?: string;
|
|
69
|
+
error?: string;
|
|
70
|
+
info?: {
|
|
71
|
+
age: number | null;
|
|
72
|
+
left: number | null;
|
|
73
|
+
percent: number | null;
|
|
74
|
+
total: number | null;
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type TelemetryType = 'commandSent' | 'commandStop';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const DisconnectReason: {
|
|
2
|
+
readonly afk: "afk";
|
|
3
|
+
readonly none: "none";
|
|
4
|
+
readonly reset: "reset";
|
|
5
|
+
readonly wsOnError: "wsOnError";
|
|
6
|
+
readonly dataChannelClosed: "dataChannelClosed";
|
|
7
|
+
readonly dataChannelTimeout: "dataChannelTimeout";
|
|
8
|
+
};
|
|
9
|
+
export type DisconnectType = (typeof DisconnectReason)[keyof typeof DisconnectReason];
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export * from './CloseReason';
|
|
2
|
+
export * from './CustomCloseCodes';
|
|
3
|
+
export * from './disconnect-reasons';
|
|
4
|
+
export * from './errors.interface';
|
|
5
|
+
export * from './freeze-frame-message.interface';
|
|
6
|
+
export * from './initial-config';
|
|
7
|
+
export * from './input.interface';
|
|
8
|
+
export * from './LBMStats';
|
|
9
|
+
export * from './mix-panel-events';
|
|
10
|
+
export * from './quality.interface';
|
|
11
|
+
export * from './SignalingData';
|
|
12
|
+
export * from './SignalingMessage';
|
|
13
|
+
export * from './stream-config.interface';
|
|
14
|
+
export * from './stream-resolution.interface';
|
|
15
|
+
export * from './TelemetryEvent';
|
|
16
|
+
export * from './unreal-internal-signal-events.interface';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { EControlSchemeTypeValues } from '../constants/EControlSchemeType';
|
|
2
|
+
export interface NormalizeAndQuantizeUnsignedValue {
|
|
3
|
+
inRange: boolean;
|
|
4
|
+
x: number;
|
|
5
|
+
y: number;
|
|
6
|
+
}
|
|
7
|
+
export interface UnquantizeAndDenormalizeUnsignedValue {
|
|
8
|
+
x: number;
|
|
9
|
+
y: number;
|
|
10
|
+
}
|
|
11
|
+
export interface NormalizeAndQuantizeSignedValue {
|
|
12
|
+
x: number;
|
|
13
|
+
y: number;
|
|
14
|
+
}
|
|
15
|
+
export interface InputProps {
|
|
16
|
+
controlScheme: EControlSchemeTypeValues;
|
|
17
|
+
suppressBrowserKeys: boolean;
|
|
18
|
+
fakeMouseWithTouches: boolean;
|
|
19
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const MixPanelEvents: {
|
|
2
|
+
readonly pixelstreaming_end: "pixelstreaming_end";
|
|
3
|
+
readonly pixelstreaming_start: "pixelstreaming_start";
|
|
4
|
+
readonly render_request: "render_request";
|
|
5
|
+
readonly custom_click: "custom_click";
|
|
6
|
+
readonly route_change: "route_change";
|
|
7
|
+
};
|
|
8
|
+
export type MixPanelEventsValues = (typeof MixPanelEvents)[keyof typeof MixPanelEvents];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type Quality = 'lime' | 'red' | 'orange';
|