@webex/web-client-media-engine 3.21.0 → 3.22.1
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 +1384 -1372
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +1384 -1372
- package/dist/esm/index.js.map +1 -1
- package/dist/types/index.d.ts +12 -9
- 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",
|
|
@@ -78,7 +78,7 @@ declare class ReceiveSlot extends EventEmitter<ReceiverEvents> {
|
|
|
78
78
|
static Events: typeof ReceiveSlotEvents;
|
|
79
79
|
private _idGetter;
|
|
80
80
|
private _stream;
|
|
81
|
-
private _sourceState
|
|
81
|
+
private _sourceState?;
|
|
82
82
|
private _currentRxCsi?;
|
|
83
83
|
constructor(idGetter: () => ReceiveSlotId | null, track: MediaStreamTrack);
|
|
84
84
|
private handleStreamMediaStateChange;
|
|
@@ -89,6 +89,7 @@ declare class ReceiveSlot extends EventEmitter<ReceiverEvents> {
|
|
|
89
89
|
get id(): ReceiveSlotId | null;
|
|
90
90
|
get stream(): MediaStream;
|
|
91
91
|
get currentRxCsi(): number | undefined;
|
|
92
|
+
get sourceState(): StreamState | undefined;
|
|
92
93
|
}
|
|
93
94
|
|
|
94
95
|
declare class EgressSdpMunger {
|
|
@@ -110,7 +111,7 @@ declare class EgressSdpMunger {
|
|
|
110
111
|
deleteCodecParameters(parameters: string[]): void;
|
|
111
112
|
}
|
|
112
113
|
|
|
113
|
-
|
|
114
|
+
type StatsMap = Map<string, any>;
|
|
114
115
|
|
|
115
116
|
declare abstract class Transceiver {
|
|
116
117
|
protected _rtcRtpTransceiver: RTCRtpTransceiver;
|
|
@@ -225,9 +226,9 @@ interface TransceiverStats {
|
|
|
225
226
|
};
|
|
226
227
|
}
|
|
227
228
|
|
|
228
|
-
|
|
229
|
+
type BundlePolicy = 'max-bundle' | 'max-compat';
|
|
229
230
|
|
|
230
|
-
|
|
231
|
+
type MetricsCallback = (logData: LogData) => void;
|
|
231
232
|
|
|
232
233
|
declare enum MultistreamConnectionEventNames {
|
|
233
234
|
VideoSourceCountUpdate = "video-source-count-update",
|
|
@@ -240,7 +241,8 @@ declare enum MultistreamConnectionEventNames {
|
|
|
240
241
|
CreateOfferOnSuccess = "createofferonsuccess",
|
|
241
242
|
CreateAnswerOnSuccess = "createansweronsuccess",
|
|
242
243
|
SetLocalDescriptionOnSuccess = "setlocaldescriptiononsuccess",
|
|
243
|
-
SetRemoteDescriptionOnSuccess = "setremotedescriptiononsuccess"
|
|
244
|
+
SetRemoteDescriptionOnSuccess = "setremotedescriptiononsuccess",
|
|
245
|
+
IceCandidateError = "icecandidateerror"
|
|
244
246
|
}
|
|
245
247
|
interface MultistreamConnectionEvents extends EventMap {
|
|
246
248
|
[MultistreamConnectionEventNames.ActiveSpeakerNotification]: (csis: number[]) => void;
|
|
@@ -254,8 +256,9 @@ interface MultistreamConnectionEvents extends EventMap {
|
|
|
254
256
|
[MultistreamConnectionEventNames.CreateOfferOnSuccess]: (offer: RTCSessionDescriptionInit) => void;
|
|
255
257
|
[MultistreamConnectionEventNames.SetLocalDescriptionOnSuccess]: (description: RTCSessionDescriptionInit) => void;
|
|
256
258
|
[MultistreamConnectionEventNames.SetRemoteDescriptionOnSuccess]: (description: RTCSessionDescriptionInit) => void;
|
|
259
|
+
[MultistreamConnectionEventNames.IceCandidateError]: (error: RTCPeerConnectionIceErrorEvent) => void;
|
|
257
260
|
}
|
|
258
|
-
|
|
261
|
+
type MultistreamConnectionOptions = {
|
|
259
262
|
disableSimulcast: boolean;
|
|
260
263
|
bundlePolicy: BundlePolicy;
|
|
261
264
|
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.1",
|
|
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",
|