@3dsource/angular-unreal-module 0.0.29 → 0.0.31-dev.0

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.
Files changed (107) hide show
  1. package/LICENSE +14 -14
  2. package/README.md +112 -36
  3. package/fesm2022/3dsource-angular-unreal-module.mjs +262 -246
  4. package/fesm2022/3dsource-angular-unreal-module.mjs.map +1 -1
  5. package/index.d.ts +1638 -3
  6. package/package.json +2 -2
  7. package/lib/components/clickable-overlay/clickable-overlay.component.d.ts +0 -11
  8. package/lib/components/freeze-frame/freeze-frame.component.d.ts +0 -8
  9. package/lib/components/index.d.ts +0 -10
  10. package/lib/components/low-bandwidth-indicator/DataFlowConstants.d.ts +0 -66
  11. package/lib/components/low-bandwidth-indicator/filter-settings/filter-settings.component.d.ts +0 -37
  12. package/lib/components/low-bandwidth-indicator/index.d.ts +0 -2
  13. package/lib/components/low-bandwidth-indicator/low-bandwidth-detector.component.d.ts +0 -38
  14. package/lib/components/low-bandwidth-modal/low-bandwidth-modal.component.d.ts +0 -8
  15. package/lib/components/screen-locker/afk-restart-screen-locker.component.d.ts +0 -22
  16. package/lib/components/stat-graph/stat-graph.component.d.ts +0 -28
  17. package/lib/components/unreal-error-modal/unreal-error-modal.component.d.ts +0 -11
  18. package/lib/components/unreal-scene/unreal-scene.component.d.ts +0 -50
  19. package/lib/components/unreal-status/unreal-status.component.d.ts +0 -24
  20. package/lib/components/video-locker/video-locker.component.d.ts +0 -14
  21. package/lib/components/video-stats/video-stats.component.d.ts +0 -36
  22. package/lib/components/webrtc-error-modal/webrtc-error-modal.component.d.ts +0 -10
  23. package/lib/constants/ButtonsAndCodes.d.ts +0 -23
  24. package/lib/constants/EControlSchemeType.d.ts +0 -6
  25. package/lib/constants/EMessageType.d.ts +0 -25
  26. package/lib/constants/EToClientMessageType.d.ts +0 -12
  27. package/lib/constants/InputOptions.d.ts +0 -2
  28. package/lib/constants/UnrealStatusMessage.d.ts +0 -4
  29. package/lib/constants/index.d.ts +0 -8
  30. package/lib/constants/initial-config.d.ts +0 -3
  31. package/lib/constants/unreal.constant.d.ts +0 -15
  32. package/lib/helpers/CommandObserver.d.ts +0 -8
  33. package/lib/helpers/DataDecoder.d.ts +0 -1
  34. package/lib/helpers/DataFlowMonitor.d.ts +0 -39
  35. package/lib/helpers/EventWrapper.d.ts +0 -18
  36. package/lib/helpers/FromStreamerHandlers/AnswerHandler.d.ts +0 -3
  37. package/lib/helpers/FromStreamerHandlers/ConfigHandler.d.ts +0 -3
  38. package/lib/helpers/FromStreamerHandlers/IceCandidateHandler.d.ts +0 -4
  39. package/lib/helpers/FromStreamerHandlers/InstanceReadyHandler.d.ts +0 -3
  40. package/lib/helpers/FromStreamerHandlers/InstanceReservedHandler.d.ts +0 -3
  41. package/lib/helpers/FromStreamerHandlers/PingHandler.d.ts +0 -2
  42. package/lib/helpers/FromStreamerHandlers/PlayerCountHandler.d.ts +0 -3
  43. package/lib/helpers/FromStreamerHandlers/SSInfoHandler.d.ts +0 -3
  44. package/lib/helpers/FromStreamerHandlers/index.d.ts +0 -8
  45. package/lib/helpers/GetNextUrl.d.ts +0 -1
  46. package/lib/helpers/KalmanFilter1D.d.ts +0 -20
  47. package/lib/helpers/LatencyTimings.d.ts +0 -13
  48. package/lib/helpers/TouchEmulator.d.ts +0 -24
  49. package/lib/helpers/VideoRecorder.d.ts +0 -8
  50. package/lib/helpers/WsHandlers/OnCloseHandler.d.ts +0 -2
  51. package/lib/helpers/WsHandlers/OnErrorHandler.d.ts +0 -2
  52. package/lib/helpers/WsHandlers/OnMessageHandler.d.ts +0 -2
  53. package/lib/helpers/WsHandlers/OpenHandler.d.ts +0 -2
  54. package/lib/helpers/WsHandlers/index.d.ts +0 -4
  55. package/lib/helpers/clamp-and-keep-max-percents.d.ts +0 -2
  56. package/lib/helpers/deepEqual.d.ts +0 -1
  57. package/lib/helpers/dispatchResize.d.ts +0 -2
  58. package/lib/helpers/error-codes.d.ts +0 -1
  59. package/lib/helpers/float-to-smooth-percents.d.ts +0 -2
  60. package/lib/helpers/get-image-from-video-stream.d.ts +0 -3
  61. package/lib/helpers/index.d.ts +0 -21
  62. package/lib/helpers/mapQpToQuality.d.ts +0 -2
  63. package/lib/helpers/prepare-commands.d.ts +0 -52
  64. package/lib/helpers/remove-exile-commands.d.ts +0 -10
  65. package/lib/helpers/resetAfk.d.ts +0 -1
  66. package/lib/helpers/resize-observer.d.ts +0 -2
  67. package/lib/interfaces/CloseReason.d.ts +0 -5
  68. package/lib/interfaces/CustomCloseCodes.d.ts +0 -6
  69. package/lib/interfaces/LBMStats.d.ts +0 -6
  70. package/lib/interfaces/SignalingData.d.ts +0 -8
  71. package/lib/interfaces/SignalingMessage.d.ts +0 -77
  72. package/lib/interfaces/TelemetryEvent.d.ts +0 -1
  73. package/lib/interfaces/disconnect-reasons.d.ts +0 -9
  74. package/lib/interfaces/errors.interface.d.ts +0 -5
  75. package/lib/interfaces/freeze-frame-message.interface.d.ts +0 -4
  76. package/lib/interfaces/index.d.ts +0 -15
  77. package/lib/interfaces/initial-config.d.ts +0 -6
  78. package/lib/interfaces/input.interface.d.ts +0 -19
  79. package/lib/interfaces/quality.interface.d.ts +0 -1
  80. package/lib/interfaces/stream-config.interface.d.ts +0 -5
  81. package/lib/interfaces/stream-resolution.interface.d.ts +0 -4
  82. package/lib/interfaces/unreal-internal-signal-events.interface.d.ts +0 -83
  83. package/lib/pipes/index.d.ts +0 -1
  84. package/lib/pipes/safe-html.pipe.d.ts +0 -9
  85. package/lib/services/afk.service.d.ts +0 -38
  86. package/lib/services/aggregator.service.d.ts +0 -52
  87. package/lib/services/command-telemetry.service.d.ts +0 -71
  88. package/lib/services/console-extensions.service.d.ts +0 -10
  89. package/lib/services/dev-mode.service.d.ts +0 -7
  90. package/lib/services/freeze-frame.service.d.ts +0 -16
  91. package/lib/services/index.d.ts +0 -15
  92. package/lib/services/input.service.d.ts +0 -53
  93. package/lib/services/regions-ping.service.d.ts +0 -35
  94. package/lib/services/signalling.service.d.ts +0 -40
  95. package/lib/services/stream-status-telemetry.service.d.ts +0 -11
  96. package/lib/services/sub.service.d.ts +0 -5
  97. package/lib/services/unreal-communicator.service.d.ts +0 -38
  98. package/lib/services/video-stream-status.service.d.ts +0 -24
  99. package/lib/services/video.service.d.ts +0 -17
  100. package/lib/services/web-rtc-player.service.d.ts +0 -44
  101. package/lib/store/index.d.ts +0 -5
  102. package/lib/store/unreal.actions.d.ts +0 -176
  103. package/lib/store/unreal.effects.d.ts +0 -69
  104. package/lib/store/unreal.feature.d.ts +0 -32
  105. package/lib/store/unreal.reducer.d.ts +0 -44
  106. package/lib/store/unreal.selectors.d.ts +0 -30
  107. package/public-api.d.ts +0 -7
