@3dsource/angular-unreal-module 0.0.29 → 0.0.30
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/LICENSE +14 -14
- package/README.md +117 -36
- package/fesm2022/3dsource-angular-unreal-module.mjs +235 -234
- package/fesm2022/3dsource-angular-unreal-module.mjs.map +1 -1
- package/index.d.ts +1637 -3
- package/package.json +2 -2
- package/lib/components/clickable-overlay/clickable-overlay.component.d.ts +0 -11
- package/lib/components/freeze-frame/freeze-frame.component.d.ts +0 -8
- package/lib/components/index.d.ts +0 -10
- package/lib/components/low-bandwidth-indicator/DataFlowConstants.d.ts +0 -66
- package/lib/components/low-bandwidth-indicator/filter-settings/filter-settings.component.d.ts +0 -37
- package/lib/components/low-bandwidth-indicator/index.d.ts +0 -2
- package/lib/components/low-bandwidth-indicator/low-bandwidth-detector.component.d.ts +0 -38
- package/lib/components/low-bandwidth-modal/low-bandwidth-modal.component.d.ts +0 -8
- package/lib/components/screen-locker/afk-restart-screen-locker.component.d.ts +0 -22
- package/lib/components/stat-graph/stat-graph.component.d.ts +0 -28
- package/lib/components/unreal-error-modal/unreal-error-modal.component.d.ts +0 -11
- package/lib/components/unreal-scene/unreal-scene.component.d.ts +0 -50
- package/lib/components/unreal-status/unreal-status.component.d.ts +0 -24
- package/lib/components/video-locker/video-locker.component.d.ts +0 -14
- package/lib/components/video-stats/video-stats.component.d.ts +0 -36
- package/lib/components/webrtc-error-modal/webrtc-error-modal.component.d.ts +0 -10
- package/lib/constants/ButtonsAndCodes.d.ts +0 -23
- package/lib/constants/EControlSchemeType.d.ts +0 -6
- package/lib/constants/EMessageType.d.ts +0 -25
- package/lib/constants/EToClientMessageType.d.ts +0 -12
- package/lib/constants/InputOptions.d.ts +0 -2
- package/lib/constants/UnrealStatusMessage.d.ts +0 -4
- package/lib/constants/index.d.ts +0 -8
- package/lib/constants/initial-config.d.ts +0 -3
- package/lib/constants/unreal.constant.d.ts +0 -15
- package/lib/helpers/CommandObserver.d.ts +0 -8
- package/lib/helpers/DataDecoder.d.ts +0 -1
- package/lib/helpers/DataFlowMonitor.d.ts +0 -39
- package/lib/helpers/EventWrapper.d.ts +0 -18
- package/lib/helpers/FromStreamerHandlers/AnswerHandler.d.ts +0 -3
- package/lib/helpers/FromStreamerHandlers/ConfigHandler.d.ts +0 -3
- package/lib/helpers/FromStreamerHandlers/IceCandidateHandler.d.ts +0 -4
- package/lib/helpers/FromStreamerHandlers/InstanceReadyHandler.d.ts +0 -3
- package/lib/helpers/FromStreamerHandlers/InstanceReservedHandler.d.ts +0 -3
- package/lib/helpers/FromStreamerHandlers/PingHandler.d.ts +0 -2
- package/lib/helpers/FromStreamerHandlers/PlayerCountHandler.d.ts +0 -3
- package/lib/helpers/FromStreamerHandlers/SSInfoHandler.d.ts +0 -3
- package/lib/helpers/FromStreamerHandlers/index.d.ts +0 -8
- package/lib/helpers/GetNextUrl.d.ts +0 -1
- package/lib/helpers/KalmanFilter1D.d.ts +0 -20
- package/lib/helpers/LatencyTimings.d.ts +0 -13
- package/lib/helpers/TouchEmulator.d.ts +0 -24
- package/lib/helpers/VideoRecorder.d.ts +0 -8
- package/lib/helpers/WsHandlers/OnCloseHandler.d.ts +0 -2
- package/lib/helpers/WsHandlers/OnErrorHandler.d.ts +0 -2
- package/lib/helpers/WsHandlers/OnMessageHandler.d.ts +0 -2
- package/lib/helpers/WsHandlers/OpenHandler.d.ts +0 -2
- package/lib/helpers/WsHandlers/index.d.ts +0 -4
- package/lib/helpers/clamp-and-keep-max-percents.d.ts +0 -2
- package/lib/helpers/deepEqual.d.ts +0 -1
- package/lib/helpers/dispatchResize.d.ts +0 -2
- package/lib/helpers/error-codes.d.ts +0 -1
- package/lib/helpers/float-to-smooth-percents.d.ts +0 -2
- package/lib/helpers/get-image-from-video-stream.d.ts +0 -3
- package/lib/helpers/index.d.ts +0 -21
- package/lib/helpers/mapQpToQuality.d.ts +0 -2
- package/lib/helpers/prepare-commands.d.ts +0 -52
- package/lib/helpers/remove-exile-commands.d.ts +0 -10
- package/lib/helpers/resetAfk.d.ts +0 -1
- package/lib/helpers/resize-observer.d.ts +0 -2
- package/lib/interfaces/CloseReason.d.ts +0 -5
- package/lib/interfaces/CustomCloseCodes.d.ts +0 -6
- package/lib/interfaces/LBMStats.d.ts +0 -6
- package/lib/interfaces/SignalingData.d.ts +0 -8
- package/lib/interfaces/SignalingMessage.d.ts +0 -77
- package/lib/interfaces/TelemetryEvent.d.ts +0 -1
- package/lib/interfaces/disconnect-reasons.d.ts +0 -9
- package/lib/interfaces/errors.interface.d.ts +0 -5
- package/lib/interfaces/freeze-frame-message.interface.d.ts +0 -4
- package/lib/interfaces/index.d.ts +0 -15
- package/lib/interfaces/initial-config.d.ts +0 -6
- package/lib/interfaces/input.interface.d.ts +0 -19
- package/lib/interfaces/quality.interface.d.ts +0 -1
- package/lib/interfaces/stream-config.interface.d.ts +0 -5
- package/lib/interfaces/stream-resolution.interface.d.ts +0 -4
- package/lib/interfaces/unreal-internal-signal-events.interface.d.ts +0 -83
- package/lib/pipes/index.d.ts +0 -1
- package/lib/pipes/safe-html.pipe.d.ts +0 -9
- package/lib/services/afk.service.d.ts +0 -38
- package/lib/services/aggregator.service.d.ts +0 -52
- package/lib/services/command-telemetry.service.d.ts +0 -71
- package/lib/services/console-extensions.service.d.ts +0 -10
- package/lib/services/dev-mode.service.d.ts +0 -7
- package/lib/services/freeze-frame.service.d.ts +0 -16
- package/lib/services/index.d.ts +0 -15
- package/lib/services/input.service.d.ts +0 -53
- package/lib/services/regions-ping.service.d.ts +0 -35
- package/lib/services/signalling.service.d.ts +0 -40
- package/lib/services/stream-status-telemetry.service.d.ts +0 -11
- package/lib/services/sub.service.d.ts +0 -5
- package/lib/services/unreal-communicator.service.d.ts +0 -38
- package/lib/services/video-stream-status.service.d.ts +0 -24
- package/lib/services/video.service.d.ts +0 -17
- package/lib/services/web-rtc-player.service.d.ts +0 -44
- package/lib/store/index.d.ts +0 -5
- package/lib/store/unreal.actions.d.ts +0 -176
- package/lib/store/unreal.effects.d.ts +0 -69
- package/lib/store/unreal.feature.d.ts +0 -32
- package/lib/store/unreal.reducer.d.ts +0 -44
- package/lib/store/unreal.selectors.d.ts +0 -30
- package/public-api.d.ts +0 -7
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class CommandTelemetryService {
|
|
3
|
-
private readonly appId;
|
|
4
|
-
private commandsSent;
|
|
5
|
-
private exileTimout;
|
|
6
|
-
private pollingTime;
|
|
7
|
-
private commandSequenceNumber;
|
|
8
|
-
/**
|
|
9
|
-
* The time the telemetry service was started.
|
|
10
|
-
* Initialized at a moment when connectToSignaling() was called.
|
|
11
|
-
* @private
|
|
12
|
-
*/
|
|
13
|
-
private startTime;
|
|
14
|
-
private lastTime;
|
|
15
|
-
private uuid;
|
|
16
|
-
private viewId;
|
|
17
|
-
private readonly sessionId;
|
|
18
|
-
private readonly userId;
|
|
19
|
-
private payloads;
|
|
20
|
-
private readonly httpClient;
|
|
21
|
-
private readonly unrealInitialConfig;
|
|
22
|
-
constructor();
|
|
23
|
-
private get timeNow();
|
|
24
|
-
private get sessionTime();
|
|
25
|
-
private get canSkipSending();
|
|
26
|
-
decorate(funcToDecorate: IToBeDecorated): (data: any) => void;
|
|
27
|
-
private start;
|
|
28
|
-
private reset;
|
|
29
|
-
private trackStartCommand;
|
|
30
|
-
private trackStopCommand;
|
|
31
|
-
private pushStatToBuffer;
|
|
32
|
-
private trackTime;
|
|
33
|
-
private send;
|
|
34
|
-
/**
|
|
35
|
-
* Listens for Unreal Engine callbacks.
|
|
36
|
-
* Subscribes to the Unreal Engine event loop back and filters out events that do not have a tracking ID.
|
|
37
|
-
* When a callback with a tracking ID is received,
|
|
38
|
-
* it stops tracking the time for that command and filters out commands
|
|
39
|
-
* that have exceeded the timeout limit.
|
|
40
|
-
*/
|
|
41
|
-
private listenCallbacks;
|
|
42
|
-
private pushData;
|
|
43
|
-
/**
|
|
44
|
-
* Removes commands that have exceeded the timeout limit.
|
|
45
|
-
* Iterates over all the commands sent and checks if the difference between the current time
|
|
46
|
-
* and the time the command was sent is greater than the timeout limit.
|
|
47
|
-
* If it is, the command is marked for deletion.
|
|
48
|
-
* After checking all commands, those marked for deletion are removed from the commands sent.
|
|
49
|
-
* This method is used to ensure that commands that are not responded to within a certain time frame
|
|
50
|
-
* do not remain in the commandsSent object indefinitely, which could lead to memory leaks over time.
|
|
51
|
-
*/
|
|
52
|
-
private removeExileCommands;
|
|
53
|
-
/**
|
|
54
|
-
* Wraps the provided function with telemetry tracking.
|
|
55
|
-
* Generates a unique tracking ID and adds it to the data object.
|
|
56
|
-
* Pushes the command sent to the payloads with the tracking ID.
|
|
57
|
-
* Starts tracking the time for the command.
|
|
58
|
-
* Finally, calls the provided function with the modified data object.
|
|
59
|
-
*
|
|
60
|
-
* @param {IToBeDecorated} funcToDecorate - The function to be decorated with telemetry tracking.
|
|
61
|
-
* @param {any} data - The data object to be passed to the function. It will be augmented with a unique tracking ID.
|
|
62
|
-
*/
|
|
63
|
-
private wrapper;
|
|
64
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CommandTelemetryService, never>;
|
|
65
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<CommandTelemetryService>;
|
|
66
|
-
}
|
|
67
|
-
type IToBeDecorated = (data: any) => unknown;
|
|
68
|
-
export declare function TelemetryStart(externalId: string): void;
|
|
69
|
-
export declare function TelemetryStop(externalId: string, payload?: any): void;
|
|
70
|
-
export declare function ResetTelemetry(): void;
|
|
71
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { SubService } from '../services';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class ConsoleExtensionsService extends SubService {
|
|
4
|
-
private httpClient;
|
|
5
|
-
private isDevMode;
|
|
6
|
-
init(): void;
|
|
7
|
-
private unrealHelp;
|
|
8
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ConsoleExtensionsService, never>;
|
|
9
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ConsoleExtensionsService>;
|
|
10
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { SubService } from './sub.service';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class FreezeFrameService extends SubService {
|
|
4
|
-
receiving: boolean;
|
|
5
|
-
private size;
|
|
6
|
-
private jpeg;
|
|
7
|
-
private freezeFrameOverlay;
|
|
8
|
-
init(): void;
|
|
9
|
-
setData(view: Uint8Array): void;
|
|
10
|
-
private dispatchInProgress;
|
|
11
|
-
start(view: Uint8Array): void;
|
|
12
|
-
invalidate(): void;
|
|
13
|
-
private showFreezeFrame;
|
|
14
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FreezeFrameService, never>;
|
|
15
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<FreezeFrameService>;
|
|
16
|
-
}
|
package/lib/services/index.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export * from './afk.service';
|
|
2
|
-
export * from './aggregator.service';
|
|
3
|
-
export * from './command-telemetry.service';
|
|
4
|
-
export * from './console-extensions.service';
|
|
5
|
-
export * from './dev-mode.service';
|
|
6
|
-
export * from './freeze-frame.service';
|
|
7
|
-
export * from './input.service';
|
|
8
|
-
export * from './regions-ping.service';
|
|
9
|
-
export * from './signalling.service';
|
|
10
|
-
export * from './stream-status-telemetry.service';
|
|
11
|
-
export * from './sub.service';
|
|
12
|
-
export * from './unreal-communicator.service';
|
|
13
|
-
export * from './video.service';
|
|
14
|
-
export * from './video-stream-status.service';
|
|
15
|
-
export * from './web-rtc-player.service';
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import type { IKeyCode } from '@3dsource/utils';
|
|
2
|
-
import { SubService } from '../services';
|
|
3
|
-
export declare class InputService extends SubService {
|
|
4
|
-
private commandsSender;
|
|
5
|
-
private isDevMode;
|
|
6
|
-
readonly defaultKeys: (17 | 37 | 38 | 39 | 40 | 46 | 65 | 68 | 83 | 87 | 107 | 109 | 187 | 189)[];
|
|
7
|
-
private availableKeys;
|
|
8
|
-
private options;
|
|
9
|
-
private reInit$;
|
|
10
|
-
private deactivatedVideoTrigger$;
|
|
11
|
-
private normalizeAndQuantizeUnsigned;
|
|
12
|
-
private unQuantizeAndDenormalizeUnsigned;
|
|
13
|
-
private normalizeAndQuantizeSigned;
|
|
14
|
-
video: HTMLVideoElement;
|
|
15
|
-
videoBoundingRect: DOMRect;
|
|
16
|
-
fingerIds: Map<any, any>;
|
|
17
|
-
maxByteValue: number;
|
|
18
|
-
fingers: number[];
|
|
19
|
-
private offsetParams;
|
|
20
|
-
constructor();
|
|
21
|
-
useKeyboardKeys(keys: IKeyCode[]): void;
|
|
22
|
-
private setup;
|
|
23
|
-
/**
|
|
24
|
-
* We use `object-fit: cover` on the video element. Since the video can have
|
|
25
|
-
* a different aspect ratio from its container (and potentially be larger),
|
|
26
|
-
* we need to calculate offsets and scale factors to map container (e.g., mouse)
|
|
27
|
-
* coordinates back to the actual video coordinates.
|
|
28
|
-
*
|
|
29
|
-
* @param videoElement The video element whose scaling and positioning we need
|
|
30
|
-
* @returns Object containing offset and scale info for coordinate normalization
|
|
31
|
-
* @private
|
|
32
|
-
*/
|
|
33
|
-
private getObjectFitOffset;
|
|
34
|
-
private setupNormalizeAndQuantize;
|
|
35
|
-
private sendInputData;
|
|
36
|
-
private registerInputs;
|
|
37
|
-
private getTouchPositionWithOffset;
|
|
38
|
-
private getMousePositionWithOffset;
|
|
39
|
-
private registerTouchEvents;
|
|
40
|
-
focusWindow(): void;
|
|
41
|
-
emitMouseMove(x: number, y: number, deltaX: number, deltaY: number): void;
|
|
42
|
-
emitMouseDown(button: number, x: number, y: number): void;
|
|
43
|
-
emitMouseUp(button: number, x: number, y: number): void;
|
|
44
|
-
emitMouseWheel(delta: number, x: number, y: number): void;
|
|
45
|
-
private releaseMouseButtons;
|
|
46
|
-
private pressMouseButtons;
|
|
47
|
-
private registerHoveringMouseEvents;
|
|
48
|
-
private registerMouseEnterAndLeaveEvents;
|
|
49
|
-
private isKeyCodeBrowserKey;
|
|
50
|
-
private getKeyCode;
|
|
51
|
-
private registerKeyboardEvents;
|
|
52
|
-
private startListenKeys;
|
|
53
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import type { Observable } from 'rxjs';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class RegionsPingService {
|
|
4
|
-
private httpClient;
|
|
5
|
-
private unrealInitialConfig;
|
|
6
|
-
config: {
|
|
7
|
-
ping_count: number;
|
|
8
|
-
ping_timeout: number;
|
|
9
|
-
max_parallel_requests: number;
|
|
10
|
-
bust_cache: boolean;
|
|
11
|
-
};
|
|
12
|
-
constructor();
|
|
13
|
-
getFastest(regionListUrl?: string): Observable<string | undefined>;
|
|
14
|
-
getPingResult(providers: ProvidersData): Observable<PingResult | null>;
|
|
15
|
-
getProviders(regionList?: string): Observable<ProvidersData>;
|
|
16
|
-
private startPinging;
|
|
17
|
-
private checkLatency;
|
|
18
|
-
private fetchWithTimeout;
|
|
19
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<RegionsPingService, never>;
|
|
20
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<RegionsPingService>;
|
|
21
|
-
}
|
|
22
|
-
interface ProvidersData {
|
|
23
|
-
timeout?: number;
|
|
24
|
-
regions: Region[];
|
|
25
|
-
}
|
|
26
|
-
interface Region {
|
|
27
|
-
region_code: string;
|
|
28
|
-
url: string;
|
|
29
|
-
timeout?: number;
|
|
30
|
-
}
|
|
31
|
-
interface PingResult {
|
|
32
|
-
region_code: string | undefined;
|
|
33
|
-
result: number[];
|
|
34
|
-
}
|
|
35
|
-
export {};
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { Subject } from 'rxjs';
|
|
2
|
-
import { SubService } from './sub.service';
|
|
3
|
-
import type { CloseReason, ConfigMessage, MessageBase } from '../interfaces';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class SignallingService extends SubService {
|
|
6
|
-
private readonly httpClient;
|
|
7
|
-
private readonly regionsPingService;
|
|
8
|
-
onConfig$: Subject<ConfigMessage>;
|
|
9
|
-
onWebRtcIce$: Subject<RTCIceCandidate>;
|
|
10
|
-
onWebRtcAnswer$: Subject<RTCSessionDescriptionInit | null>;
|
|
11
|
-
private ws;
|
|
12
|
-
protected wsTimeoutHandler: ReturnType<typeof setTimeout>;
|
|
13
|
-
private wsMsgHandlers;
|
|
14
|
-
protected correlationId: string;
|
|
15
|
-
protected environmentId: string;
|
|
16
|
-
private establishingConnection;
|
|
17
|
-
private isCirrusConnected;
|
|
18
|
-
private establishingConnectionDrop$;
|
|
19
|
-
constructor();
|
|
20
|
-
protected initEstablishingConnection(): void;
|
|
21
|
-
private stopEstablishingConnection;
|
|
22
|
-
private connectToSignaling;
|
|
23
|
-
private connectToSignalingAfterPing;
|
|
24
|
-
showStatusMessage(message: string | null): void;
|
|
25
|
-
/**
|
|
26
|
-
* Close the connection with the signaling server
|
|
27
|
-
* @param data
|
|
28
|
-
*/
|
|
29
|
-
close(data: CloseReason | void): void;
|
|
30
|
-
send(data: string | object): void;
|
|
31
|
-
protected watchTimeoutOrErrorAndReconnectLater(): void;
|
|
32
|
-
protected stopRetryTimer(): void;
|
|
33
|
-
private initWebSocket;
|
|
34
|
-
private httpUrlToWs;
|
|
35
|
-
private clearWs;
|
|
36
|
-
protected handleMessage(msg: MessageBase): void;
|
|
37
|
-
private setHandlersFromStream;
|
|
38
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SignallingService, never>;
|
|
39
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<SignallingService>;
|
|
40
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class StreamStatusTelemetryService {
|
|
3
|
-
#private;
|
|
4
|
-
constructor();
|
|
5
|
-
private mapEventData;
|
|
6
|
-
private initTelemetry;
|
|
7
|
-
private trackEventToMixPanel;
|
|
8
|
-
init(): void;
|
|
9
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<StreamStatusTelemetryService, never>;
|
|
10
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<StreamStatusTelemetryService>;
|
|
11
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import type { MetaBoxCommandPacket } from '@3dsource/types-unreal';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class UnrealCommunicatorService {
|
|
4
|
-
private telemetry;
|
|
5
|
-
private afkService;
|
|
6
|
-
private freezeFrame;
|
|
7
|
-
private webrtcPlayer;
|
|
8
|
-
private videoService;
|
|
9
|
-
private consoleExtensions;
|
|
10
|
-
private store;
|
|
11
|
-
private destroy$;
|
|
12
|
-
private cirrusConnected;
|
|
13
|
-
constructor();
|
|
14
|
-
destroy(): void;
|
|
15
|
-
sendCommandToUnreal(data: MetaBoxCommandPacket): void;
|
|
16
|
-
emitUIInteraction(descriptor: MetaBoxCommandPacket): void;
|
|
17
|
-
/**
|
|
18
|
-
A build-in command can be sent to the UE4 client. The commands are defined by a
|
|
19
|
-
JSON descriptor and will be executed automatically.
|
|
20
|
-
The currently supported commands are:
|
|
21
|
-
|
|
22
|
-
1. A command to run any console command:
|
|
23
|
-
"{ ConsoleCommand: <string> }"
|
|
24
|
-
|
|
25
|
-
2. A command to change the resolution to the given width and height.
|
|
26
|
-
"{ Resolution.Width: <value>, Resolution.Height: <value> } }"
|
|
27
|
-
*/
|
|
28
|
-
emitCommand(descriptor: MetaBoxCommandPacket): void;
|
|
29
|
-
sendInputData(data: ArrayBuffer): void;
|
|
30
|
-
private emitDescriptor;
|
|
31
|
-
private requestInitialSettings;
|
|
32
|
-
private requestQualityControl;
|
|
33
|
-
private listenVideo;
|
|
34
|
-
private prepareScreen;
|
|
35
|
-
private showPlayOverlay;
|
|
36
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<UnrealCommunicatorService, never>;
|
|
37
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<UnrealCommunicatorService>;
|
|
38
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import type { IAggregatedStat } from '../interfaces';
|
|
2
|
-
import type { Observable } from 'rxjs';
|
|
3
|
-
import { LatencyTimings } from '../helpers';
|
|
4
|
-
import { SubService } from './sub.service';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class VideoStreamStatusService extends SubService {
|
|
7
|
-
readonly latencyTestTimings: LatencyTimings;
|
|
8
|
-
private readonly webrtcPlayer;
|
|
9
|
-
private aggregatedStats;
|
|
10
|
-
private VideoEncoderQP;
|
|
11
|
-
private kalmanFilter1D;
|
|
12
|
-
readonly videoStats$: Observable<IAggregatedStat>;
|
|
13
|
-
constructor();
|
|
14
|
-
/**
|
|
15
|
-
* Aggregate video stats and emit it as videoStats$
|
|
16
|
-
*/
|
|
17
|
-
private aggregateStats;
|
|
18
|
-
setEncoder(data: any): void;
|
|
19
|
-
private getStats;
|
|
20
|
-
private generateAggregatedStatsFunction;
|
|
21
|
-
private onAggregatedStats;
|
|
22
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<VideoStreamStatusService, never>;
|
|
23
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<VideoStreamStatusService>;
|
|
24
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { SubService } from './sub.service';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class VideoService extends SubService {
|
|
4
|
-
video: HTMLVideoElement | null;
|
|
5
|
-
audio: HTMLAudioElement | null;
|
|
6
|
-
container: HTMLDivElement | null;
|
|
7
|
-
create(): void;
|
|
8
|
-
private destroy;
|
|
9
|
-
private createWebRtcVideo;
|
|
10
|
-
attachVideoStream(stream: MediaStream): void;
|
|
11
|
-
attachAudioStream(stream: MediaStream): void;
|
|
12
|
-
private createWebRtcAudio;
|
|
13
|
-
private playAudio;
|
|
14
|
-
play(): void;
|
|
15
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<VideoService, never>;
|
|
16
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<VideoService>;
|
|
17
|
-
}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { Subject } from 'rxjs';
|
|
2
|
-
import { SubService } from './sub.service';
|
|
3
|
-
import type { ConfigMessage } from '../interfaces';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class WebRtcPlayerService extends SubService {
|
|
6
|
-
pcClient: RTCPeerConnection | null;
|
|
7
|
-
onAudioTrack$: Subject<MediaStream>;
|
|
8
|
-
onVideoTrack$: Subject<MediaStream>;
|
|
9
|
-
onDataChannelMessage$: Subject<number[]>;
|
|
10
|
-
onWebRtcCandidate$: Subject<RTCIceCandidate>;
|
|
11
|
-
onWebRtcOffer$: Subject<RTCSessionDescriptionInit>;
|
|
12
|
-
private cfg;
|
|
13
|
-
private useMic;
|
|
14
|
-
private forceTURN;
|
|
15
|
-
private preferSFU;
|
|
16
|
-
private autoPlayAudio;
|
|
17
|
-
private startVideoMuted;
|
|
18
|
-
private forceMonoAudio;
|
|
19
|
-
private forceMaxBundle;
|
|
20
|
-
private dcClient;
|
|
21
|
-
private sdpConstraints;
|
|
22
|
-
private dataChannelOptions;
|
|
23
|
-
private webRtcErrorTimeout;
|
|
24
|
-
createWebRtcOffer(): Promise<void>;
|
|
25
|
-
private dispatchWebRtcError;
|
|
26
|
-
private createOffer;
|
|
27
|
-
createDataChannel(pc: RTCPeerConnection, label: string, options: RTCDataChannelInit): RTCDataChannel | null;
|
|
28
|
-
private setupTransceiversAsync;
|
|
29
|
-
private setupDataChannelCallbacks;
|
|
30
|
-
private onDataChannelConnected;
|
|
31
|
-
private handleCreateOffer;
|
|
32
|
-
receiveAnswer(answer: RTCSessionDescriptionInit): void;
|
|
33
|
-
handleCandidateFromServer(iceCandidate: RTCIceCandidate): void;
|
|
34
|
-
mungeSDP(offer: RTCSessionDescriptionInit): void;
|
|
35
|
-
/**
|
|
36
|
-
* Closes existing PeerConnection
|
|
37
|
-
*/
|
|
38
|
-
closePC(): void;
|
|
39
|
-
canSend(): boolean | null;
|
|
40
|
-
send(data: ArrayBuffer): void;
|
|
41
|
-
setConfig(parOptions?: ConfigMessage): void;
|
|
42
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<WebRtcPlayerService, never>;
|
|
43
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<WebRtcPlayerService>;
|
|
44
|
-
}
|
package/lib/store/index.d.ts
DELETED
|
@@ -1,176 +0,0 @@
|
|
|
1
|
-
import { DisconnectType, LBMStats, SignalingData, StreamConfig, UnrealErrorType } from '../interfaces';
|
|
2
|
-
export declare const trackMixpanelEvent: import("@ngrx/store").ActionCreator<string, (props: {
|
|
3
|
-
event: string;
|
|
4
|
-
data?: unknown;
|
|
5
|
-
}) => {
|
|
6
|
-
event: string;
|
|
7
|
-
data?: unknown;
|
|
8
|
-
} & import("@ngrx/store").Action<string>>;
|
|
9
|
-
export declare const changeLowBandwidth: import("@ngrx/store").ActionCreator<string, (props: {
|
|
10
|
-
lowBandwidth: boolean;
|
|
11
|
-
stats?: LBMStats;
|
|
12
|
-
}) => {
|
|
13
|
-
lowBandwidth: boolean;
|
|
14
|
-
stats?: LBMStats;
|
|
15
|
-
} & import("@ngrx/store").Action<string>>;
|
|
16
|
-
export declare const setMaxFps: import("@ngrx/store").ActionCreator<string, (props: {
|
|
17
|
-
maxFps: number;
|
|
18
|
-
}) => {
|
|
19
|
-
maxFps: number;
|
|
20
|
-
} & import("@ngrx/store").Action<string>>;
|
|
21
|
-
export declare const destroyRemoteConnections: import("@ngrx/store").ActionCreator<string, (props: {
|
|
22
|
-
disconnectReason: DisconnectType;
|
|
23
|
-
}) => {
|
|
24
|
-
disconnectReason: DisconnectType;
|
|
25
|
-
} & import("@ngrx/store").Action<string>>;
|
|
26
|
-
export declare const destroyConnectionsAndResetState: import("@ngrx/store").ActionCreator<string, () => import("@ngrx/store").Action<string>>;
|
|
27
|
-
export declare const setCirrusConnected: import("@ngrx/store").ActionCreator<string, () => import("@ngrx/store").Action<string>>;
|
|
28
|
-
export declare const setCirrusDisconnected: import("@ngrx/store").ActionCreator<string, () => import("@ngrx/store").Action<string>>;
|
|
29
|
-
export declare const changeStatusMainVideoOnScene: import("@ngrx/store").ActionCreator<string, (props: {
|
|
30
|
-
isVideoPlaying: boolean;
|
|
31
|
-
}) => {
|
|
32
|
-
isVideoPlaying: boolean;
|
|
33
|
-
} & import("@ngrx/store").Action<string>>;
|
|
34
|
-
export declare const setAwsInstance: import("@ngrx/store").ActionCreator<string, (props: {
|
|
35
|
-
wsUrl: string | null;
|
|
36
|
-
pollingUrl: string | null;
|
|
37
|
-
instanceName: string | null;
|
|
38
|
-
}) => {
|
|
39
|
-
wsUrl: string | null;
|
|
40
|
-
pollingUrl: string | null;
|
|
41
|
-
instanceName: string | null;
|
|
42
|
-
} & import("@ngrx/store").Action<string>>;
|
|
43
|
-
export declare const setStatusMessage: import("@ngrx/store").ActionCreator<string, (props: {
|
|
44
|
-
message: string | null;
|
|
45
|
-
}) => {
|
|
46
|
-
message: string | null;
|
|
47
|
-
} & import("@ngrx/store").Action<string>>;
|
|
48
|
-
export declare const setStatusPercentSignallingServer: import("@ngrx/store").ActionCreator<string, (props: {
|
|
49
|
-
percent: number | null;
|
|
50
|
-
}) => {
|
|
51
|
-
percent: number | null;
|
|
52
|
-
} & import("@ngrx/store").Action<string>>;
|
|
53
|
-
export declare const setFreezeFrame: import("@ngrx/store").ActionCreator<string, (props: {
|
|
54
|
-
dataUrl: string | null;
|
|
55
|
-
progress: number | null;
|
|
56
|
-
}) => {
|
|
57
|
-
dataUrl: string | null;
|
|
58
|
-
progress: number | null;
|
|
59
|
-
} & import("@ngrx/store").Action<string>>;
|
|
60
|
-
export declare const setMatchUrls: import("@ngrx/store").ActionCreator<string, (props: {
|
|
61
|
-
urls: string[];
|
|
62
|
-
}) => {
|
|
63
|
-
urls: string[];
|
|
64
|
-
} & import("@ngrx/store").Action<string>>;
|
|
65
|
-
export declare const setStreamClientCompanyId: import("@ngrx/store").ActionCreator<string, (props: {
|
|
66
|
-
id: string;
|
|
67
|
-
}) => {
|
|
68
|
-
id: string;
|
|
69
|
-
} & import("@ngrx/store").Action<string>>;
|
|
70
|
-
export declare const setStreamViewId: import("@ngrx/store").ActionCreator<string, (props: {
|
|
71
|
-
id: string;
|
|
72
|
-
}) => {
|
|
73
|
-
id: string;
|
|
74
|
-
} & import("@ngrx/store").Action<string>>;
|
|
75
|
-
export declare const setIntroImageSrc: import("@ngrx/store").ActionCreator<string, (props: {
|
|
76
|
-
src: string;
|
|
77
|
-
}) => {
|
|
78
|
-
src: string;
|
|
79
|
-
} & import("@ngrx/store").Action<string>>;
|
|
80
|
-
export declare const setLoadingImageSrc: import("@ngrx/store").ActionCreator<string, (props: {
|
|
81
|
-
src: string;
|
|
82
|
-
}) => {
|
|
83
|
-
src: string;
|
|
84
|
-
} & import("@ngrx/store").Action<string>>;
|
|
85
|
-
export declare const setIntroVideoSrc: import("@ngrx/store").ActionCreator<string, (props: {
|
|
86
|
-
src: string;
|
|
87
|
-
}) => {
|
|
88
|
-
src: string;
|
|
89
|
-
} & import("@ngrx/store").Action<string>>;
|
|
90
|
-
export declare const resetIntroSrc: import("@ngrx/store").ActionCreator<string, () => import("@ngrx/store").Action<string>>;
|
|
91
|
-
export declare const setFreezeFrameFromVideo: import("@ngrx/store").ActionCreator<string, (props: {
|
|
92
|
-
dataUrl: string | null;
|
|
93
|
-
progress: number | null;
|
|
94
|
-
}) => {
|
|
95
|
-
dataUrl: string | null;
|
|
96
|
-
progress: number | null;
|
|
97
|
-
} & import("@ngrx/store").Action<string>>;
|
|
98
|
-
export declare const setEstablishingConnection: import("@ngrx/store").ActionCreator<string, (props: {
|
|
99
|
-
value: boolean;
|
|
100
|
-
}) => {
|
|
101
|
-
value: boolean;
|
|
102
|
-
} & import("@ngrx/store").Action<string>>;
|
|
103
|
-
export declare const setDataChannelConnected: import("@ngrx/store").ActionCreator<string, (props: {
|
|
104
|
-
value: boolean;
|
|
105
|
-
}) => {
|
|
106
|
-
value: boolean;
|
|
107
|
-
} & import("@ngrx/store").Action<string>>;
|
|
108
|
-
export declare const setConfig: import("@ngrx/store").ActionCreator<string, (props: {
|
|
109
|
-
config: Partial<StreamConfig>;
|
|
110
|
-
}) => {
|
|
111
|
-
config: Partial<StreamConfig>;
|
|
112
|
-
} & import("@ngrx/store").Action<string>>;
|
|
113
|
-
export declare const setErrorMessage: import("@ngrx/store").ActionCreator<string, (props: {
|
|
114
|
-
errorType: UnrealErrorType;
|
|
115
|
-
message: string;
|
|
116
|
-
}) => {
|
|
117
|
-
errorType: UnrealErrorType;
|
|
118
|
-
message: string;
|
|
119
|
-
} & import("@ngrx/store").Action<string>>;
|
|
120
|
-
export declare const setViewportReady: import("@ngrx/store").ActionCreator<string, (props: {
|
|
121
|
-
value: boolean;
|
|
122
|
-
}) => {
|
|
123
|
-
value: boolean;
|
|
124
|
-
} & import("@ngrx/store").Action<string>>;
|
|
125
|
-
export declare const changeStreamResolutionAction: import("@ngrx/store").ActionCreator<string, (props: {
|
|
126
|
-
width: number | null;
|
|
127
|
-
height: number | null;
|
|
128
|
-
}) => {
|
|
129
|
-
width: number | null;
|
|
130
|
-
height: number | null;
|
|
131
|
-
} & import("@ngrx/store").Action<string>>;
|
|
132
|
-
export declare const changeStreamResolutionSuccessAction: import("@ngrx/store").ActionCreator<string, (props: {
|
|
133
|
-
width: number | null;
|
|
134
|
-
height: number | null;
|
|
135
|
-
}) => {
|
|
136
|
-
width: number | null;
|
|
137
|
-
height: number | null;
|
|
138
|
-
} & import("@ngrx/store").Action<string>>;
|
|
139
|
-
export declare const setSignalingName: import("@ngrx/store").ActionCreator<string, (props: {
|
|
140
|
-
instanceName: string;
|
|
141
|
-
}) => {
|
|
142
|
-
instanceName: string;
|
|
143
|
-
} & import("@ngrx/store").Action<string>>;
|
|
144
|
-
export declare const updateCirrusInfo: import("@ngrx/store").ActionCreator<string, (props: {
|
|
145
|
-
ssInfo: string;
|
|
146
|
-
ssData: SignalingData;
|
|
147
|
-
}) => {
|
|
148
|
-
ssInfo: string;
|
|
149
|
-
ssData: SignalingData;
|
|
150
|
-
} & import("@ngrx/store").Action<string>>;
|
|
151
|
-
export declare const commandStarted: import("@ngrx/store").ActionCreator<string, (props: {
|
|
152
|
-
id: string;
|
|
153
|
-
command: string;
|
|
154
|
-
}) => {
|
|
155
|
-
id: string;
|
|
156
|
-
command: string;
|
|
157
|
-
} & import("@ngrx/store").Action<string>>;
|
|
158
|
-
export declare const commandCompleted: import("@ngrx/store").ActionCreator<string, (props: {
|
|
159
|
-
id: string;
|
|
160
|
-
}) => {
|
|
161
|
-
id: string;
|
|
162
|
-
} & import("@ngrx/store").Action<string>>;
|
|
163
|
-
export declare const setLoopBackCommandIsCompleted: import("@ngrx/store").ActionCreator<string, () => import("@ngrx/store").Action<string>>;
|
|
164
|
-
export declare const showUnrealErrorMessage: import("@ngrx/store").ActionCreator<string, (props: {
|
|
165
|
-
code: number | null;
|
|
166
|
-
error?: string;
|
|
167
|
-
}) => {
|
|
168
|
-
code: number | null;
|
|
169
|
-
error?: string;
|
|
170
|
-
} & import("@ngrx/store").Action<string>>;
|
|
171
|
-
export declare const initSignalling: import("@ngrx/store").ActionCreator<string, () => import("@ngrx/store").Action<string>>;
|
|
172
|
-
export declare const resetConfig: import("@ngrx/store").ActionCreator<string, () => import("@ngrx/store").Action<string>>;
|
|
173
|
-
export declare const resetAfkAction: import("@ngrx/store").ActionCreator<string, () => import("@ngrx/store").Action<string>>;
|
|
174
|
-
export declare const resetWarnTimeout: import("@ngrx/store").ActionCreator<string, () => import("@ngrx/store").Action<string>>;
|
|
175
|
-
export declare const resetUnrealStateAction: import("@ngrx/store").ActionCreator<string, () => import("@ngrx/store").Action<string>>;
|
|
176
|
-
export declare const resetUnrealState: import("@ngrx/store").ActionCreator<string, () => import("@ngrx/store").Action<string>>;
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class UnrealEffects {
|
|
3
|
-
private dialog;
|
|
4
|
-
private http;
|
|
5
|
-
private store;
|
|
6
|
-
private isDevMode;
|
|
7
|
-
private unrealInitialConfig;
|
|
8
|
-
private actions$;
|
|
9
|
-
private player;
|
|
10
|
-
private signallingService;
|
|
11
|
-
private scrollStrategy;
|
|
12
|
-
private commandsSender;
|
|
13
|
-
private videoStatGenerator;
|
|
14
|
-
cirrusDisconnectEffect$: import("rxjs").Observable<import("@ngrx/store").Action<string>> & import("@ngrx/effects").CreateEffectMetadata;
|
|
15
|
-
destroyConnections$: import("rxjs").Observable<{
|
|
16
|
-
disconnectReason: import("../interfaces").DisconnectType;
|
|
17
|
-
} & import("@ngrx/store").Action<string>> & import("@ngrx/effects").CreateEffectMetadata;
|
|
18
|
-
resetState$: import("rxjs").Observable<import("@ngrx/store").Action<string>> & import("@ngrx/effects").CreateEffectMetadata;
|
|
19
|
-
destroyRemoteConnections$: import("rxjs").Observable<{
|
|
20
|
-
disconnectReason: import("../interfaces").DisconnectType;
|
|
21
|
-
} & import("@ngrx/store").Action<string>> & import("@ngrx/effects").CreateEffectMetadata;
|
|
22
|
-
changeStreamResolution$: import("rxjs").Observable<{
|
|
23
|
-
width: number | null;
|
|
24
|
-
height: number | null;
|
|
25
|
-
} & import("@ngrx/store").Action<string>> & import("@ngrx/effects").CreateEffectMetadata;
|
|
26
|
-
forceLBMOff$: import("rxjs").Observable<{
|
|
27
|
-
lowBandwidth: boolean;
|
|
28
|
-
stats?: import("../interfaces").LBMStats;
|
|
29
|
-
} & import("@ngrx/store").Action<string>> & import("@ngrx/effects").CreateEffectMetadata;
|
|
30
|
-
resetFreezeFrameOnLowBandwidthTriggered$: import("rxjs").Observable<{
|
|
31
|
-
dataUrl: string | null;
|
|
32
|
-
progress: number | null;
|
|
33
|
-
} & import("@ngrx/store").Action<string>> & import("@ngrx/effects").CreateEffectMetadata;
|
|
34
|
-
sendLbmStat$: import("rxjs").Subscription;
|
|
35
|
-
resetAfk$: import("rxjs").Observable<import("@ngrx/store").Action<string>> & import("@ngrx/effects").CreateEffectMetadata;
|
|
36
|
-
resetFreezeFrameOnViewportDestroy$: import("rxjs").Observable<{
|
|
37
|
-
dataUrl: string | null;
|
|
38
|
-
progress: number | null;
|
|
39
|
-
} & import("@ngrx/store").Action<string>> & import("@ngrx/effects").CreateEffectMetadata;
|
|
40
|
-
setMaxFps$: import("rxjs").Observable<{
|
|
41
|
-
maxFps: number;
|
|
42
|
-
} & import("@ngrx/store").Action<string>> & import("@ngrx/effects").CreateEffectMetadata;
|
|
43
|
-
webrtcErrorModalComponent$: import("rxjs").Observable<[arg: {
|
|
44
|
-
errorType: import("../interfaces").UnrealErrorType;
|
|
45
|
-
message: string;
|
|
46
|
-
} & import("@ngrx/store").Action<string>, boolean]> & import("@ngrx/effects").CreateEffectMetadata;
|
|
47
|
-
resetAfkAction$: import("rxjs").Observable<import("@ngrx/store").Action<string>> & import("@ngrx/effects").CreateEffectMetadata;
|
|
48
|
-
setDataChannelTimeoutCheck$: import("rxjs").Observable<{
|
|
49
|
-
disconnectReason: import("../interfaces").DisconnectType;
|
|
50
|
-
} & import("@ngrx/store").Action<string>> & import("@ngrx/effects").CreateEffectMetadata;
|
|
51
|
-
destroyConnectionAndRestart$: import("rxjs").Observable<import("@ngrx/store").Action<string>> & import("@ngrx/effects").CreateEffectMetadata;
|
|
52
|
-
showUnrealError$: import("rxjs").Observable<{
|
|
53
|
-
code: number | null;
|
|
54
|
-
error?: string;
|
|
55
|
-
} & import("@ngrx/store").Action<string>> & import("@ngrx/effects").CreateEffectMetadata;
|
|
56
|
-
sendStatisticsToUnreal$: import("rxjs").Observable<void> & import("@ngrx/effects").CreateEffectMetadata;
|
|
57
|
-
initAppBySetDataChannelConnected$: import("rxjs").Observable<import("@ngrx/store").Action<string>> & import("@ngrx/effects").CreateEffectMetadata;
|
|
58
|
-
setViewportReadyBySetLoopBackCommandIsCompleted$: import("rxjs").Observable<{
|
|
59
|
-
value: boolean;
|
|
60
|
-
} & import("@ngrx/store").Action<string>> & import("@ngrx/effects").CreateEffectMetadata;
|
|
61
|
-
listenUnrealCallbackByInitSignalling$: import("rxjs").Observable<{
|
|
62
|
-
id: string;
|
|
63
|
-
} & import("@ngrx/store").Action<string>> & import("@ngrx/effects").CreateEffectMetadata;
|
|
64
|
-
setConfigByInitSignalling$: import("rxjs").Observable<{
|
|
65
|
-
config: Partial<import("../interfaces").StreamConfig>;
|
|
66
|
-
} & import("@ngrx/store").Action<string>> & import("@ngrx/effects").CreateEffectMetadata;
|
|
67
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<UnrealEffects, never>;
|
|
68
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<UnrealEffects>;
|
|
69
|
-
}
|