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