@3dsource/angular-unreal-module 0.0.133 → 0.0.135
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/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { ElementRef, InjectionToken, DestroyRef, OnInit, PipeTransform } from '@angular/core';
|
|
2
|
+
import { ElementRef, Signal, InjectionToken, DestroyRef, OnInit, PipeTransform } from '@angular/core';
|
|
3
3
|
import * as _3dsource_angular_unreal_module from '@3dsource/angular-unreal-module';
|
|
4
4
|
import * as rxjs from 'rxjs';
|
|
5
|
-
import {
|
|
5
|
+
import { Subject, Observable, Subscription, OperatorFunction } from 'rxjs';
|
|
6
6
|
import * as _ngrx_store from '@ngrx/store';
|
|
7
7
|
import { Store } from '@ngrx/store';
|
|
8
8
|
import * as _ngrx_effects from '@ngrx/effects';
|
|
@@ -125,7 +125,7 @@ declare class IntroSrcComponent {
|
|
|
125
125
|
interface GraphListItem {
|
|
126
126
|
key: string;
|
|
127
127
|
color: string;
|
|
128
|
-
stat:
|
|
128
|
+
stat: Signal<{
|
|
129
129
|
value: number;
|
|
130
130
|
}>;
|
|
131
131
|
}
|
|
@@ -134,25 +134,19 @@ declare class VideoStatsComponent {
|
|
|
134
134
|
private readonly store;
|
|
135
135
|
private readonly videoService;
|
|
136
136
|
private readonly isDevMode;
|
|
137
|
-
private readonly
|
|
138
|
-
readonly viewportReady:
|
|
139
|
-
readonly ssData:
|
|
140
|
-
readonly fpsTick:
|
|
137
|
+
private readonly stats;
|
|
138
|
+
readonly viewportReady: Signal<boolean>;
|
|
139
|
+
readonly ssData: Signal<string>;
|
|
140
|
+
readonly fpsTick: Signal<{
|
|
141
141
|
value: number;
|
|
142
|
-
}
|
|
143
|
-
readonly
|
|
144
|
-
value: number;
|
|
145
|
-
} | undefined>;
|
|
146
|
-
readonly bitrateTick: i0.Signal<{
|
|
147
|
-
value: number;
|
|
148
|
-
} | undefined>;
|
|
149
|
-
readonly videoQP: i0.Signal<{
|
|
142
|
+
}>;
|
|
143
|
+
readonly bitrateTick: Signal<{
|
|
150
144
|
value: number;
|
|
151
|
-
}
|
|
152
|
-
readonly
|
|
145
|
+
}>;
|
|
146
|
+
readonly videoQP: Signal<{
|
|
153
147
|
value: number;
|
|
154
|
-
}
|
|
155
|
-
readonly videoStatus:
|
|
148
|
+
}>;
|
|
149
|
+
readonly videoStatus: Signal<{
|
|
156
150
|
key: string;
|
|
157
151
|
value: string | number | Record<string, string> | _3dsource_angular_unreal_module.DataFlowCheckResult | {
|
|
158
152
|
local: {
|
|
@@ -169,7 +163,7 @@ declare class VideoStatsComponent {
|
|
|
169
163
|
private readonly elementsToShow;
|
|
170
164
|
private readonly idKey;
|
|
171
165
|
private readonly graphListItems;
|
|
172
|
-
readonly graphList:
|
|
166
|
+
readonly graphList: Signal<GraphListItem[]>;
|
|
173
167
|
constructor();
|
|
174
168
|
toggle(): void;
|
|
175
169
|
toggleGraph($event: MouseEvent, el: string, value?: unknown): void;
|
|
@@ -820,6 +814,14 @@ declare class InputService extends SubService {
|
|
|
820
814
|
private fingerIds;
|
|
821
815
|
private maxByteValue;
|
|
822
816
|
private fingers;
|
|
817
|
+
private readonly mouseMoveView;
|
|
818
|
+
private readonly mouseButtonView;
|
|
819
|
+
private readonly mouseWheelView;
|
|
820
|
+
private readonly touchView;
|
|
821
|
+
private readonly keyPressView;
|
|
822
|
+
private readonly singleByteView;
|
|
823
|
+
private readonly keyDownBytes;
|
|
824
|
+
private readonly keyUpBytes;
|
|
823
825
|
private offsetParams;
|
|
824
826
|
constructor();
|
|
825
827
|
protected init(): void;
|
|
@@ -1801,6 +1803,21 @@ declare class LatencyTimings {
|
|
|
1801
1803
|
|
|
1802
1804
|
declare function qpToQuality(VideoEncoderQP: number): Quality;
|
|
1803
1805
|
|
|
1806
|
+
/**
|
|
1807
|
+
* Base64-encodes a byte array.
|
|
1808
|
+
*
|
|
1809
|
+
* Builds the intermediate binary string in fixed-size chunks instead of
|
|
1810
|
+
* concatenating one character at a time. The naive `bytes.reduce((s, b) => s +
|
|
1811
|
+
* String.fromCharCode(b), '')` is O(n²) (each `+` re-copies the growing string)
|
|
1812
|
+
* and stalls the main thread for a full-resolution frame; chunking keeps it
|
|
1813
|
+
* O(n). The chunk size stays under the argument-count limit of
|
|
1814
|
+
* `String.fromCharCode.apply`/spread.
|
|
1815
|
+
*
|
|
1816
|
+
* @param bytes - The raw bytes to encode.
|
|
1817
|
+
* @returns The Base64 representation of `bytes`.
|
|
1818
|
+
*/
|
|
1819
|
+
declare function uint8ToBase64(bytes: Uint8Array): string;
|
|
1820
|
+
|
|
1804
1821
|
declare function fromResizeObserver(elem: HTMLElement): Observable<ResizeObserverEntry[]>;
|
|
1805
1822
|
|
|
1806
1823
|
/**
|
|
@@ -1943,7 +1960,9 @@ interface DataFlowCheckResult {
|
|
|
1943
1960
|
activeMedian: number;
|
|
1944
1961
|
quality: Quality;
|
|
1945
1962
|
message: string;
|
|
1946
|
-
|
|
1963
|
+
/** Optional diagnostic snapshot — only populated on demand to avoid a
|
|
1964
|
+
* per-tick array copy on this 4 Hz hot path. */
|
|
1965
|
+
dataHistory?: number[];
|
|
1947
1966
|
config: {
|
|
1948
1967
|
yellowFlagThresholdPercentage: number;
|
|
1949
1968
|
redFlagThresholdPercentage: number;
|
|
@@ -2731,5 +2750,5 @@ declare const selectUserInactivityDetected: _ngrx_store.MemoizedSelector<Record<
|
|
|
2731
2750
|
/** Used by external consumers (e.g., metabox). Do not remove. */
|
|
2732
2751
|
declare const selectIsVideoPlayingAndDataChannelConnected: _ngrx_store.MemoizedSelector<Record<string, any>, boolean, (s1: boolean, s2: boolean) => boolean>;
|
|
2733
2752
|
|
|
2734
|
-
export { AFKService, AUTO_HIGH_RESOLUTION_IDLE_MS, AfkTimeoutModalComponent, AggregatorService, AnalyticsService, AnswerHandler, CONSOLE_COMMAND_DISABLE_MESSAGES, CONSOLE_COMMAND_ENABLE_MESSAGES, CONSOLE_COMMAND_PIXEL_QUALITY, CommandTelemetryService, ConfigHandler, ConsoleExtensionsService, ControlScheme, DATA_CHANNEL_CONNECTION_TIMEOUT, DEBOUNCE_TO_MANY_RESIZE_CALLS, DEFAULT_AFK_TIMEOUT, DEFAULT_AFK_TIMEOUT_PERIOD, DEFAULT_RECONNECT_DELAY_MS, DEFAULT_RECONNECT_ENABLED, DEFAULT_RECONNECT_MAX_ATTEMPTS, DEFAULT_RECONNECT_ON_DATACHANNEL_CLOSE, DEFAULT_RECONNECT_ON_ICE_FAILURE, DESTROY_DISCONNECT_REASONS, DataFlowMonitor, DevModeService, DisconnectReason, FULL_HD_HEIGHT, FULL_HD_WIDTH, FileHandlerService, FileReceiverService, FilterSettingsComponent, FpsMonitorService, FreezeFrameComponent, FreezeFrameService, INNER_RETRY_LIMIT, IceCandidateHandler, ImageLoadingSrcComponent, InputOptions, InputService, InstanceReadyHandler, InstanceReservedHandler, IntroSrcComponent, KalmanFilter1D, LatencyTimings, LoadingProgressService, LowBandwidthDetectorComponent, LowBandwidthModalComponent, MINIMAL_FPS, MIN_CONTAINER_SIZE, MessageType, MouseButton, MouseButtonsMask, OUTER_RETRY_DELAY, OnCloseHandler, OnErrorHandler, OnMessageHandler, OnOpenHandler, OrchestrationMessageTypes, POLLING_TIME, PingHandler, PlayerCountHandler, RegionsPingService, SAME_SIZE_THRESHOLD, SCREEN_LOCKER_CONTAINER_ID, SIGNALLING_PERCENT_VALUE, SSInfoHandler, STREAMING_AUDIO_ID, STREAMING_VIDEO_ID, SafePipe, SignallingService, SpecialKeyCodes, StatGraphComponent, StreamStatusTelemetryService, StreamStatusTelemetryService2, SubService, ToClientMessage, UNREAL_CONFIG, UnrealCallbackService, UnrealCommunicatorService, UnrealEffects, UnrealSceneComponent, UnrealStatusMessage, VideoService, VideoStatsComponent, WSCloseCode_CIRRUS_ABNORMAL_CLOSURE, WSCloseCode_CIRRUS_MAX_PLAYERS_ERROR, WSCloseCode_CIRRUS_PLAYER_DISCONNECTED, WSCloseCode_CIRRUS_STREAMER_KIKED_PLAYER, WSCloseCode_FORCE_CIRRUS_CLOSE, WSCloseCode_NORMAL_AFK_TIMEOUT, WSCloseCode_NORMAL_CLOSURE, WSCloseCode_NORMAL_MANUAL_DISCONNECT, WSCloseCode_UNKNOWN, WSCloseCodes, WS_OPEN_STATE, WS_RETRY_PER_INSTANCE, WS_TIMEOUT, WebRtcPlayerService, WebrtcErrorModalComponent, abortEstablishingConnection, answerSent, changeStatusMainVideoOnScene, changeStreamResolutionAction, commandCompleted, commandStarted, dataChannelConnected, dataChannelReady, decodeData, destroyRemoteConnections, destroyUnrealScene, disconnectStream, dispatchResize, dropConnection, dropDC, dropPC, floatToPercents, floatToSmoothPercents, forceResizeViewport, fromResizeObserver, getActiveUrl, getImageFromVideoStream, getResizeStudioValues, getResizeValuesUniversal, getRtcErrorMessage, iceConnectionFailed, initSignalling, instanceReady, keepMaxUntilReset, makeEven, pollingEnded, pollingStarted, provideUnrealModule, qpToQuality, reconnectPeer, reconnectPeerFailed, reconnectPeerSuccess, regionPingFetchEnd, regionPingFetchStart, regionResolved, resetAfk, resetConfig, resetDataChannelForReconnect, resetIntroSrc, resetUserInactivityTimeout, resetWarnTimeout, saveAnalyticsEvent, selectCirrusConnectionId, selectClientAndViewIds, selectCommandProgress, selectFreezeFrameCombinedDataUrl, selectFreezeFrameDataUrl, selectFreezeFrameDataUrlFromVideo, selectFreezeFrameProgressMessageFromVideo, selectIsAutostart, selectIsExistMatchUrls, selectIsFreezeFrameLoading, selectIsFullyConnected, selectIsLoaderScreenVisible, selectIsVideoPlayingAndDataChannelConnected, selectShowLoader, selectShowReconnectPopup, selectSignalingParameters, selectStreamConfig, selectTotalProgress, selectUserInactivityDetected, selectWarnTimeout, setAfkTimerCountdown, setAfkTimerHide, setAfkTimerVisible, setAwsInstance, setCirrusConnected, setCirrusDisconnected, setConfig, setEstablishingConnection, setFreezeFrame, setFreezeFrameFromVideo, setIntroImageSrc, setIntroVideoSrc, setLoadingImageSrc, setLoopBackCommandIsCompleted, setMaxFps, setOrchestrationContext, setOrchestrationMessage, setOrchestrationParameters, setOrchestrationProgress, setSignalingName, setStatusMessage, setStatusPercentSignallingServer, setStreamClientCompanyId, setStreamViewId, setUnrealPlaywrightConfig, setUserInactivityTimeout, setViewportNotReady, setViewportReady, showLoadingProgress, showResumeStreamPopup, showUnrealErrorMessage, showUserInactivityTimeoutPopup, signalingRetryAttempted, smoothTransition, startStream, trackMixpanelEvent, trackTelemetryData, unrealCommandCallback, unrealFeature, unrealReducer, updateCirrusInfo, videoAdaptedToContainer, videoStreamInitialized };
|
|
2753
|
+
export { AFKService, AUTO_HIGH_RESOLUTION_IDLE_MS, AfkTimeoutModalComponent, AggregatorService, AnalyticsService, AnswerHandler, CONSOLE_COMMAND_DISABLE_MESSAGES, CONSOLE_COMMAND_ENABLE_MESSAGES, CONSOLE_COMMAND_PIXEL_QUALITY, CommandTelemetryService, ConfigHandler, ConsoleExtensionsService, ControlScheme, DATA_CHANNEL_CONNECTION_TIMEOUT, DEBOUNCE_TO_MANY_RESIZE_CALLS, DEFAULT_AFK_TIMEOUT, DEFAULT_AFK_TIMEOUT_PERIOD, DEFAULT_RECONNECT_DELAY_MS, DEFAULT_RECONNECT_ENABLED, DEFAULT_RECONNECT_MAX_ATTEMPTS, DEFAULT_RECONNECT_ON_DATACHANNEL_CLOSE, DEFAULT_RECONNECT_ON_ICE_FAILURE, DESTROY_DISCONNECT_REASONS, DataFlowMonitor, DevModeService, DisconnectReason, FULL_HD_HEIGHT, FULL_HD_WIDTH, FileHandlerService, FileReceiverService, FilterSettingsComponent, FpsMonitorService, FreezeFrameComponent, FreezeFrameService, INNER_RETRY_LIMIT, IceCandidateHandler, ImageLoadingSrcComponent, InputOptions, InputService, InstanceReadyHandler, InstanceReservedHandler, IntroSrcComponent, KalmanFilter1D, LatencyTimings, LoadingProgressService, LowBandwidthDetectorComponent, LowBandwidthModalComponent, MINIMAL_FPS, MIN_CONTAINER_SIZE, MessageType, MouseButton, MouseButtonsMask, OUTER_RETRY_DELAY, OnCloseHandler, OnErrorHandler, OnMessageHandler, OnOpenHandler, OrchestrationMessageTypes, POLLING_TIME, PingHandler, PlayerCountHandler, RegionsPingService, SAME_SIZE_THRESHOLD, SCREEN_LOCKER_CONTAINER_ID, SIGNALLING_PERCENT_VALUE, SSInfoHandler, STREAMING_AUDIO_ID, STREAMING_VIDEO_ID, SafePipe, SignallingService, SpecialKeyCodes, StatGraphComponent, StreamStatusTelemetryService, StreamStatusTelemetryService2, SubService, ToClientMessage, UNREAL_CONFIG, UnrealCallbackService, UnrealCommunicatorService, UnrealEffects, UnrealSceneComponent, UnrealStatusMessage, VideoService, VideoStatsComponent, WSCloseCode_CIRRUS_ABNORMAL_CLOSURE, WSCloseCode_CIRRUS_MAX_PLAYERS_ERROR, WSCloseCode_CIRRUS_PLAYER_DISCONNECTED, WSCloseCode_CIRRUS_STREAMER_KIKED_PLAYER, WSCloseCode_FORCE_CIRRUS_CLOSE, WSCloseCode_NORMAL_AFK_TIMEOUT, WSCloseCode_NORMAL_CLOSURE, WSCloseCode_NORMAL_MANUAL_DISCONNECT, WSCloseCode_UNKNOWN, WSCloseCodes, WS_OPEN_STATE, WS_RETRY_PER_INSTANCE, WS_TIMEOUT, WebRtcPlayerService, WebrtcErrorModalComponent, abortEstablishingConnection, answerSent, changeStatusMainVideoOnScene, changeStreamResolutionAction, commandCompleted, commandStarted, dataChannelConnected, dataChannelReady, decodeData, destroyRemoteConnections, destroyUnrealScene, disconnectStream, dispatchResize, dropConnection, dropDC, dropPC, floatToPercents, floatToSmoothPercents, forceResizeViewport, fromResizeObserver, getActiveUrl, getImageFromVideoStream, getResizeStudioValues, getResizeValuesUniversal, getRtcErrorMessage, iceConnectionFailed, initSignalling, instanceReady, keepMaxUntilReset, makeEven, pollingEnded, pollingStarted, provideUnrealModule, qpToQuality, reconnectPeer, reconnectPeerFailed, reconnectPeerSuccess, regionPingFetchEnd, regionPingFetchStart, regionResolved, resetAfk, resetConfig, resetDataChannelForReconnect, resetIntroSrc, resetUserInactivityTimeout, resetWarnTimeout, saveAnalyticsEvent, selectCirrusConnectionId, selectClientAndViewIds, selectCommandProgress, selectFreezeFrameCombinedDataUrl, selectFreezeFrameDataUrl, selectFreezeFrameDataUrlFromVideo, selectFreezeFrameProgressMessageFromVideo, selectIsAutostart, selectIsExistMatchUrls, selectIsFreezeFrameLoading, selectIsFullyConnected, selectIsLoaderScreenVisible, selectIsVideoPlayingAndDataChannelConnected, selectShowLoader, selectShowReconnectPopup, selectSignalingParameters, selectStreamConfig, selectTotalProgress, selectUserInactivityDetected, selectWarnTimeout, setAfkTimerCountdown, setAfkTimerHide, setAfkTimerVisible, setAwsInstance, setCirrusConnected, setCirrusDisconnected, setConfig, setEstablishingConnection, setFreezeFrame, setFreezeFrameFromVideo, setIntroImageSrc, setIntroVideoSrc, setLoadingImageSrc, setLoopBackCommandIsCompleted, setMaxFps, setOrchestrationContext, setOrchestrationMessage, setOrchestrationParameters, setOrchestrationProgress, setSignalingName, setStatusMessage, setStatusPercentSignallingServer, setStreamClientCompanyId, setStreamViewId, setUnrealPlaywrightConfig, setUserInactivityTimeout, setViewportNotReady, setViewportReady, showLoadingProgress, showResumeStreamPopup, showUnrealErrorMessage, showUserInactivityTimeoutPopup, signalingRetryAttempted, smoothTransition, startStream, trackMixpanelEvent, trackTelemetryData, uint8ToBase64, unrealCommandCallback, unrealFeature, unrealReducer, updateCirrusInfo, videoAdaptedToContainer, videoStreamInitialized };
|
|
2735
2754
|
export type { AggregatedStat, AnySignalingMessage, AwsInstance, CandidateMessage, CloseReason, CommandInProgress, ConfigMessage, ConnectionError, ControlSchemeValues, DataFlowCheckResult, DisconnectReasonType, EmittedMilestone, ForceClientDisconnect, FreezeFrameMessage, InboundVideoStats, InputProps, InstanceReady, InstanceReserved, InterruptClientStream, ListStreamersMessage, MessageBase, MessageTypeValues, NormalizeAndQuantizeSignedValue, NormalizeAndQuantizeUnsignedValue, OrchestrationErrorMessage, OrchestrationMessageType, P2PEstablishedMessage, PhaseOverlay, PhaseParam, PingMessage, PlayerCountMessage, PollingOrchestrationMessage, Quality, ReceivedFile, ReconnectConfig, RequestStream, SSInfo, SelectedIceCandidatePair, SignalingData, SignalingMessageHandler, SignalingMessageMap, StreamConfig, StreamRequestContext, StreamResolutionProps, StreamerListMessage, TelemetryType, UnknownFields, UnquantizeAndDenormalizeUnsignedValue, UnrealCallbackDescriptor, UnrealCallbackEventMap, UnrealCallbackJson, UnrealCallbackJsonWrapped, UnrealInitialConfig, UnrealState, WSCloseCodesValues, streamPreparedForUserInteractionMessage };
|