@webex/web-client-media-engine 3.0.2 → 3.2.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 +30 -19
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +30 -19
- package/dist/esm/index.js.map +1 -1
- package/dist/types/index.d.ts +13 -6
- package/package.json +1 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -99,6 +99,10 @@ declare abstract class Transceiver {
|
|
|
99
99
|
abstract resetStreamSignaler(): void;
|
|
100
100
|
}
|
|
101
101
|
|
|
102
|
+
declare enum OfferAnswerType {
|
|
103
|
+
LocalOnly = 0,
|
|
104
|
+
Remote = 1
|
|
105
|
+
}
|
|
102
106
|
declare class SendOnlyTransceiver extends Transceiver {
|
|
103
107
|
publishedStream?: LocalStream;
|
|
104
108
|
csi: number;
|
|
@@ -107,6 +111,7 @@ declare class SendOnlyTransceiver extends Transceiver {
|
|
|
107
111
|
rtxEnabled: boolean;
|
|
108
112
|
streamMuteStateChange: TypedEvent<() => void>;
|
|
109
113
|
streamPublishStateChange: TypedEvent<() => void>;
|
|
114
|
+
negotiationNeeded: TypedEvent<(offerAnswerType: OfferAnswerType) => void>;
|
|
110
115
|
private mediaType;
|
|
111
116
|
private requested;
|
|
112
117
|
private requestedIdEncodingParamsMap;
|
|
@@ -119,7 +124,7 @@ declare class SendOnlyTransceiver extends Transceiver {
|
|
|
119
124
|
setStreamRequested(requested: boolean): Promise<void>;
|
|
120
125
|
publishStream(stream: LocalStream): Promise<void>;
|
|
121
126
|
unpublishStream(): Promise<void>;
|
|
122
|
-
setActive(enabled: boolean):
|
|
127
|
+
setActive(enabled: boolean): void;
|
|
123
128
|
getStats(): Promise<RTCStatsReport>;
|
|
124
129
|
updateSendParameters(requestedIdEncodingParamsMap: Map<number, EncodingParams>): Promise<void>;
|
|
125
130
|
private isSimulcastEnabled;
|
|
@@ -140,6 +145,10 @@ declare class SendSlot {
|
|
|
140
145
|
publishStream(stream: LocalStream): Promise<void>;
|
|
141
146
|
unpublishStream(): Promise<void>;
|
|
142
147
|
set active(active: boolean);
|
|
148
|
+
setCodecParameters(parameters: {
|
|
149
|
+
[key: string]: string | undefined;
|
|
150
|
+
}): Promise<void>;
|
|
151
|
+
deleteCodecParameters(parameters: string[]): Promise<void>;
|
|
143
152
|
}
|
|
144
153
|
|
|
145
154
|
declare class StreamRequest {
|
|
@@ -183,13 +192,15 @@ declare enum MultistreamConnectionEventNames {
|
|
|
183
192
|
VideoSourceCountUpdate = "video-source-count-update",
|
|
184
193
|
AudioSourceCountUpdate = "audio-source-count-update",
|
|
185
194
|
ActiveSpeakerNotification = "active-speaker-notification",
|
|
186
|
-
ConnectionStateUpdate = "connection-state-update"
|
|
195
|
+
ConnectionStateUpdate = "connection-state-update",
|
|
196
|
+
NegotiationNeeded = "negotiation-needed"
|
|
187
197
|
}
|
|
188
198
|
interface MultistreamConnectionEvents extends EventMap {
|
|
189
199
|
[MultistreamConnectionEventNames.ActiveSpeakerNotification]: (csis: number[]) => void;
|
|
190
200
|
[MultistreamConnectionEventNames.VideoSourceCountUpdate]: (numTotalSources: number, numLiveSources: number, mediaContent: MediaContent) => void;
|
|
191
201
|
[MultistreamConnectionEventNames.AudioSourceCountUpdate]: (numTotalSources: number, numLiveSources: number, mediaContent: MediaContent) => void;
|
|
192
202
|
[MultistreamConnectionEventNames.ConnectionStateUpdate]: (state: ConnectionState) => void;
|
|
203
|
+
[MultistreamConnectionEventNames.NegotiationNeeded]: () => void;
|
|
193
204
|
}
|
|
194
205
|
declare type MultistreamConnectionOptions = {
|
|
195
206
|
disableSimulcast: boolean;
|
|
@@ -238,10 +249,6 @@ declare class MultistreamConnection extends EventEmitter<MultistreamConnectionEv
|
|
|
238
249
|
private getSendTransceiverOrThrow;
|
|
239
250
|
private getSendTransceiverByMidOrThrow;
|
|
240
251
|
private getRecvTransceiverByMidOrThrow;
|
|
241
|
-
setCodecParameters(mediaType: MediaType, parameters: {
|
|
242
|
-
[key: string]: string | undefined;
|
|
243
|
-
}): Promise<void>;
|
|
244
|
-
deleteCodecParameters(mediaType: MediaType, parameters: string[]): Promise<void>;
|
|
245
252
|
requestMedia(mediaType: MediaType, streamRequests: StreamRequest[]): void;
|
|
246
253
|
renewPeerConnection(userOptions?: Partial<MultistreamConnectionOptions>): void;
|
|
247
254
|
private getReceiveSlotById;
|
package/package.json
CHANGED