@webex/web-client-media-engine 3.21.0 → 3.22.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 +1379 -1371
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +1379 -1371
- package/dist/esm/index.js.map +1 -1
- package/dist/types/index.d.ts +10 -8
- package/package.json +2 -2
package/dist/types/index.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ declare enum MediaCodecMimeType {
|
|
|
15
15
|
AV1 = "video/AV1",
|
|
16
16
|
OPUS = "audio/opus"
|
|
17
17
|
}
|
|
18
|
-
|
|
18
|
+
type EncodingParams = {
|
|
19
19
|
maxPayloadBitsPerSecond?: number;
|
|
20
20
|
maxFs?: number;
|
|
21
21
|
maxWidth?: number;
|
|
@@ -58,9 +58,9 @@ declare enum OveruseState {
|
|
|
58
58
|
OVERUSED = 1
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
-
|
|
61
|
+
type OveruseUpdateCallback = (state: OveruseState) => void;
|
|
62
62
|
|
|
63
|
-
|
|
63
|
+
type ReceiveSlotId = StreamId;
|
|
64
64
|
declare function compareReceiveSlotIds(id1: ReceiveSlotId, id2: ReceiveSlotId): boolean;
|
|
65
65
|
declare enum ReceiveSlotEvents {
|
|
66
66
|
MediaStarted = "media-started",
|
|
@@ -110,7 +110,7 @@ declare class EgressSdpMunger {
|
|
|
110
110
|
deleteCodecParameters(parameters: string[]): void;
|
|
111
111
|
}
|
|
112
112
|
|
|
113
|
-
|
|
113
|
+
type StatsMap = Map<string, any>;
|
|
114
114
|
|
|
115
115
|
declare abstract class Transceiver {
|
|
116
116
|
protected _rtcRtpTransceiver: RTCRtpTransceiver;
|
|
@@ -225,9 +225,9 @@ interface TransceiverStats {
|
|
|
225
225
|
};
|
|
226
226
|
}
|
|
227
227
|
|
|
228
|
-
|
|
228
|
+
type BundlePolicy = 'max-bundle' | 'max-compat';
|
|
229
229
|
|
|
230
|
-
|
|
230
|
+
type MetricsCallback = (logData: LogData) => void;
|
|
231
231
|
|
|
232
232
|
declare enum MultistreamConnectionEventNames {
|
|
233
233
|
VideoSourceCountUpdate = "video-source-count-update",
|
|
@@ -240,7 +240,8 @@ declare enum MultistreamConnectionEventNames {
|
|
|
240
240
|
CreateOfferOnSuccess = "createofferonsuccess",
|
|
241
241
|
CreateAnswerOnSuccess = "createansweronsuccess",
|
|
242
242
|
SetLocalDescriptionOnSuccess = "setlocaldescriptiononsuccess",
|
|
243
|
-
SetRemoteDescriptionOnSuccess = "setremotedescriptiononsuccess"
|
|
243
|
+
SetRemoteDescriptionOnSuccess = "setremotedescriptiononsuccess",
|
|
244
|
+
IceCandidateError = "icecandidateerror"
|
|
244
245
|
}
|
|
245
246
|
interface MultistreamConnectionEvents extends EventMap {
|
|
246
247
|
[MultistreamConnectionEventNames.ActiveSpeakerNotification]: (csis: number[]) => void;
|
|
@@ -254,8 +255,9 @@ interface MultistreamConnectionEvents extends EventMap {
|
|
|
254
255
|
[MultistreamConnectionEventNames.CreateOfferOnSuccess]: (offer: RTCSessionDescriptionInit) => void;
|
|
255
256
|
[MultistreamConnectionEventNames.SetLocalDescriptionOnSuccess]: (description: RTCSessionDescriptionInit) => void;
|
|
256
257
|
[MultistreamConnectionEventNames.SetRemoteDescriptionOnSuccess]: (description: RTCSessionDescriptionInit) => void;
|
|
258
|
+
[MultistreamConnectionEventNames.IceCandidateError]: (error: RTCPeerConnectionIceErrorEvent) => void;
|
|
257
259
|
}
|
|
258
|
-
|
|
260
|
+
type MultistreamConnectionOptions = {
|
|
259
261
|
disableSimulcast: boolean;
|
|
260
262
|
bundlePolicy: BundlePolicy;
|
|
261
263
|
iceServers: RTCIceServer[] | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webex/web-client-media-engine",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.22.0",
|
|
4
4
|
"description": "Web Client Media Engine is common web code for interacting with the multistream media server.",
|
|
5
5
|
"source": "src/index.ts",
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"@webex/ts-events": "^1.0.1",
|
|
61
61
|
"@webex/ts-sdp": "1.6.0",
|
|
62
62
|
"@webex/web-capabilities": "^1.3.0",
|
|
63
|
-
"@webex/webrtc-core": "2.
|
|
63
|
+
"@webex/webrtc-core": "2.10.0",
|
|
64
64
|
"@webex/web-media-effects": "^2.15.6",
|
|
65
65
|
"async": "^3.2.4",
|
|
66
66
|
"js-logger": "^1.6.1",
|