@cloudflare/realtimekit 1.2.4 → 1.2.5-staging.3
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/AGENTS.md +63 -0
- package/dist/ClientMock.cjs.js +2 -2
- package/dist/ClientMock.es.js +1439 -1707
- package/dist/EncryptionManager.cjs.js +1 -1
- package/dist/EncryptionManager.d.ts +13 -947
- package/dist/EncryptionManager.es.js +156 -156
- package/dist/browser.js +10 -10
- package/dist/dependencies.txt +8 -229
- package/dist/index.cjs.js +10 -13
- package/dist/index.d.ts +15 -948
- package/dist/index.es.js +6979 -11036
- package/dist/index.es5.js +9868 -13315
- package/dist/index.rn.js +10 -13
- package/dist/ts3.4/dist/EncryptionManager.d.ts +13 -940
- package/dist/ts3.4/dist/index.d.ts +15 -941
- package/package.json +6 -7
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
import { PresetTypeV2, MediaVideoQualityType, ViewType, MediaScreenShareQualityType, LivestreamViewerMediaQualityType, PluginAccessControls, WaitingRoomTypes, MediaProductionPermissionType, RecorderType as RecorderType$1, BorderRadius, BorderWidth, Theme, createNewFlagsmithInstance } from '@dyteinternals/utils';
|
|
1
|
+
import * as _cloudflare_realtimekit_utils from '@cloudflare/realtimekit-utils';
|
|
2
|
+
import { PresetTypeV2, MediaVideoQualityType, ViewType, MediaScreenShareQualityType, LivestreamViewerMediaQualityType, PluginAccessControls, WaitingRoomTypes, MediaProductionPermissionType, RecorderType as RecorderType$1, BorderRadius, BorderWidth, Theme, createNewFlagsmithInstance } from '@cloudflare/realtimekit-utils';
|
|
4
3
|
import { MessageType as MessageType$1 } from '@protobuf-ts/runtime';
|
|
5
|
-
import
|
|
4
|
+
import { EventEmitter } from 'events';
|
|
5
|
+
import { InhouseCallStats } from '@cloudflare/realtimekit-callstats';
|
|
6
|
+
import { ClientEnvTypeAll } from '@cloudflare/realtimekit-callstats/dist/types';
|
|
7
|
+
import { ConsumerScoreStats, ProducerScoreStats } from '@cloudflare/realtimekit-callstats/dist/measurements/types';
|
|
8
|
+
export { AudioConsumerScoreStats, AudioProducerScoreStats, ConsumerScoreStats, ProducerScoreStats, VideoConsumerScoreStats, VideoProducerScoreStats } from '@cloudflare/realtimekit-callstats/dist/measurements/types';
|
|
6
9
|
import * as WorkerTimers from 'worker-timers';
|
|
7
10
|
|
|
8
11
|
/**
|
|
@@ -1846,943 +1849,6 @@ interface RecordingEvent {
|
|
|
1846
1849
|
*/
|
|
1847
1850
|
declare const RecordingEvent: RecordingEvent$Type;
|
|
1848
1851
|
|
|
1849
|
-
interface DeviceInfo$1 {
|
|
1850
|
-
isMobile: boolean;
|
|
1851
|
-
browserName: string;
|
|
1852
|
-
browserVersion: string;
|
|
1853
|
-
osName: string;
|
|
1854
|
-
osVersionName: string;
|
|
1855
|
-
engineName: string;
|
|
1856
|
-
userAgent: string;
|
|
1857
|
-
cpus: number;
|
|
1858
|
-
memory?: number;
|
|
1859
|
-
webglSupport?: number;
|
|
1860
|
-
}
|
|
1861
|
-
interface GeoLocation {
|
|
1862
|
-
coords: {
|
|
1863
|
-
latitude: number;
|
|
1864
|
-
longitude: number;
|
|
1865
|
-
};
|
|
1866
|
-
}
|
|
1867
|
-
interface IPDetails {
|
|
1868
|
-
ip: string;
|
|
1869
|
-
city: string;
|
|
1870
|
-
region: string;
|
|
1871
|
-
country: string;
|
|
1872
|
-
loc: string | GeoLocation;
|
|
1873
|
-
org: string;
|
|
1874
|
-
portal: string;
|
|
1875
|
-
timezone: string;
|
|
1876
|
-
}
|
|
1877
|
-
interface ThroughputInformation {
|
|
1878
|
-
throughput: number;
|
|
1879
|
-
fractionalLoss: number;
|
|
1880
|
-
RTT: number;
|
|
1881
|
-
jitter: number;
|
|
1882
|
-
backendRTT: number;
|
|
1883
|
-
}
|
|
1884
|
-
interface IceConnectivity {
|
|
1885
|
-
host: boolean;
|
|
1886
|
-
relay: boolean;
|
|
1887
|
-
reflexive: boolean;
|
|
1888
|
-
}
|
|
1889
|
-
interface NetworkQualityInformation extends ThroughputInformation {
|
|
1890
|
-
connectivity: IceConnectivity;
|
|
1891
|
-
}
|
|
1892
|
-
interface NetworkInformation extends NetworkQualityInformation {
|
|
1893
|
-
ipDetails: IPDetails;
|
|
1894
|
-
location: GeoLocation;
|
|
1895
|
-
turnConnectivity: boolean;
|
|
1896
|
-
effectiveNetworkType: string;
|
|
1897
|
-
}
|
|
1898
|
-
interface NetworkInformationWithoutConnectivityData {
|
|
1899
|
-
ipDetails: IPDetails;
|
|
1900
|
-
location: GeoLocation;
|
|
1901
|
-
effectiveNetworkType: string;
|
|
1902
|
-
}
|
|
1903
|
-
type RTCDtlsTransportState = 'closed' | 'connected' | 'connecting' | 'failed' | 'new';
|
|
1904
|
-
type RTCIceRole = 'controlled' | 'controlling' | 'unknown';
|
|
1905
|
-
interface VideoStreamStats {
|
|
1906
|
-
frameHeight: number;
|
|
1907
|
-
frameWidth: number;
|
|
1908
|
-
droppedFrames?: number;
|
|
1909
|
-
framerateMean?: number;
|
|
1910
|
-
framesDropped: number;
|
|
1911
|
-
framesPerSecond: number;
|
|
1912
|
-
firCount: number;
|
|
1913
|
-
}
|
|
1914
|
-
interface AudioStreamStats {
|
|
1915
|
-
}
|
|
1916
|
-
interface InboundStreamStats {
|
|
1917
|
-
codecId: string;
|
|
1918
|
-
bytesReceived: number;
|
|
1919
|
-
headerBytesReceived: number;
|
|
1920
|
-
packetsReceived: number;
|
|
1921
|
-
packetsLost: number;
|
|
1922
|
-
packetsDiscarded: number;
|
|
1923
|
-
jitter: number;
|
|
1924
|
-
nackCount: number;
|
|
1925
|
-
jitterBufferDelay: number;
|
|
1926
|
-
jitterBufferEmittedCount: number;
|
|
1927
|
-
jitterBufferMinimumDelay: number;
|
|
1928
|
-
jitterBufferTargetDelay: number;
|
|
1929
|
-
lastPacketReceivedTimestamp: number;
|
|
1930
|
-
ssrc: number;
|
|
1931
|
-
mid: string;
|
|
1932
|
-
score?: number;
|
|
1933
|
-
}
|
|
1934
|
-
interface RemoteInboundStreamStats {
|
|
1935
|
-
jitter: number;
|
|
1936
|
-
fractionLost: number;
|
|
1937
|
-
roundTripTime: number;
|
|
1938
|
-
roundTripTimeMeasurements: number;
|
|
1939
|
-
totalRoundTripTime: number;
|
|
1940
|
-
packetsLost: number;
|
|
1941
|
-
localId?: string;
|
|
1942
|
-
}
|
|
1943
|
-
interface OutboundStreamStats {
|
|
1944
|
-
active: boolean;
|
|
1945
|
-
codecId: string;
|
|
1946
|
-
headerBytesSent: number;
|
|
1947
|
-
totalPacketSendDelay: number;
|
|
1948
|
-
bytesSent: number;
|
|
1949
|
-
packetsSent: number;
|
|
1950
|
-
retransmittedBytesSent?: number;
|
|
1951
|
-
retransmittedPacketsSent?: number;
|
|
1952
|
-
remoteData?: RemoteInboundStreamStats;
|
|
1953
|
-
nackCount: number;
|
|
1954
|
-
ssrc: number;
|
|
1955
|
-
mid: string;
|
|
1956
|
-
score?: number;
|
|
1957
|
-
}
|
|
1958
|
-
interface InboundVideoStreamStats extends VideoStreamStats, InboundStreamStats {
|
|
1959
|
-
qpSum: number;
|
|
1960
|
-
totalAssemblyTime: number;
|
|
1961
|
-
totalDecodeTime: number;
|
|
1962
|
-
totalFreezesDuration: number;
|
|
1963
|
-
totalInterFrameDelay: number;
|
|
1964
|
-
totalPausesDuration: number;
|
|
1965
|
-
totalSquaredInterFrameDelay: number;
|
|
1966
|
-
framesDecoded: number;
|
|
1967
|
-
framesDropped: number;
|
|
1968
|
-
keyFramesDecoded: number;
|
|
1969
|
-
freezeCount: number;
|
|
1970
|
-
framesReceived: number;
|
|
1971
|
-
pauseCount: number;
|
|
1972
|
-
pliCount: number;
|
|
1973
|
-
totalProcessingDelay: number;
|
|
1974
|
-
decoderImplementation: string;
|
|
1975
|
-
powerEfficientDecoder: boolean;
|
|
1976
|
-
}
|
|
1977
|
-
interface QualityLimitationDurations {
|
|
1978
|
-
bandwidth: number;
|
|
1979
|
-
cpu: number;
|
|
1980
|
-
none: number;
|
|
1981
|
-
other: number;
|
|
1982
|
-
}
|
|
1983
|
-
interface OutboundVideoStreamStats extends VideoStreamStats, OutboundStreamStats {
|
|
1984
|
-
hugeFramesSent: number;
|
|
1985
|
-
pliCount: number;
|
|
1986
|
-
qpSum: number;
|
|
1987
|
-
framesEncoded: number;
|
|
1988
|
-
framesSent: number;
|
|
1989
|
-
keyFramesEncoded: number;
|
|
1990
|
-
encoderImplementation: string;
|
|
1991
|
-
qualityLimitationReason: string;
|
|
1992
|
-
qualityLimitationResolutionChanges: number;
|
|
1993
|
-
qualityLimitationDurations: QualityLimitationDurations;
|
|
1994
|
-
totalEncodeTime: number;
|
|
1995
|
-
targetBitrate?: number;
|
|
1996
|
-
scalabilityMode: string;
|
|
1997
|
-
powerEfficientEncoder: boolean;
|
|
1998
|
-
}
|
|
1999
|
-
interface InboundAudioStreamStats extends AudioStreamStats, InboundStreamStats {
|
|
2000
|
-
audioLevel: number;
|
|
2001
|
-
concealedSamples: number;
|
|
2002
|
-
concealmentEvents: number;
|
|
2003
|
-
totalAudioEnergy: number;
|
|
2004
|
-
totalSamplesDuration: number;
|
|
2005
|
-
totalSamplesReceived: number;
|
|
2006
|
-
fecPacketsDiscarded: number;
|
|
2007
|
-
fecPacketsReceived: number;
|
|
2008
|
-
insertedSamplesForDeceleration: number;
|
|
2009
|
-
removedSamplesForAcceleration: number;
|
|
2010
|
-
silentConcealedSamples: number;
|
|
2011
|
-
playoutId: string;
|
|
2012
|
-
}
|
|
2013
|
-
interface OutboundAudioStreamStats extends AudioStreamStats, OutboundStreamStats {
|
|
2014
|
-
}
|
|
2015
|
-
interface IceCandidateStats {
|
|
2016
|
-
id: string;
|
|
2017
|
-
type?: string;
|
|
2018
|
-
address?: string;
|
|
2019
|
-
port?: number;
|
|
2020
|
-
relatedAddress?: string;
|
|
2021
|
-
relatedPort?: number;
|
|
2022
|
-
url?: string;
|
|
2023
|
-
protocol?: string;
|
|
2024
|
-
networkType?: string;
|
|
2025
|
-
}
|
|
2026
|
-
interface IceCandidatePairStats {
|
|
2027
|
-
nominated: boolean;
|
|
2028
|
-
currentRoundTripTime?: number;
|
|
2029
|
-
totalRoundTripTime?: number;
|
|
2030
|
-
bytesSent?: number;
|
|
2031
|
-
bytesReceived?: number;
|
|
2032
|
-
bytesDiscardedOnSend?: number;
|
|
2033
|
-
packetsSent?: number;
|
|
2034
|
-
packetsReceived?: number;
|
|
2035
|
-
packetsDiscardedOnSend?: number;
|
|
2036
|
-
availableOutgoingBitrate?: number;
|
|
2037
|
-
availableIncomingBitrate?: number;
|
|
2038
|
-
lastPacketReceivedTimestamp?: number;
|
|
2039
|
-
lastPacketSentTimestamp?: number;
|
|
2040
|
-
localCandidateId?: string;
|
|
2041
|
-
localCandidateType?: string;
|
|
2042
|
-
localCandidateAddress?: string;
|
|
2043
|
-
localCandidatePort?: number;
|
|
2044
|
-
localCandidateRelatedAddress?: string;
|
|
2045
|
-
localCandidateRelatedPort?: number;
|
|
2046
|
-
localCandidateUrl?: string;
|
|
2047
|
-
localCandidateProtocol?: string;
|
|
2048
|
-
localCandidateNetworkType?: string;
|
|
2049
|
-
remoteCandidateId?: string;
|
|
2050
|
-
remoteCandidateType?: string;
|
|
2051
|
-
remoteCandidateAddress?: string;
|
|
2052
|
-
remoteCandidatePort?: number;
|
|
2053
|
-
remoteCandidateUrl?: string;
|
|
2054
|
-
remoteCandidateProtocol?: string;
|
|
2055
|
-
}
|
|
2056
|
-
interface WebRtcTransportStat {
|
|
2057
|
-
bytesReceived?: number;
|
|
2058
|
-
bytesSent?: number;
|
|
2059
|
-
roundTripTime?: number;
|
|
2060
|
-
totalRoundTripTime?: number;
|
|
2061
|
-
availableOutgoingBitrate?: number;
|
|
2062
|
-
availableIncomingBitrate?: number;
|
|
2063
|
-
dtlsCipher?: string;
|
|
2064
|
-
dtlsState?: RTCDtlsTransportState;
|
|
2065
|
-
iceRole?: RTCIceRole;
|
|
2066
|
-
packetsReceived?: number;
|
|
2067
|
-
packetsSent?: number;
|
|
2068
|
-
candidatePairs?: IceCandidatePairStats[];
|
|
2069
|
-
}
|
|
2070
|
-
interface TransportStatistics extends Object {
|
|
2071
|
-
transportId: string;
|
|
2072
|
-
consuming: boolean;
|
|
2073
|
-
producing: boolean;
|
|
2074
|
-
stats: WebRtcTransportStat;
|
|
2075
|
-
}
|
|
2076
|
-
interface ProducerStatistics extends Object {
|
|
2077
|
-
producerId: string;
|
|
2078
|
-
videoStats: OutboundVideoStreamStats[];
|
|
2079
|
-
audioStats: OutboundAudioStreamStats[];
|
|
2080
|
-
appData?: {
|
|
2081
|
-
screenShare?: boolean;
|
|
2082
|
-
supportsRemoteControl?: boolean;
|
|
2083
|
-
};
|
|
2084
|
-
}
|
|
2085
|
-
interface ConsumerStatistics extends Object {
|
|
2086
|
-
consumerId: string;
|
|
2087
|
-
peerId: string;
|
|
2088
|
-
producerId: string;
|
|
2089
|
-
videoStats: InboundVideoStreamStats[];
|
|
2090
|
-
audioStats: InboundAudioStreamStats[];
|
|
2091
|
-
appData: Record<string, unknown>;
|
|
2092
|
-
}
|
|
2093
|
-
interface ProcessedStatsReport {
|
|
2094
|
-
transportReport: TransportStatistics;
|
|
2095
|
-
producerReport: ProducerStatistics[];
|
|
2096
|
-
consumerReport: ConsumerStatistics[];
|
|
2097
|
-
}
|
|
2098
|
-
interface AudioProducerScoreStats {
|
|
2099
|
-
score: number;
|
|
2100
|
-
packetsLostPercentage: number;
|
|
2101
|
-
jitter: number;
|
|
2102
|
-
isScreenShare: boolean;
|
|
2103
|
-
bitrate: number;
|
|
2104
|
-
}
|
|
2105
|
-
interface VideoProducerScoreStats {
|
|
2106
|
-
score: number;
|
|
2107
|
-
frameWidth: number;
|
|
2108
|
-
frameHeight: number;
|
|
2109
|
-
framesPerSecond: number;
|
|
2110
|
-
packetsLostPercentage: number;
|
|
2111
|
-
jitter: number;
|
|
2112
|
-
isScreenShare: boolean;
|
|
2113
|
-
bitrate: number;
|
|
2114
|
-
cpuLimitations: boolean;
|
|
2115
|
-
bandwidthLimitations: boolean;
|
|
2116
|
-
}
|
|
2117
|
-
interface AudioConsumerScoreStats {
|
|
2118
|
-
score: number;
|
|
2119
|
-
packetsLostPercentage: number;
|
|
2120
|
-
jitter: number;
|
|
2121
|
-
isScreenShare: boolean;
|
|
2122
|
-
bitrate: number;
|
|
2123
|
-
}
|
|
2124
|
-
interface VideoConsumerScoreStats {
|
|
2125
|
-
score: number;
|
|
2126
|
-
frameWidth: number;
|
|
2127
|
-
frameHeight: number;
|
|
2128
|
-
framesPerSecond: number;
|
|
2129
|
-
packetsLostPercentage: number;
|
|
2130
|
-
jitter: number;
|
|
2131
|
-
isScreenShare: boolean;
|
|
2132
|
-
bitrate: number;
|
|
2133
|
-
}
|
|
2134
|
-
type ProducerScoreStats = AudioProducerScoreStats | VideoProducerScoreStats;
|
|
2135
|
-
type ConsumerScoreStats = AudioConsumerScoreStats | VideoConsumerScoreStats;
|
|
2136
|
-
|
|
2137
|
-
interface IceServerInfo {
|
|
2138
|
-
urls: string;
|
|
2139
|
-
username: string;
|
|
2140
|
-
credential?: string;
|
|
2141
|
-
/**
|
|
2142
|
-
* Note(ravindra-dyte):
|
|
2143
|
-
* credentialType is deprecated.
|
|
2144
|
-
* https://developer.mozilla.org/en-US/docs/Web/API/RTCIceServer/credentialType
|
|
2145
|
-
*/
|
|
2146
|
-
credentialType?: 'password';
|
|
2147
|
-
}
|
|
2148
|
-
interface RegionalIceInformation {
|
|
2149
|
-
regionId: string;
|
|
2150
|
-
iceServers: IceServerInfo[];
|
|
2151
|
-
}
|
|
2152
|
-
interface ApiHostnames {
|
|
2153
|
-
location: string;
|
|
2154
|
-
locationLegacy: string;
|
|
2155
|
-
daCollector: string;
|
|
2156
|
-
}
|
|
2157
|
-
type ClientEnvTypeAll = 'devel' | 'preprod' | 'prod';
|
|
2158
|
-
declare enum MediaDeviceType {
|
|
2159
|
-
AUDIO = "AUDIO",
|
|
2160
|
-
VIDEO = "VIDEO",
|
|
2161
|
-
SPEAKER = "SPEAKER",
|
|
2162
|
-
SCREENSHARE = "SCREENSHARE"
|
|
2163
|
-
}
|
|
2164
|
-
type MediaDeviceTypeAll = keyof typeof MediaDeviceType;
|
|
2165
|
-
interface DeviceInfo {
|
|
2166
|
-
isMobile: boolean;
|
|
2167
|
-
browserName: string;
|
|
2168
|
-
browserVersion: string;
|
|
2169
|
-
osName: string;
|
|
2170
|
-
osVersionName: string;
|
|
2171
|
-
engineName: string;
|
|
2172
|
-
userAgent: string;
|
|
2173
|
-
cpus: number;
|
|
2174
|
-
memory: number;
|
|
2175
|
-
webglSupport?: number;
|
|
2176
|
-
}
|
|
2177
|
-
interface PeerMetaData$1 {
|
|
2178
|
-
metaData: Object;
|
|
2179
|
-
deviceInfo: DeviceInfo;
|
|
2180
|
-
meetingEnv?: string;
|
|
2181
|
-
peerId: string;
|
|
2182
|
-
userId: string;
|
|
2183
|
-
roomUUID: string;
|
|
2184
|
-
permissions: Object;
|
|
2185
|
-
participantRole?: string;
|
|
2186
|
-
roomViewType: string;
|
|
2187
|
-
}
|
|
2188
|
-
/** Similar to what web-core has for media permissions */
|
|
2189
|
-
type MediaPermissions$1 = 'NOT_REQUESTED' | 'ACCEPTED' | 'DENIED' | 'CANCELED' | 'SYSTEM_DENIED' | 'COULD_NOT_START' | 'NO_DEVICES_AVAILABLE';
|
|
2190
|
-
interface InhouseCallStatsInitializeParams {
|
|
2191
|
-
peerId: string;
|
|
2192
|
-
engineName: string;
|
|
2193
|
-
env?: ClientEnvTypeAll;
|
|
2194
|
-
iceServers: any[];
|
|
2195
|
-
apiBase?: string;
|
|
2196
|
-
flags: Record<string, Record<'enabled' | 'value', any>>;
|
|
2197
|
-
logger?: DyteLogger;
|
|
2198
|
-
apiHostnames: ApiHostnames;
|
|
2199
|
-
skipConnectivityChecks: boolean;
|
|
2200
|
-
}
|
|
2201
|
-
/**
|
|
2202
|
-
* Note(ravindra-dyte):
|
|
2203
|
-
* This is redundantly added here to avoid circular dependency on web-core build
|
|
2204
|
-
* */
|
|
2205
|
-
declare type LogData$3 = {
|
|
2206
|
-
[key: string]: string | number | boolean | null | undefined | LogData$3;
|
|
2207
|
-
};
|
|
2208
|
-
declare interface DyteLogger {
|
|
2209
|
-
info(humanReadableLogIdentifier: string, logData?: LogData$3, isCrucial?: boolean): void;
|
|
2210
|
-
error(humanReadableLogIdentifier: string, logData?: LogData$3, isCrucial?: boolean): void;
|
|
2211
|
-
debug(humanReadableLogIdentifier: string, logData?: LogData$3, isCrucial?: boolean): void;
|
|
2212
|
-
log(humanReadableLogIdentifier: string, logData?: LogData$3, isCrucial?: boolean): void;
|
|
2213
|
-
warn(humanReadableLogIdentifier: string, logData?: LogData$3, isCrucial?: boolean): void;
|
|
2214
|
-
}
|
|
2215
|
-
|
|
2216
|
-
declare enum Event {
|
|
2217
|
-
PRECALL_TEST_BEGIN = "precall_begin",
|
|
2218
|
-
PRECALL_TEST_COMPLETE = "precall_end",
|
|
2219
|
-
CALL_JOIN_BEGIN = "call_join",
|
|
2220
|
-
NET_QUALITY_TEST_BEGIN = "net_quality_test_begin",
|
|
2221
|
-
NET_QUALITY_TEST_END = "net_quality_test_end",
|
|
2222
|
-
WEBSOCKET_CONNECTED = "websocket_connected",
|
|
2223
|
-
TRANSPORT_CONNECTED = "transport_connected",
|
|
2224
|
-
AUDIO_ON = "audio_on",
|
|
2225
|
-
AUDIO_OFF = "audio_off",
|
|
2226
|
-
VIDEO_ON = "video_on",
|
|
2227
|
-
VIDEO_OFF = "video_off",
|
|
2228
|
-
PARTICIPANT_ROLE = "participant_role",
|
|
2229
|
-
PING_STAT = "ping_stat",
|
|
2230
|
-
DISCONNECT = "disconnect",
|
|
2231
|
-
RECONNECT_ATTEMPT = "reconnect_attempt",
|
|
2232
|
-
SCREENSHARE_START_REQUESTED = "screenshare_start_requested",
|
|
2233
|
-
SCREENSHARE_STARTED = "screenshare_started",
|
|
2234
|
-
SCREENSHARE_STOPPED = "screenshare_stopped",
|
|
2235
|
-
TAB_CHANGE = "tab_change",
|
|
2236
|
-
BROWSER_BACKGROUNDED = "browser_backgrounded",
|
|
2237
|
-
BROWSER_FOREGROUNDED = "browser_foregrounded",
|
|
2238
|
-
DOMINANT_SPEAKER = "dominant_speaker",
|
|
2239
|
-
AUDIO_DEVICES_UPDATES = "audio_devices_updates",
|
|
2240
|
-
VIDEO_DEVICES_UPDATES = "video_devices_updates",
|
|
2241
|
-
SPEAKER_DEVICES_UPDATES = "speaker_devices_updates",
|
|
2242
|
-
SELECTED_MICROHPONE_UPDATE = "selected_microphone_update",
|
|
2243
|
-
SELECTED_CAMERA_UPDATE = "selected_camera_update",
|
|
2244
|
-
SELECTED_SPEAKER_UPDATE = "selected_speaker_update",
|
|
2245
|
-
EXPECTED_VIDEO_RESOLUTION = "expected_video_resolution",
|
|
2246
|
-
EXPECTED_SCREENSHARE_RESOLUTION = "expected_screenshare_resolution",
|
|
2247
|
-
MEDIA_PERMISSION = "media_permission",
|
|
2248
|
-
LEGACY_SWITCH = "legacy_switch",
|
|
2249
|
-
AUDIO_PLAY_FAILED = "audio_play_failed",
|
|
2250
|
-
VIDEO_PLAY_FAILED = "video_play_failed",
|
|
2251
|
-
AUDIO_TRACK_MUTED = "audio_track_muted",
|
|
2252
|
-
VIDEO_TRACK_MUTED = "video_track_muted",
|
|
2253
|
-
IVS_PLAYER_REBUFFERING = "ivs_player_rebuffering",
|
|
2254
|
-
IVS_PLAYER_AUDIO_BLOCKED = "ivs_player_audio_blocked",
|
|
2255
|
-
IVS_PLAYER_PLAYBACK_BLOCKED = "ivs_player_playback_blocked",
|
|
2256
|
-
IVS_PLAYER_ERROR = "ivs_player_error",
|
|
2257
|
-
IVS_PLAYER_RECOVERABLE_ERROR = "ivs_player_recoverable_error",
|
|
2258
|
-
IVS_PLAYER_WORKER_ERROR = "ivs_player_worker_error",
|
|
2259
|
-
IVS_PLAYER_NETWORK_UNAVAILABLE = "ivs_player_network_unavailable",
|
|
2260
|
-
LIVESTREAM_LATENCY = "livestream_latency",
|
|
2261
|
-
IVS_PLAYER_ANALYTICS_EVENT = "ivs_player_analytics_event",
|
|
2262
|
-
IVS_PLAYER_PLAYBACK_RATE_CHANGED = "ivs_player_playback_rate_changed",
|
|
2263
|
-
IVS_PLAYER_QUALITY_CHANGED = "ivs_player_quality_changed",
|
|
2264
|
-
IVS_PLAYER_INITIALIZED = "ivs_player_initialized"
|
|
2265
|
-
}
|
|
2266
|
-
interface PeerMetaData {
|
|
2267
|
-
metaData: Object;
|
|
2268
|
-
deviceInfo: DeviceInfo$1;
|
|
2269
|
-
meetingEnv?: string;
|
|
2270
|
-
peerId: string;
|
|
2271
|
-
userId: string;
|
|
2272
|
-
roomUUID: string;
|
|
2273
|
-
permissions: Object;
|
|
2274
|
-
participantRole?: string;
|
|
2275
|
-
roomViewType: string;
|
|
2276
|
-
}
|
|
2277
|
-
interface EventDataBase extends Object {
|
|
2278
|
-
}
|
|
2279
|
-
interface CallJoinData extends EventDataBase {
|
|
2280
|
-
peerMetaData: PeerMetaData;
|
|
2281
|
-
}
|
|
2282
|
-
interface PingStatsData extends EventDataBase {
|
|
2283
|
-
producingTransportStats?: TransportStatistics;
|
|
2284
|
-
consumingTransportStats?: TransportStatistics;
|
|
2285
|
-
producerStats?: ProducerStatistics[];
|
|
2286
|
-
consumerStats?: ConsumerStatistics[];
|
|
2287
|
-
}
|
|
2288
|
-
interface PreCallTestData extends EventDataBase {
|
|
2289
|
-
connectionInfo?: NetworkInformation;
|
|
2290
|
-
}
|
|
2291
|
-
interface PreCallTestDataWithoutConnectivityData extends EventDataBase {
|
|
2292
|
-
connectionInfo?: NetworkInformationWithoutConnectivityData;
|
|
2293
|
-
}
|
|
2294
|
-
interface RegionalNetworkQualityTestData extends RegionalIceInformation {
|
|
2295
|
-
networkResults: NetworkQualityInformation;
|
|
2296
|
-
}
|
|
2297
|
-
interface NetworkQualityTestData extends EventDataBase {
|
|
2298
|
-
regionData: RegionalNetworkQualityTestData[];
|
|
2299
|
-
}
|
|
2300
|
-
interface ParticipantRoleData extends EventDataBase {
|
|
2301
|
-
participantRole: string;
|
|
2302
|
-
}
|
|
2303
|
-
interface ExpectedVideoResolutionEntry extends EventEntryBase {
|
|
2304
|
-
event: Event.EXPECTED_VIDEO_RESOLUTION;
|
|
2305
|
-
metaData: {
|
|
2306
|
-
frameWidth: number;
|
|
2307
|
-
frameHeight: number;
|
|
2308
|
-
};
|
|
2309
|
-
}
|
|
2310
|
-
interface ExpectedScreenshareResolutionEntry extends EventEntryBase {
|
|
2311
|
-
event: Event.EXPECTED_SCREENSHARE_RESOLUTION;
|
|
2312
|
-
metaData: {
|
|
2313
|
-
frameWidth: number;
|
|
2314
|
-
frameHeight: number;
|
|
2315
|
-
};
|
|
2316
|
-
}
|
|
2317
|
-
interface EmptyData extends EventDataBase {
|
|
2318
|
-
}
|
|
2319
|
-
interface MediaDevicesData extends EventDataBase {
|
|
2320
|
-
deviceList: MediaDeviceInfo[];
|
|
2321
|
-
}
|
|
2322
|
-
interface IVSPlayerQualityChangedData extends EventDataBase {
|
|
2323
|
-
name: string;
|
|
2324
|
-
group: string;
|
|
2325
|
-
codecs: string;
|
|
2326
|
-
bitrate: number;
|
|
2327
|
-
width: number;
|
|
2328
|
-
height: number;
|
|
2329
|
-
framerate: number;
|
|
2330
|
-
isDefault: boolean;
|
|
2331
|
-
}
|
|
2332
|
-
interface IVSPlayerAnalyticsEventData extends EventDataBase {
|
|
2333
|
-
name: string;
|
|
2334
|
-
properties: Object;
|
|
2335
|
-
}
|
|
2336
|
-
interface IVSPlayerErrorData extends EventDataBase {
|
|
2337
|
-
type: string;
|
|
2338
|
-
code: number;
|
|
2339
|
-
source: string;
|
|
2340
|
-
message: string;
|
|
2341
|
-
}
|
|
2342
|
-
interface IVSPlayerRecoverableErrorData extends EventDataBase {
|
|
2343
|
-
type: string;
|
|
2344
|
-
code: number;
|
|
2345
|
-
source: string;
|
|
2346
|
-
message: string;
|
|
2347
|
-
}
|
|
2348
|
-
interface IVSPlayerPlaybackRateChangedData extends EventDataBase {
|
|
2349
|
-
updatedPlaybackRate: number;
|
|
2350
|
-
}
|
|
2351
|
-
interface IVSPlayerLiveLatencyData extends EventDataBase {
|
|
2352
|
-
latency: number;
|
|
2353
|
-
}
|
|
2354
|
-
type EventData = CallJoinData | PingStatsData | NetworkQualityTestData | EmptyData | ParticipantRoleData | ParticipantRoleData | MediaDevicesData | IVSPlayerQualityChangedData | IVSPlayerAnalyticsEventData | IVSPlayerErrorData | IVSPlayerRecoverableErrorData | IVSPlayerPlaybackRateChangedData | IVSPlayerLiveLatencyData;
|
|
2355
|
-
interface EventEntryBase {
|
|
2356
|
-
event: Event;
|
|
2357
|
-
timestamp: Date;
|
|
2358
|
-
metaData?: EventData;
|
|
2359
|
-
}
|
|
2360
|
-
interface PreCallTestBeginEntry extends EventEntryBase {
|
|
2361
|
-
event: Event.PRECALL_TEST_BEGIN;
|
|
2362
|
-
}
|
|
2363
|
-
interface PreCallTestCompletedEntry extends EventEntryBase {
|
|
2364
|
-
event: Event.PRECALL_TEST_COMPLETE;
|
|
2365
|
-
metaData: PreCallTestData | PreCallTestDataWithoutConnectivityData;
|
|
2366
|
-
}
|
|
2367
|
-
interface CallJoinBeginEntry extends EventEntryBase {
|
|
2368
|
-
event: Event.CALL_JOIN_BEGIN;
|
|
2369
|
-
metaData: CallJoinData;
|
|
2370
|
-
}
|
|
2371
|
-
interface NetworkQualityTestBeginEntry extends EventEntryBase {
|
|
2372
|
-
event: Event.NET_QUALITY_TEST_BEGIN;
|
|
2373
|
-
}
|
|
2374
|
-
interface NetworkQualityTestEndEntry extends EventEntryBase {
|
|
2375
|
-
event: Event.NET_QUALITY_TEST_END;
|
|
2376
|
-
metaData: NetworkQualityTestData;
|
|
2377
|
-
}
|
|
2378
|
-
interface WebSocketConnectedEntry extends EventEntryBase {
|
|
2379
|
-
event: Event.WEBSOCKET_CONNECTED;
|
|
2380
|
-
}
|
|
2381
|
-
interface TransportConnectedEntry extends EventEntryBase {
|
|
2382
|
-
event: Event.TRANSPORT_CONNECTED;
|
|
2383
|
-
}
|
|
2384
|
-
interface AudioToggleEntry extends EventEntryBase {
|
|
2385
|
-
event: Event.AUDIO_OFF | Event.AUDIO_ON;
|
|
2386
|
-
}
|
|
2387
|
-
interface VideoToggleEntry extends EventEntryBase {
|
|
2388
|
-
event: Event.VIDEO_OFF | Event.VIDEO_ON;
|
|
2389
|
-
}
|
|
2390
|
-
interface ScreenShareToggleEntry extends EventEntryBase {
|
|
2391
|
-
event: Event.SCREENSHARE_STARTED | Event.SCREENSHARE_STOPPED;
|
|
2392
|
-
metaData: {
|
|
2393
|
-
ssrc: number;
|
|
2394
|
-
};
|
|
2395
|
-
}
|
|
2396
|
-
interface ScreenShareRequestedEntry extends EventEntryBase {
|
|
2397
|
-
event: Event.SCREENSHARE_START_REQUESTED;
|
|
2398
|
-
}
|
|
2399
|
-
interface DominantSpeakerEntry extends EventEntryBase {
|
|
2400
|
-
event: Event.DOMINANT_SPEAKER;
|
|
2401
|
-
metaData: {
|
|
2402
|
-
peerId: string;
|
|
2403
|
-
};
|
|
2404
|
-
}
|
|
2405
|
-
interface DevicesEntry extends EventEntryBase {
|
|
2406
|
-
event: Event.AUDIO_DEVICES_UPDATES | Event.VIDEO_DEVICES_UPDATES | Event.SPEAKER_DEVICES_UPDATES;
|
|
2407
|
-
metaData: MediaDevicesData;
|
|
2408
|
-
}
|
|
2409
|
-
interface SelectedDeviceEntry extends EventEntryBase {
|
|
2410
|
-
event: Event.SELECTED_CAMERA_UPDATE | Event.SELECTED_MICROHPONE_UPDATE | Event.SELECTED_SPEAKER_UPDATE;
|
|
2411
|
-
metaData: {
|
|
2412
|
-
device: MediaDeviceInfo;
|
|
2413
|
-
};
|
|
2414
|
-
}
|
|
2415
|
-
interface MediaPermissionEntry extends EventEntryBase {
|
|
2416
|
-
event: Event.MEDIA_PERMISSION;
|
|
2417
|
-
metaData: {
|
|
2418
|
-
deviceType: MediaDeviceTypeAll;
|
|
2419
|
-
permission: MediaPermissions$1;
|
|
2420
|
-
};
|
|
2421
|
-
}
|
|
2422
|
-
interface MediaPlaybackFailureEntry extends EventEntryBase {
|
|
2423
|
-
event: Event.AUDIO_PLAY_FAILED | Event.VIDEO_PLAY_FAILED;
|
|
2424
|
-
metaData: {
|
|
2425
|
-
deviceType: MediaDeviceTypeAll;
|
|
2426
|
-
};
|
|
2427
|
-
}
|
|
2428
|
-
interface MediaTrackFailureEntry extends EventEntryBase {
|
|
2429
|
-
event: Event.AUDIO_TRACK_MUTED | Event.VIDEO_TRACK_MUTED;
|
|
2430
|
-
metaData: {
|
|
2431
|
-
deviceType: MediaDeviceTypeAll;
|
|
2432
|
-
};
|
|
2433
|
-
}
|
|
2434
|
-
interface TabChangeEntry extends EventEntryBase {
|
|
2435
|
-
event: Event.TAB_CHANGE;
|
|
2436
|
-
metaData: {
|
|
2437
|
-
isMeetingsTabActive: boolean;
|
|
2438
|
-
};
|
|
2439
|
-
}
|
|
2440
|
-
interface BrowserBackgroundedEntry extends EventEntryBase {
|
|
2441
|
-
event: Event.BROWSER_BACKGROUNDED;
|
|
2442
|
-
}
|
|
2443
|
-
interface BrowserForegroundedEntry extends EventEntryBase {
|
|
2444
|
-
event: Event.BROWSER_FOREGROUNDED;
|
|
2445
|
-
}
|
|
2446
|
-
interface LegacySwitchEntry extends EventEntryBase {
|
|
2447
|
-
event: Event.LEGACY_SWITCH;
|
|
2448
|
-
metadata: {
|
|
2449
|
-
on: boolean;
|
|
2450
|
-
};
|
|
2451
|
-
}
|
|
2452
|
-
interface ParticipantRoleToggleEntry extends EventEntryBase {
|
|
2453
|
-
event: Event.PARTICIPANT_ROLE;
|
|
2454
|
-
metaData: ParticipantRoleData;
|
|
2455
|
-
}
|
|
2456
|
-
interface PingStatsEntry extends EventEntryBase {
|
|
2457
|
-
event: Event.PING_STAT;
|
|
2458
|
-
metaData: PingStatsData;
|
|
2459
|
-
}
|
|
2460
|
-
interface DisconnectEntry extends EventEntryBase {
|
|
2461
|
-
event: Event.DISCONNECT;
|
|
2462
|
-
}
|
|
2463
|
-
interface ReconnectEntry extends EventEntryBase {
|
|
2464
|
-
event: Event.RECONNECT_ATTEMPT;
|
|
2465
|
-
}
|
|
2466
|
-
interface IVSPlayerRebufferingEntry extends EventEntryBase {
|
|
2467
|
-
event: Event.IVS_PLAYER_REBUFFERING;
|
|
2468
|
-
}
|
|
2469
|
-
interface IVSPlayerAudioBlockedEntry extends EventEntryBase {
|
|
2470
|
-
event: Event.IVS_PLAYER_AUDIO_BLOCKED;
|
|
2471
|
-
}
|
|
2472
|
-
interface IVSPlayerPlaybackBlockedEntry extends EventEntryBase {
|
|
2473
|
-
event: Event.IVS_PLAYER_PLAYBACK_BLOCKED;
|
|
2474
|
-
}
|
|
2475
|
-
interface IVSPlayerNetworkUnavailableEntry extends EventEntryBase {
|
|
2476
|
-
event: Event.IVS_PLAYER_NETWORK_UNAVAILABLE;
|
|
2477
|
-
}
|
|
2478
|
-
interface IVSPlayerInitializedEntry extends EventEntryBase {
|
|
2479
|
-
event: Event.IVS_PLAYER_INITIALIZED;
|
|
2480
|
-
}
|
|
2481
|
-
interface IVSPlayerWorkerErrorEntry extends EventEntryBase {
|
|
2482
|
-
event: Event.IVS_PLAYER_WORKER_ERROR;
|
|
2483
|
-
}
|
|
2484
|
-
interface IVSPlayerErrorEntry extends EventEntryBase {
|
|
2485
|
-
event: Event.IVS_PLAYER_ERROR;
|
|
2486
|
-
metaData: IVSPlayerErrorData;
|
|
2487
|
-
}
|
|
2488
|
-
interface IVSPlayerRecoverableErrorEntry extends EventEntryBase {
|
|
2489
|
-
event: Event.IVS_PLAYER_RECOVERABLE_ERROR;
|
|
2490
|
-
metaData: IVSPlayerRecoverableErrorData;
|
|
2491
|
-
}
|
|
2492
|
-
interface IVSPlayerAnalyticsEventEntry extends EventEntryBase {
|
|
2493
|
-
event: Event.IVS_PLAYER_ANALYTICS_EVENT;
|
|
2494
|
-
metaData: IVSPlayerAnalyticsEventData;
|
|
2495
|
-
}
|
|
2496
|
-
interface IVSPlayerPlaybackRateChangedEntry extends EventEntryBase {
|
|
2497
|
-
event: Event.IVS_PLAYER_PLAYBACK_RATE_CHANGED;
|
|
2498
|
-
metaData: IVSPlayerPlaybackRateChangedData;
|
|
2499
|
-
}
|
|
2500
|
-
interface IVSPlayerQualityChangedEntry extends EventEntryBase {
|
|
2501
|
-
event: Event.IVS_PLAYER_QUALITY_CHANGED;
|
|
2502
|
-
metaData: IVSPlayerQualityChangedData;
|
|
2503
|
-
}
|
|
2504
|
-
interface IVSPlayerLiveLatencyEntry extends EventEntryBase {
|
|
2505
|
-
event: Event.LIVESTREAM_LATENCY;
|
|
2506
|
-
metaData: IVSPlayerLiveLatencyData;
|
|
2507
|
-
}
|
|
2508
|
-
type EventEntry = CallJoinBeginEntry | NetworkQualityTestBeginEntry | NetworkQualityTestEndEntry | BrowserForegroundedEntry | PingStatsEntry | PreCallTestBeginEntry | PreCallTestCompletedEntry | WebSocketConnectedEntry | TransportConnectedEntry | AudioToggleEntry | VideoToggleEntry | ScreenShareToggleEntry | DisconnectEntry | ReconnectEntry | ParticipantRoleToggleEntry | DominantSpeakerEntry | DevicesEntry | SelectedDeviceEntry | MediaPermissionEntry | MediaPlaybackFailureEntry | MediaTrackFailureEntry | ScreenShareRequestedEntry | ExpectedVideoResolutionEntry | ExpectedScreenshareResolutionEntry | TabChangeEntry | BrowserBackgroundedEntry | LegacySwitchEntry | IVSPlayerRebufferingEntry | IVSPlayerAudioBlockedEntry | IVSPlayerPlaybackBlockedEntry | IVSPlayerNetworkUnavailableEntry | IVSPlayerInitializedEntry | IVSPlayerErrorEntry | IVSPlayerRecoverableErrorEntry | IVSPlayerAnalyticsEventEntry | IVSPlayerLiveLatencyEntry | IVSPlayerPlaybackRateChangedEntry | IVSPlayerQualityChangedEntry | IVSPlayerWorkerErrorEntry;
|
|
2509
|
-
|
|
2510
|
-
declare class EventHandler extends EventEmitter {
|
|
2511
|
-
private logger;
|
|
2512
|
-
private peerId;
|
|
2513
|
-
private eventStore;
|
|
2514
|
-
private apiEndpoint;
|
|
2515
|
-
constructor({ logger, peerId, apiHostnames, }: {
|
|
2516
|
-
logger: DyteLogger;
|
|
2517
|
-
peerId: string;
|
|
2518
|
-
apiHostnames: ApiHostnames;
|
|
2519
|
-
});
|
|
2520
|
-
private sendEventsChunkToServer;
|
|
2521
|
-
callEvent(entry: EventEntry): void;
|
|
2522
|
-
flush(): Promise<boolean>;
|
|
2523
|
-
}
|
|
2524
|
-
|
|
2525
|
-
interface ParsedProducerStats {
|
|
2526
|
-
outboundVideoRtpId: string[];
|
|
2527
|
-
outboundAudioRtpId: string[];
|
|
2528
|
-
}
|
|
2529
|
-
interface ParsedConsumerStats {
|
|
2530
|
-
inboundVideoRtpId: string[];
|
|
2531
|
-
inboundAudioRtpId: string[];
|
|
2532
|
-
}
|
|
2533
|
-
declare class ParsedRTCStats {
|
|
2534
|
-
transport: WebRtcTransportStat;
|
|
2535
|
-
candidatePair: IceCandidatePairStats;
|
|
2536
|
-
outboundVideoRtp: Map<string, OutboundVideoStreamStats>;
|
|
2537
|
-
inboundVideoRtp: Map<string, InboundVideoStreamStats>;
|
|
2538
|
-
outboundAudioRtp: Map<string, OutboundAudioStreamStats>;
|
|
2539
|
-
inboundAudioRtp: Map<string, InboundAudioStreamStats>;
|
|
2540
|
-
remoteInboundRtp: Map<string, RemoteInboundStreamStats>;
|
|
2541
|
-
producerStreamMap: Map<string, ParsedProducerStats>;
|
|
2542
|
-
consumerStreamMap: Map<string, ParsedConsumerStats>;
|
|
2543
|
-
staleProducerStreamMap: boolean;
|
|
2544
|
-
staleConsumerStreamMap: boolean;
|
|
2545
|
-
}
|
|
2546
|
-
declare abstract class Measurements extends EventEmitter {
|
|
2547
|
-
observer: EventEmitter;
|
|
2548
|
-
outboundProducerMap: Map<string, string>;
|
|
2549
|
-
inboundConsumerMap: Map<string, string>;
|
|
2550
|
-
consumerPeerIdMap: Map<string, {
|
|
2551
|
-
producerId: string;
|
|
2552
|
-
peerId: string;
|
|
2553
|
-
appData: Record<string, unknown>;
|
|
2554
|
-
}>;
|
|
2555
|
-
pausedConsumerMap: Map<string, {
|
|
2556
|
-
lastReportCalculated: boolean;
|
|
2557
|
-
}>;
|
|
2558
|
-
pausedProducerMap: Map<string, {
|
|
2559
|
-
lastReportCalculated: boolean;
|
|
2560
|
-
}>;
|
|
2561
|
-
overallProducingTransportsStatsMap: Record<string, {
|
|
2562
|
-
totalPacketsSent: number;
|
|
2563
|
-
}>;
|
|
2564
|
-
overallConsumingTransportsStatsMap: Record<string, {
|
|
2565
|
-
totalPacketsReceived: number;
|
|
2566
|
-
}>;
|
|
2567
|
-
overallConsumersStatsMap: Record<string, {
|
|
2568
|
-
totalVideoPacketsReceived: number;
|
|
2569
|
-
totalAudioPacketsReceived: number;
|
|
2570
|
-
}>;
|
|
2571
|
-
overallProducersStatsMap: Record<string, {
|
|
2572
|
-
totalVideoPacketsSent: number;
|
|
2573
|
-
totalAudioPacketsSent: number;
|
|
2574
|
-
}>;
|
|
2575
|
-
videoProducerToStatsMap: Map<string, OutboundVideoStreamStats>;
|
|
2576
|
-
audioProducerToStatsMap: Map<string, OutboundAudioStreamStats>;
|
|
2577
|
-
videoConsumerToStatsMap: Map<string, InboundVideoStreamStats>;
|
|
2578
|
-
audioConsumerToStatsMap: Map<string, InboundAudioStreamStats>;
|
|
2579
|
-
consumerIdsWithFreezedVideo: Set<string>;
|
|
2580
|
-
consumerIdsWithFreezedAudio: Set<string>;
|
|
2581
|
-
producerIdsWithFreezedVideo: Set<string>;
|
|
2582
|
-
producerIdsWithFreezedAudio: Set<string>;
|
|
2583
|
-
freezedProducingTransportIds: Set<string>;
|
|
2584
|
-
freezedConsumingTransportIds: Set<string>;
|
|
2585
|
-
screenShareProducers: Set<string>;
|
|
2586
|
-
screenShareConsumers: Set<string>;
|
|
2587
|
-
ipDetails: IPDetails;
|
|
2588
|
-
callStatsInstance: CallStats;
|
|
2589
|
-
constructor();
|
|
2590
|
-
registerProducer(producer: any): Promise<void>;
|
|
2591
|
-
pauseProducer(producerId: string): void;
|
|
2592
|
-
resumeProducer(producerId: string): void;
|
|
2593
|
-
processInboundConsumerVideoStats(consumerId: string, overallStatsForConsumer: {
|
|
2594
|
-
totalVideoPacketsReceived: number;
|
|
2595
|
-
totalAudioPacketsReceived: number;
|
|
2596
|
-
}, streamStatsData: InboundVideoStreamStats): void;
|
|
2597
|
-
processInboundConsumerAudioStats(consumerId: string, overallStatsForConsumer: {
|
|
2598
|
-
totalVideoPacketsReceived: number;
|
|
2599
|
-
totalAudioPacketsReceived: number;
|
|
2600
|
-
}, streamStatsData: InboundAudioStreamStats): void;
|
|
2601
|
-
processOutboundProducerVideoStats(producerId: string, overallStatsForProducer: {
|
|
2602
|
-
totalVideoPacketsSent: number;
|
|
2603
|
-
totalAudioPacketsSent: number;
|
|
2604
|
-
}, streamStatsData: OutboundVideoStreamStats): void;
|
|
2605
|
-
processOutboundProducerAudioStats(producerId: string, overallStatsForProducer: {
|
|
2606
|
-
totalVideoPacketsSent: number;
|
|
2607
|
-
totalAudioPacketsSent: number;
|
|
2608
|
-
}, streamStatsData: OutboundAudioStreamStats): void;
|
|
2609
|
-
processProducingTransportStats(transportId: string, overallStatsForTransport: {
|
|
2610
|
-
totalPacketsSent: number;
|
|
2611
|
-
}, transportStatsData: WebRtcTransportStat): void;
|
|
2612
|
-
processConsumingTransportStats(transportId: string, overallStatsForTransport: {
|
|
2613
|
-
totalPacketsReceived: number;
|
|
2614
|
-
}, streamStatsData: WebRtcTransportStat): void;
|
|
2615
|
-
registerConsumer(consumer: any): Promise<void>;
|
|
2616
|
-
pauseConsumer(consumerId: string): void;
|
|
2617
|
-
resumeConsumer(consumerId: string): void;
|
|
2618
|
-
generateProducerStreamMap(producer: any, parse?: boolean): Promise<ProducerStatistics>;
|
|
2619
|
-
generateConsumerStreamMap(consumer: any, parse?: boolean): Promise<ConsumerStatistics>;
|
|
2620
|
-
deregisterProducer(producer: any): void;
|
|
2621
|
-
deregisterConsumer(consumer: any): void;
|
|
2622
|
-
protected getIceCandidateStats(stats: any): IceCandidateStats;
|
|
2623
|
-
getWorkingSimulcastVideoStats(videoStatsList: OutboundVideoStreamStats[]): OutboundVideoStreamStats;
|
|
2624
|
-
protected parseRTCReport(report: RTCStatsReport, filters?: string[], onceOnly?: boolean, ownerId?: string, transportInfo?: {
|
|
2625
|
-
id: string;
|
|
2626
|
-
producing: boolean;
|
|
2627
|
-
consuming: boolean;
|
|
2628
|
-
}): ParsedRTCStats;
|
|
2629
|
-
getProducersReport(producers: any[]): Promise<ProducerStatistics[]>;
|
|
2630
|
-
getConsumersReport(consumers: any[]): Promise<ConsumerStatistics[]>;
|
|
2631
|
-
getTransportReport(transport: any): Promise<any>;
|
|
2632
|
-
getProcessedStats(transport: any, consuming: boolean, producing: boolean): Promise<ProcessedStatsReport>;
|
|
2633
|
-
protected getProducerStatsFromReport(report: ParsedRTCStats): ProducerStatistics[];
|
|
2634
|
-
protected getConsumerStatsFromReport(report: ParsedRTCStats): ConsumerStatistics[];
|
|
2635
|
-
getUserLocation(): Promise<GeoLocation>;
|
|
2636
|
-
getConnectivity(iceServers: IceServerInfo[]): Promise<{
|
|
2637
|
-
host: boolean;
|
|
2638
|
-
relay: boolean;
|
|
2639
|
-
reflexive: boolean;
|
|
2640
|
-
}>;
|
|
2641
|
-
getThroughput(iceServers: IceServerInfo[]): Promise<ThroughputInformation>;
|
|
2642
|
-
getIPDetails(): Promise<IPDetails>;
|
|
2643
|
-
getNetworkQuality(iceServers: IceServerInfo[]): Promise<NetworkQualityInformation>;
|
|
2644
|
-
getNetworkInfo(iceServers: IceServerInfo[], skipConnectivityChecks?: boolean): Promise<NetworkInformation | NetworkInformationWithoutConnectivityData>;
|
|
2645
|
-
}
|
|
2646
|
-
|
|
2647
|
-
declare class CallStats extends EventEmitter {
|
|
2648
|
-
observer: EventEmitter;
|
|
2649
|
-
eventHandler: EventHandler;
|
|
2650
|
-
protected measurements: Measurements;
|
|
2651
|
-
protected producingTransport: any;
|
|
2652
|
-
protected consumingTransport: any;
|
|
2653
|
-
producers: Map<string, any>;
|
|
2654
|
-
protected consumers: Map<string, any>;
|
|
2655
|
-
protected iceServers: IceServerInfo[];
|
|
2656
|
-
protected connectionInfoPromise: Promise<NetworkInformation | NetworkInformationWithoutConnectivityData>;
|
|
2657
|
-
protected pingStatsTimeout: NodeJS.Timeout;
|
|
2658
|
-
logger: DyteLogger;
|
|
2659
|
-
env: ClientEnvTypeAll;
|
|
2660
|
-
apiHostnames: ApiHostnames;
|
|
2661
|
-
peerId: string;
|
|
2662
|
-
consumerSharedMediaStatesMap: Map<string, {
|
|
2663
|
-
audio?: boolean;
|
|
2664
|
-
video?: boolean;
|
|
2665
|
-
screen?: boolean;
|
|
2666
|
-
}>;
|
|
2667
|
-
currentUserMediaStates: {
|
|
2668
|
-
audio?: boolean;
|
|
2669
|
-
video?: boolean;
|
|
2670
|
-
screen?: boolean;
|
|
2671
|
-
};
|
|
2672
|
-
constructor(backendUrl: string, engineName: string, env: ClientEnvTypeAll, flags: InhouseCallStatsInitializeParams['flags'], logger: DyteLogger, peerId: string, apiHostnames: ApiHostnames);
|
|
2673
|
-
registerIceServers(servers: IceServerInfo[]): void;
|
|
2674
|
-
protected registerConsumer(consumer: any): void;
|
|
2675
|
-
protected registerProducer(producer: any): void;
|
|
2676
|
-
sendConsumerSharedMediaStateEvent(consumerId: string, statusObj: {
|
|
2677
|
-
audio?: boolean;
|
|
2678
|
-
video?: boolean;
|
|
2679
|
-
screen?: boolean;
|
|
2680
|
-
}): void;
|
|
2681
|
-
registerProducingTransport(transport: any): void;
|
|
2682
|
-
registerConsumingTransport(transport: any): void;
|
|
2683
|
-
protected deRegisterConsumer(consumer: any): void;
|
|
2684
|
-
protected deRegisterProducer(producer: any): void;
|
|
2685
|
-
disconnectConsumingTransport(): void;
|
|
2686
|
-
disconnectProducingTransport(): void;
|
|
2687
|
-
protected callEvent(entry: EventEntry): void;
|
|
2688
|
-
sendPreCallTestBeginEvent(skipConnectivityChecks: boolean, timestamp: Date): void;
|
|
2689
|
-
sendScreenShareToggleEvent(on: boolean, ssrc: number, timestamp: Date): void;
|
|
2690
|
-
sendScreenShareRequestedEvent(timestamp: Date): void;
|
|
2691
|
-
sendActiveSpeakerEvent(peerId: string, timestamp: Date): void;
|
|
2692
|
-
devices(deviceType: MediaDeviceTypeAll, deviceList: MediaDeviceInfo[], timestamp: Date): void;
|
|
2693
|
-
selectedDevice(deviceType: MediaDeviceTypeAll, device: MediaDeviceInfo, timestamp: Date): void;
|
|
2694
|
-
mediaPermission(deviceType: MediaDeviceTypeAll, permission: MediaPermissions$1, timestamp: Date): void;
|
|
2695
|
-
mediaPlaybackFailed(deviceType: MediaDeviceTypeAll, timestamp: Date): void;
|
|
2696
|
-
mediaTrackMuted(deviceType: MediaDeviceTypeAll, timestamp: Date): void;
|
|
2697
|
-
tabChanged(isMeetingsTabActive: boolean, timestamp: Date): void;
|
|
2698
|
-
browserBackgrounded(timestamp: Date): void;
|
|
2699
|
-
browserForegrounded(timestamp: Date): void;
|
|
2700
|
-
legacySwitch(on: boolean, timestamp: Date): void;
|
|
2701
|
-
getPreCallTestResults(): Promise<NetworkInformation | NetworkInformationWithoutConnectivityData>;
|
|
2702
|
-
sendCallJoinBeginEvent(peerMetaData: PeerMetaData, timestamp: Date): void;
|
|
2703
|
-
sendNetworkQualityTestBeginEvent(regionalInformations: RegionalIceInformation[], timestamp: Date): void;
|
|
2704
|
-
sendWebSocketConnectedEvent(timestamp: Date): void;
|
|
2705
|
-
sendTransportConnectedEvent(timestamp: Date): void;
|
|
2706
|
-
sendAudioToggleEvent(on: boolean, timestamp: Date): void;
|
|
2707
|
-
sendVideoToggleEvent(on: boolean, timestamp: Date): void;
|
|
2708
|
-
sendParticipantRoleToggleEvent(role: ParticipantRoleData, timestamp: Date): void;
|
|
2709
|
-
startPingStats(interval?: number): void;
|
|
2710
|
-
stopPingStats(): void;
|
|
2711
|
-
sendPingStatsEvent(optimize: boolean, timestamp: Date): Promise<void>;
|
|
2712
|
-
sendIVSPlayerRebufferEvent(timestamp: Date): void;
|
|
2713
|
-
sendIVSPlayerAudioBlockEvent(timestamp: Date): void;
|
|
2714
|
-
sendIVSPlayerPlaybackBlockedEvent(timestamp: Date): void;
|
|
2715
|
-
sendIVSPlayerNetworkUnavailableEvent(timestamp: Date): void;
|
|
2716
|
-
sendIVSPlayerInitializedEvent(timestamp: Date): void;
|
|
2717
|
-
sendIVSPlayerWorkerErrorEvent(timestamp: Date): void;
|
|
2718
|
-
sendIVSPlayerErrorEvent(payload: IVSPlayerErrorData, timestamp: Date): void;
|
|
2719
|
-
sendIVSPlayerRecoverableErrorEvent(payload: IVSPlayerRecoverableErrorData, timestamp: Date): void;
|
|
2720
|
-
sendIVSPlayerAnalyticsEvent(payload: IVSPlayerAnalyticsEventData, timestamp: Date): void;
|
|
2721
|
-
sendIVSPlayerPlaybackRateChangedEvent(updatedPlaybackRate: number, timestamp: Date): void;
|
|
2722
|
-
sendIVSPlayerQualityChanged(payload: IVSPlayerQualityChangedData, timestamp: Date): void;
|
|
2723
|
-
sendPlayerLiveLatency(latency: number, timestamp: Date): void;
|
|
2724
|
-
sendDisconnectEvent(timestamp: Date): void;
|
|
2725
|
-
sendReconnectEvent(timestamp: Date): void;
|
|
2726
|
-
expectedVideoResolution(frameWidth: number, frameHeight: number, timestamp: Date): void;
|
|
2727
|
-
expectedScreenshareResolution(frameWidth: number, frameHeight: number, timestamp: Date): void;
|
|
2728
|
-
}
|
|
2729
|
-
|
|
2730
|
-
declare class InhouseCallStats extends EventEmitter {
|
|
2731
|
-
stats: any;
|
|
2732
|
-
peerId: string;
|
|
2733
|
-
backend: CallStats;
|
|
2734
|
-
iceServers: IceServerInfo[];
|
|
2735
|
-
initialized: boolean;
|
|
2736
|
-
stalled: boolean;
|
|
2737
|
-
ipInformation: Object;
|
|
2738
|
-
logger: DyteLogger;
|
|
2739
|
-
initialize({ peerId, engineName, env, iceServers, apiBase, flags, logger, apiHostnames, skipConnectivityChecks, }: InhouseCallStatsInitializeParams): Promise<void>;
|
|
2740
|
-
configureSendTransport(sendTransport: any): void;
|
|
2741
|
-
configureRecvTransport(recvTransport: any): void;
|
|
2742
|
-
candidateRegionalNetworkQualityTest(regionalIceServersInfo: RegionalIceInformation[]): Promise<void>;
|
|
2743
|
-
roomJoined(peerData: PeerMetaData$1): Promise<void>;
|
|
2744
|
-
audioOff(): void;
|
|
2745
|
-
audioOn(): void;
|
|
2746
|
-
videoOff(): void;
|
|
2747
|
-
videoOn(): void;
|
|
2748
|
-
callEnded(): void;
|
|
2749
|
-
screenShareStart(ssrc?: number): void;
|
|
2750
|
-
consumerSharedMediaState(consumerId: string, statusObj: {
|
|
2751
|
-
audio?: boolean;
|
|
2752
|
-
video?: boolean;
|
|
2753
|
-
screen?: boolean;
|
|
2754
|
-
}): void;
|
|
2755
|
-
screenShareStop(ssrc?: number): void;
|
|
2756
|
-
screenShareRequested(): void;
|
|
2757
|
-
activeSpeaker(peerId: string): void;
|
|
2758
|
-
devices(deviceType: MediaDeviceTypeAll, deviceList: MediaDeviceInfo[]): void;
|
|
2759
|
-
selectedDevice(deviceType: MediaDeviceTypeAll, device: MediaDeviceInfo): void;
|
|
2760
|
-
mediaPermission(deviceType: MediaDeviceTypeAll, permission: MediaPermissions$1): void;
|
|
2761
|
-
mediaPlaybackFailed(deviceType: MediaDeviceTypeAll): void;
|
|
2762
|
-
mediaTrackMuted(deviceType: MediaDeviceTypeAll): void;
|
|
2763
|
-
tabChanged(isMeetingsTabActive?: boolean): void;
|
|
2764
|
-
browserBackgrounded(): void;
|
|
2765
|
-
browserForegrounded(): void;
|
|
2766
|
-
legacySwitch(on: boolean): void;
|
|
2767
|
-
startPreCallTest(skipConnectivityChecks?: boolean): Promise<void>;
|
|
2768
|
-
onPreCallTestResults(fx: any): any;
|
|
2769
|
-
onReceivingConsumerAudioStatus(fx: any): void;
|
|
2770
|
-
onReceivingConsumerVideoStatus(fx: any): void;
|
|
2771
|
-
onReceivingProducerAudioStatus(fx: any): void;
|
|
2772
|
-
onReceivingProducerVideoStatus(fx: any): void;
|
|
2773
|
-
onReceivingProducingTransportStatus(fx: any): void;
|
|
2774
|
-
onReceivingConsumingTransportStatus(fx: any): void;
|
|
2775
|
-
onProducerScore(fx: any): void;
|
|
2776
|
-
onConsumerScore(fx: any): void;
|
|
2777
|
-
private onSafeInitialization;
|
|
2778
|
-
removeInitializationListener(fx: Function): void;
|
|
2779
|
-
stallCallStats(): void;
|
|
2780
|
-
ivsPlayerEvent(type: String, payload: any): void;
|
|
2781
|
-
livestreamLatency(latency: number): void;
|
|
2782
|
-
expectedVideoResolution(frameWidth: number, frameHeight: number): void;
|
|
2783
|
-
expectedScreenshareResolution(frameWidth: number, frameHeight: number): void;
|
|
2784
|
-
}
|
|
2785
|
-
|
|
2786
1852
|
type SocketServiceCapability = keyof typeof Capabilities;
|
|
2787
1853
|
type SocketStateEvent = 'connected' | 'disconnected' | 'reconnected' | 'errored' | 'reconnecting' | 'reconnectAttempt' | 'reconnectFailure' | 'failed';
|
|
2788
1854
|
type SocketServiceCapabilities = SocketServiceCapability[];
|
|
@@ -2873,7 +1939,7 @@ type StringKeysOfFoo = StringKeyOf<Foo>;
|
|
|
2873
1939
|
*/
|
|
2874
1940
|
type StringKeyOf<BaseType> = `${Extract<keyof BaseType, string | number>}`;
|
|
2875
1941
|
|
|
2876
|
-
declare class CustomEventEmitter<T extends string | symbol> extends EventEmitter
|
|
1942
|
+
declare class CustomEventEmitter<T extends string | symbol> extends EventEmitter {
|
|
2877
1943
|
logger: Logger | undefined;
|
|
2878
1944
|
constructor(logger: Logger);
|
|
2879
1945
|
emit(event: T, ...args: any[]): boolean;
|
|
@@ -2894,7 +1960,7 @@ type EventMap$1 = {
|
|
|
2894
1960
|
type WildCardEvent<T> = {
|
|
2895
1961
|
['*']: (event: StringKeyOf<T>, ...args: any) => void;
|
|
2896
1962
|
};
|
|
2897
|
-
declare class TypedEventEmitter$1<Events extends EventMap$1 & WildCardEvent<Events>> extends EventEmitter
|
|
1963
|
+
declare class TypedEventEmitter$1<Events extends EventMap$1 & WildCardEvent<Events>> extends EventEmitter {
|
|
2898
1964
|
logger: Logger | undefined;
|
|
2899
1965
|
constructor(logger: Logger);
|
|
2900
1966
|
emit<E extends StringKeyOf<Events>>(event: E, ...args: Parameters<Events[E]>): boolean;
|
|
@@ -4696,9 +3762,9 @@ declare class BrowserCapabilities extends BrowserDetection {
|
|
|
4696
3762
|
declare class Features {
|
|
4697
3763
|
constructor(context: Context<ContextState>);
|
|
4698
3764
|
hasFeature(featureName: string): boolean;
|
|
4699
|
-
getFeatureValue(featureName: string):
|
|
3765
|
+
getFeatureValue(featureName: string): _cloudflare_realtimekit_utils.FlagValues;
|
|
4700
3766
|
getAllFeatures(): {
|
|
4701
|
-
[x: string]:
|
|
3767
|
+
[x: string]: _cloudflare_realtimekit_utils.FlagsEntry;
|
|
4702
3768
|
};
|
|
4703
3769
|
}
|
|
4704
3770
|
|
|
@@ -4800,6 +3866,7 @@ declare class MediaNodeClient {
|
|
|
4800
3866
|
reset(): void;
|
|
4801
3867
|
joinRoom(displayName: string, roomUuid: string, forceFullReset?: boolean, rejoining?: boolean, permissions?: MediaPermissions): Promise<{
|
|
4802
3868
|
roomJoined: boolean;
|
|
3869
|
+
error?: Error;
|
|
4803
3870
|
}>;
|
|
4804
3871
|
initializeConnection(displayName: string, roomUuid: string, rejoining?: boolean, permissions?: MediaPermissions): Promise<void>;
|
|
4805
3872
|
getConsumers(): Map<string, Consumer>;
|
|
@@ -5289,7 +4356,7 @@ interface Context<T extends Record<string, any>> {
|
|
|
5289
4356
|
getAllValues: () => T;
|
|
5290
4357
|
}
|
|
5291
4358
|
|
|
5292
|
-
declare class EnhancedEventEmitter<TransportPromiseEvents> extends EventEmitter
|
|
4359
|
+
declare class EnhancedEventEmitter<TransportPromiseEvents> extends EventEmitter {
|
|
5293
4360
|
get logger(): Logger;
|
|
5294
4361
|
constructor(context: Context<ContextState>);
|
|
5295
4362
|
safeEmit(event: string, ...args: any[]): boolean;
|
|
@@ -5479,7 +4546,7 @@ declare class Participant extends TypedEventEmitter$1<ParticipantEvents> {
|
|
|
5479
4546
|
disableAudio(): Promise<void>;
|
|
5480
4547
|
kick(): Promise<void>;
|
|
5481
4548
|
disableVideo(): Promise<void>;
|
|
5482
|
-
getPermissions(): Promise<Pick<
|
|
4549
|
+
getPermissions(): Promise<Pick<_cloudflare_realtimekit_utils.Permissions, "chat" | "polls" | "plugins">>;
|
|
5483
4550
|
setStageStatus(stageStatus: StageStatus): void;
|
|
5484
4551
|
get isPinned(): boolean;
|
|
5485
4552
|
registerVideoElement(videoElem: HTMLVideoElement): void;
|
|
@@ -5953,4 +5020,4 @@ declare global {
|
|
|
5953
5020
|
}
|
|
5954
5021
|
}
|
|
5955
5022
|
|
|
5956
|
-
export { ActiveTab, ActiveTabType,
|
|
5023
|
+
export { ActiveTab, ActiveTabType, AudioMiddleware, BroadcastMessagePayload, CachedUserDetails, ChatUpdateParams, ClientError, CustomMessage, DeviceConfig, FileMessage, ImageMessage, JoinedPeer, LeaveRoomState, LivestreamIngestionCredentials, LivestreamState, LogData, MediaConnectionState, MediaConnectionUpdate, MediaConstraints, MediaKind, MediaPermission, Message, BasicParticipant as RTKBasicParticipant, BasicParticipantsMap as RTKBasicParticipantsMap, RTKChat, ClientOptions as RTKClientOptions, RTKConfigOptions, RTKConnectedMeetings, RTKLivestream, RTKLogger, RTKMeta, RTKParticipant, RTKParticipantMap, RTKParticipants, RTKPermissionsPreset, RTKPlugin, RTKPluginMap, RTKPlugins, RTKPolls, RTKRecording, RTKSelf, RTKSelfMedia, RTKStore, StoreData as RTKStoreData, RateLimitConfig as RTKStoreRateLimitConfig, RTKThemePreset, RecordingState, RequestToJoinType, SocketConnectionState, StageStatus, StartLivestreamConfig, TextMessage, UserDetailsResponseV2, VideoMiddleware, VideoQualityConstraints, Client as default, LeaveRoomState as leaveRoomState };
|