@webex/web-client-media-engine 3.15.8 → 3.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.js +76 -67
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +76 -67
- package/dist/esm/index.js.map +1 -1
- package/dist/types/index.d.ts +10 -5
- package/package.json +1 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -110,6 +110,8 @@ declare class EgressSdpMunger {
|
|
|
110
110
|
deleteCodecParameters(parameters: string[]): void;
|
|
111
111
|
}
|
|
112
112
|
|
|
113
|
+
declare type StatsMap = Map<string, any>;
|
|
114
|
+
|
|
113
115
|
declare abstract class Transceiver {
|
|
114
116
|
protected _rtcRtpTransceiver: RTCRtpTransceiver;
|
|
115
117
|
mid: string;
|
|
@@ -153,10 +155,10 @@ declare class SendOnlyTransceiver extends Transceiver {
|
|
|
153
155
|
unpublishStream(): Promise<void>;
|
|
154
156
|
get active(): boolean;
|
|
155
157
|
set active(enabled: boolean);
|
|
156
|
-
getStats(): Promise<
|
|
158
|
+
getStats(): Promise<StatsMap>;
|
|
157
159
|
updateSendParameters(requestedIdEncodingParamsMap: Map<number, EncodingParams>): Promise<void>;
|
|
158
|
-
getRequestedBitrate
|
|
159
|
-
getRequestedFrameSize
|
|
160
|
+
private getRequestedBitrate;
|
|
161
|
+
private getRequestedFrameSize;
|
|
160
162
|
private isSimulcastEnabled;
|
|
161
163
|
mungeLocalDescription(mediaDescription: AvMediaDescription): void;
|
|
162
164
|
mungeLocalDescriptionForRemoteServer(mediaDescription: AvMediaDescription): void;
|
|
@@ -197,7 +199,7 @@ declare class StreamRequest {
|
|
|
197
199
|
}
|
|
198
200
|
|
|
199
201
|
interface TransceiverStatItem {
|
|
200
|
-
report:
|
|
202
|
+
report: StatsMap;
|
|
201
203
|
currentDirection: RTCRtpTransceiverDirection;
|
|
202
204
|
csi?: number;
|
|
203
205
|
mid?: string | null;
|
|
@@ -231,6 +233,7 @@ declare enum MultistreamConnectionEventNames {
|
|
|
231
233
|
AudioSourceCountUpdate = "audio-source-count-update",
|
|
232
234
|
ActiveSpeakerNotification = "active-speaker-notification",
|
|
233
235
|
ConnectionStateUpdate = "connection-state-update",
|
|
236
|
+
IceGatheringStateUpdate = "ice-gathering-state-update",
|
|
234
237
|
NegotiationNeeded = "negotiation-needed",
|
|
235
238
|
CreateOfferOnSuccess = "createofferonsuccess",
|
|
236
239
|
CreateAnswerOnSuccess = "createansweronsuccess",
|
|
@@ -242,6 +245,7 @@ interface MultistreamConnectionEvents extends EventMap {
|
|
|
242
245
|
[MultistreamConnectionEventNames.VideoSourceCountUpdate]: (numTotalSources: number, numLiveSources: number, mediaContent: MediaContent) => void;
|
|
243
246
|
[MultistreamConnectionEventNames.AudioSourceCountUpdate]: (numTotalSources: number, numLiveSources: number, mediaContent: MediaContent) => void;
|
|
244
247
|
[MultistreamConnectionEventNames.ConnectionStateUpdate]: (state: ConnectionState) => void;
|
|
248
|
+
[MultistreamConnectionEventNames.IceGatheringStateUpdate]: (state: RTCIceGatheringState) => void;
|
|
245
249
|
[MultistreamConnectionEventNames.NegotiationNeeded]: () => void;
|
|
246
250
|
[MultistreamConnectionEventNames.CreateAnswerOnSuccess]: (answer: RTCSessionDescriptionInit) => void;
|
|
247
251
|
[MultistreamConnectionEventNames.CreateOfferOnSuccess]: (offer: RTCSessionDescriptionInit) => void;
|
|
@@ -276,6 +280,7 @@ declare class MultistreamConnection extends EventEmitter<MultistreamConnectionEv
|
|
|
276
280
|
private initializePeerConnection;
|
|
277
281
|
private propagatePeerConnectionEvents;
|
|
278
282
|
getConnectionState(): ConnectionState;
|
|
283
|
+
getIceGatheringState(): RTCIceGatheringState;
|
|
279
284
|
private getVideoEncodingOptions;
|
|
280
285
|
private createSendTransceiver;
|
|
281
286
|
createSendSlot(mediaType: MediaType, active?: boolean): SendSlot;
|
|
@@ -303,7 +308,7 @@ declare class MultistreamConnection extends EventEmitter<MultistreamConnectionEv
|
|
|
303
308
|
requestMedia(mediaType: MediaType, streamRequests: StreamRequest[]): void;
|
|
304
309
|
renewPeerConnection(userOptions?: Partial<MultistreamConnectionOptions>): void;
|
|
305
310
|
private getReceiveSlotById;
|
|
306
|
-
getStats(): Promise<
|
|
311
|
+
getStats(): Promise<StatsMap>;
|
|
307
312
|
getTransceiverStats(): Promise<TransceiverStats>;
|
|
308
313
|
private preProcessStats;
|
|
309
314
|
private attachMetricsObserver;
|
package/package.json
CHANGED