@@ -1,8 +0,0 @@
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';
@@ -1 +0,0 @@
1
- export declare function getActiveUrl(urls: string[]): Generator<string, void, unknown>;
@@ -1,20 +0,0 @@
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
- }
@@ -1,13 +0,0 @@
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(_: any): void;
13
- }
@@ -1,24 +0,0 @@
1
- import type { InputService } from '../services';
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
- }
@@ -1,8 +0,0 @@
1
- export declare class VideoRecorder {
2
- private recordedChunks;
3
- private mediaRecorder;
4
- capture(canvas: any): void;
5
- stop(): void;
6
- handleDataAvailable(event: any): void;
7
- download(): void;
8
- }
@@ -1,2 +0,0 @@
1
- import type { SignallingService } from '../../services';
2
- export declare function OnCloseHandler(this: SignallingService, e: CloseEvent): void;
@@ -1,2 +0,0 @@
1
- import type { SignallingService } from '../../services';
2
- export declare function OnErrorHandler(this: SignallingService, e: Event): void;
@@ -1,2 +0,0 @@
1
- import type { SignallingService } from '../../services';
2
- export declare function OnMessageHandler(this: SignallingService, e: MessageEvent<string>): void;
@@ -1,2 +0,0 @@
1
- import type { SignallingService } from '../../services';
2
- export declare function OnOpenHandler(this: SignallingService): void;
@@ -1,4 +0,0 @@
1
- export * from './OnCloseHandler';
2
- export * from './OnErrorHandler';
3
- export * from './OnMessageHandler';
4
- export * from './OpenHandler';
@@ -1,2 +0,0 @@
1
- import type { Observable } from 'rxjs';
2
- export declare const clampAndKeepMaxPercents: () => ((source: Observable<number>) => Observable<number>);
@@ -1 +0,0 @@
1
- export declare const deepEqual: (a: any, b: any) => boolean;
@@ -1,2 +0,0 @@
1
- export declare const dispatchResize: () => void;
2
- export declare const forceResizeUnrealVideo: () => void;
@@ -1 +0,0 @@
1
- export declare function getRtcErrorMessage(code: number | null): string | undefined;
@@ -1,2 +0,0 @@
1
- import type { Observable } from 'rxjs';
2
- export declare const floatToSmoothPercents: () => ((source: Observable<number>) => Observable<number>);
@@ -1,3 +0,0 @@
1
- import type { ImageOutputValues } from '@3dsource/utils';
2
- import type { StreamResolutionProps } from '../interfaces';
3
- export declare const getImageFromVideoStream: (takeSizeFrom?: "video" | "constant", imageOutput?: ImageOutputValues, sizes?: StreamResolutionProps) => string | null;
@@ -1,21 +0,0 @@
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';
@@ -1,2 +0,0 @@
1
- import type { Quality } from '../interfaces';
2
- export declare function mapQpToQuality(VideoEncoderQP: number): Quality;
@@ -1,52 +0,0 @@
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 '@3dsource/types-unreal';
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;
@@ -1,10 +0,0 @@
1
- import type { CommandsLoaderState } from '../store';
2
- export declare const removeExileCommands: (state: CommandsLoaderState, idToRemove: string) => {
3
- commandsInProgress: {
4
- timeStamp: number;
5
- command: string;
6
- id: string;
7
- }[];
8
- totalCommandsStarted: number;
9
- totalCommandsCompleted: number;
10
- };
@@ -1 +0,0 @@
1
- export declare const resetAfk: () => void;
@@ -1,2 +0,0 @@
1
- import { Observable } from 'rxjs';
2
- export declare function fromResizeObserver(elem: HTMLElement): Observable<ResizeObserverEntry[]>;
@@ -1,5 +0,0 @@
1
- import type { WSCloseCodesValues } from './CustomCloseCodes';
2
- export interface CloseReason {
3
- code: WSCloseCodesValues;
4
- reason: string;
5
- }
@@ -1,6 +0,0 @@
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];
@@ -1,6 +0,0 @@
1
- import type { DataFlowCheckResult } from '../helpers';
2
- export interface LBMStats {
3
- dataFlowResult: DataFlowCheckResult;
4
- reason: string;
5
- triggerTime: number;
6
- }
@@ -1,8 +0,0 @@
1
- export interface SignalingData {
2
- branchInfo: string;
3
- cirrusVersion: string;
4
- streamerVersion: string;
5
- streamPath: string;
6
- streamApp: string;
7
- connectionId: string;
8
- }
@@ -1,77 +0,0 @@
1
- import type { SignalingData } from './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 {};
@@ -1 +0,0 @@
1
- export type TelemetryType = 'commandSent' | 'commandStop';
@@ -1,9 +0,0 @@
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];
@@ -1,5 +0,0 @@
1
- export interface UnrealError {
2
- errorType: UnrealErrorType;
3
- message: string;
4
- }
5
- export type UnrealErrorType = 'WebRTCError' | 'WebSocketError';
@@ -1,4 +0,0 @@
1
- export interface FreezeFrameMessage {
2
- dataUrl: string | null;
3
- progress: number | null;
4
- }
@@ -1,15 +0,0 @@
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 './quality.interface';
10
- export * from './SignalingData';
11
- export * from './SignalingMessage';
12
- export * from './stream-config.interface';
13
- export * from './stream-resolution.interface';
14
- export * from './TelemetryEvent';
15
- export * from './unreal-internal-signal-events.interface';
@@ -1,6 +0,0 @@
1
- export interface UnrealInitialConfig {
2
- customErrorsEndpoint?: string;
3
- commandTelemetryReceiver?: string;
4
- regionsPingUrl?: string;
5
- screenLockerContainerId?: string;
6
- }
@@ -1,19 +0,0 @@
1
- import type { EControlSchemeTypeValues } from '../constants';
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
- }
@@ -1 +0,0 @@
1
- export type Quality = 'lime' | 'red' | 'orange';
@@ -1,5 +0,0 @@
1
- export interface StreamConfig {
2
- autoStart: boolean;
3
- warnTimeout: number;
4
- matchMakerUrls: string[];
5
- }
@@ -1,4 +0,0 @@
1
- export interface StreamResolutionProps {
2
- width: number | null;
3
- height: number | null;
4
- }
@@ -1,83 +0,0 @@
1
- import type { MetaBoxCommandPacket } from '@3dsource/types-unreal';
2
- import type { Quality } from './quality.interface';
3
- import type { DataFlowCheckResult } from '../helpers';
4
- export declare const UnrealInternalSignalEvents: {
5
- readonly OnVideoInitialized: "OnVideoInitialized";
6
- readonly RestAfkTimer: "RestAfkTimer";
7
- readonly FreezeFrameStart: "FreezeFrameStart";
8
- readonly UnrealCallback: "UnrealCallback";
9
- readonly ClickableOverlay: "ClickableOverlay";
10
- readonly VideoPlayClick: "VideoPlayClick";
11
- readonly ShowPlayButton: "ShowPlayButton";
12
- readonly ForceResizeViewport: "ForceResizeViewport";
13
- readonly VideoAdaptedToContainer: "VideoAdaptedToContainer";
14
- readonly TelemetryStart: "TelemetryStart";
15
- readonly TelemetryStop: "TelemetryStop";
16
- readonly TelemetryReset: "TelemetryReset";
17
- };
18
- export interface SignalDescriptor {
19
- [UnrealInternalSignalEvents.UnrealCallback]: {
20
- json: UnrealCallBackJson;
21
- };
22
- [UnrealInternalSignalEvents.ClickableOverlay]: {
23
- message: string;
24
- className: string;
25
- isActivityDetected: boolean;
26
- onOverlayClick: () => void;
27
- } | void;
28
- [UnrealInternalSignalEvents.VideoPlayClick]: {
29
- text: string;
30
- };
31
- [UnrealInternalSignalEvents.ForceResizeViewport]: void;
32
- [UnrealInternalSignalEvents.OnVideoInitialized]: HTMLVideoElement;
33
- [UnrealInternalSignalEvents.VideoAdaptedToContainer]: void;
34
- [UnrealInternalSignalEvents.ShowPlayButton]: {
35
- text: string;
36
- callback: () => boolean;
37
- };
38
- [UnrealInternalSignalEvents.RestAfkTimer]: void;
39
- [UnrealInternalSignalEvents.FreezeFrameStart]: void;
40
- [UnrealInternalSignalEvents.TelemetryReset]: void;
41
- [UnrealInternalSignalEvents.TelemetryStart]: {
42
- externalId: string;
43
- };
44
- [UnrealInternalSignalEvents.TelemetryStop]: {
45
- externalId: string;
46
- payload?: {
47
- multi?: boolean;
48
- };
49
- };
50
- [key: string]: any;
51
- }
52
- export type UnrealCallBackJson = MetaBoxCommandPacket | WrappedMetaBoxCommandPacket;
53
- export interface WrappedMetaBoxCommandPacket {
54
- commandCallback: MetaBoxCommandPacket;
55
- }
56
- export interface IAggregatedStat {
57
- quality: Quality;
58
- aggregatedStats: InboundVideoStats;
59
- }
60
- export interface InboundVideoStats extends RTCInboundRtpStreamStats {
61
- VideoEncoderQP: number;
62
- runTime: number;
63
- pixelRatio: number;
64
- bytesReceivedStart: number;
65
- framesDecodedStart: number;
66
- timestampStart: number;
67
- videoCodec: string;
68
- avgBitrate: number;
69
- avgFrameRate: number;
70
- currentRoundTripTime: number;
71
- codecs: Record<string, string>;
72
- receiveToCompositeMs: number;
73
- bitrate: number;
74
- kalmanBitrate: number;
75
- bitrateDrop: number;
76
- dataFlowCheckResult: DataFlowCheckResult;
77
- dataFlowBitrate: DataFlowCheckResult;
78
- }
79
- export interface AwsInstance {
80
- wsUrl: string | null;
81
- pollingUrl: string | null;
82
- instanceName: string | null;
83
- }
@@ -1 +0,0 @@
1
- export * from './safe-html.pipe';
@@ -1,9 +0,0 @@
1
- import type { PipeTransform } from '@angular/core';
2
- import type { SafeHtml, SafeResourceUrl, SafeScript, SafeStyle, SafeUrl } from '@angular/platform-browser';
3
- import * as i0 from "@angular/core";
4
- export declare class SafePipe implements PipeTransform {
5
- private sanitizer;
6
- transform(value: any, type: string): SafeHtml | SafeStyle | SafeScript | SafeUrl | SafeResourceUrl;
7
- static ɵfac: i0.ɵɵFactoryDeclaration<SafePipe, never>;
8
- static ɵpipe: i0.ɵɵPipeDeclaration<SafePipe, "safe", true>;
9
- }
@@ -1,38 +0,0 @@
1
- import { SubService } from './sub.service';
2
- import * as i0 from "@angular/core";
3
- export declare class AFKService extends SubService {
4
- private enabled;
5
- private closeTimeout;
6
- private active;
7
- private warnTimer;
8
- private countdown;
9
- private countdownTimer;
10
- private selectWarnTimeout;
11
- constructor();
12
- initAfk(): void;
13
- init(): void;
14
- private hideOverlay;
15
- /**
16
- * Start a timer which when elapsed will warn the user they are inactive.
17
- */
18
- private startAfkWarningTimer;
19
- /**
20
- * If the user interacts, then reset the warning timer.
21
- */
22
- private resetAfkWarningTimer;
23
- /**
24
- * Update the count-down spans number for the overlay
25
- * @param countdown the count down number to be inserted into the span for updating
26
- */
27
- private updateCountDown;
28
- /**
29
- * Update the text overlays inner text
30
- * @param message the update text to be inserted into the overlay
31
- */
32
- private dispatchMessage;
33
- private stop;
34
- private reset;
35
- private showAfkOverlay;
36
- static ɵfac: i0.ɵɵFactoryDeclaration<AFKService, never>;
37
- static ɵprov: i0.ɵɵInjectableDeclaration<AFKService>;
38
- }
@@ -1,52 +0,0 @@
1
- import type { Observable } from 'rxjs';
2
- import { Subject } from 'rxjs';
3
- import { FreezeFrameService } from './freeze-frame.service';
4
- import { SignallingService } from './signalling.service';
5
- import { VideoService } from './video.service';
6
- import { VideoStreamStatusService } from './video-stream-status.service';
7
- import { WebRtcPlayerService } from './web-rtc-player.service';
8
- import { SubService } from './sub.service';
9
- import * as i0 from "@angular/core";
10
- export declare class AggregatorService extends SubService {
11
- #private;
12
- readonly selectStreamConfig: import("@angular/core").Signal<import("../interfaces").StreamConfig | undefined>;
13
- readonly videoService: VideoService;
14
- readonly webrtcPlayer: WebRtcPlayerService;
15
- readonly freezeFrame: FreezeFrameService;
16
- readonly signallingSrv: SignallingService;
17
- readonly stats: VideoStreamStatusService;
18
- /**
19
- * /Never called for now
20
- * @
21
- */
22
- destroy$: Subject<void>;
23
- responseEventListeners: Map<string, (data: unknown) => void>;
24
- unlockViewport$: Observable<boolean>;
25
- constructor();
26
- init(): void;
27
- private initialize;
28
- /**
29
- * @deprecated
30
- * Hack for 3DS platform;
31
- * TODO remove ASAP, use {@link BasicConfiguratorApiService.toMetaBoxHandlers.watchCallbacks}
32
- * Add external responses to the list of responses
33
- */
34
- private addExternalResponses;
35
- addResponseEventListener(name: string, listener: (data: unknown) => void): void;
36
- showOnScreenKeyboard<T extends {
37
- showOnScreenKeyboard: boolean;
38
- }>(command: T): void;
39
- exposeApi(): void;
40
- removeLoadScreen(): void;
41
- startListenCallbacks(): void;
42
- private showMessageFromUnreal;
43
- resetResponseList(): void;
44
- listenSignaling(): void;
45
- listenWebRTC(): void;
46
- dataChannelMessageHandler(data: number[]): void;
47
- static ɵfac: i0.ɵɵFactoryDeclaration<AggregatorService, never>;
48
- static ɵprov: i0.ɵɵInjectableDeclaration<AggregatorService>;
49
- }
50
- export declare const filteredLogs: {
51
- command: string;
52
- }[];