@webex/web-client-media-engine 3.9.0 → 3.10.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 +2070 -2038
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +2069 -2038
- package/dist/esm/index.js.map +1 -1
- package/dist/types/index.d.ts +21 -4
- package/package.json +2 -2
package/dist/types/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { LocalStream, ConnectionState } from '@webex/webrtc-core';
|
|
2
|
-
export { AudioDeviceConstraints, ConnectionState, LocalCameraStream, LocalDisplayStream, LocalMicrophoneStream, LocalStream, LocalStreamEventNames, LocalSystemAudioStream, MediaStreamTrackKind, PeerConnection, RemoteStream, StreamEventNames, VideoContentHint, VideoDeviceConstraints,
|
|
2
|
+
export { AudioDeviceConstraints, ConnectionState, LocalCameraStream, LocalDisplayStream, LocalMicrophoneStream, LocalStream, LocalStreamEventNames, LocalSystemAudioStream, MediaStreamTrackKind, PeerConnection, RemoteStream, StreamEventNames, VideoContentHint, VideoDeviceConstraints, Logger as WebRtcCoreLogger, WebrtcCoreError, WebrtcCoreErrorType, createCameraStream, createDisplayStream, createDisplayStreamWithAudio, createMicrophoneStream, getAudioInputDevices, getAudioOutputDevices, getDevices, getVideoInputDevices, setOnDeviceChangeHandler } from '@webex/webrtc-core';
|
|
3
3
|
import { StreamId, StreamState, MediaContent, NamedMediaGroup, MediaType, Policy, PolicySpecificInfo, CodecInfo, StreamRequest as StreamRequest$1 } from '@webex/json-multistream';
|
|
4
4
|
export { ActiveSpeakerInfo, CodecInfo, H264Codec, Logger as JMPLogger, MediaContent, MediaFamily, MediaType, Policy, PolicySpecificInfo, ReceiverSelectedInfo, StreamState, getMediaContent, getMediaFamily, getMediaType } from '@webex/json-multistream';
|
|
5
5
|
import { LogData } from '@webex/rtcstats';
|
|
@@ -8,7 +8,6 @@ import TypedEmitter, { EventMap } from 'typed-emitter';
|
|
|
8
8
|
import { TypedEvent } from '@webex/ts-events';
|
|
9
9
|
import { AvMediaDescription } from '@webex/ts-sdp';
|
|
10
10
|
import { ReceiveSlot as ReceiveSlot$1 } from 'receive-slot';
|
|
11
|
-
import * as js_logger from 'js-logger';
|
|
12
11
|
import { ILogLevel, ILogHandler } from 'js-logger';
|
|
13
12
|
export { ILogHandler, default as Logger } from 'js-logger';
|
|
14
13
|
|
|
@@ -32,6 +31,24 @@ declare enum RecommendedOpusBitrates {
|
|
|
32
31
|
}
|
|
33
32
|
declare function getRecommendedMaxBitrateForFrameSize(requestedMaxFs: number): number | undefined;
|
|
34
33
|
|
|
34
|
+
declare enum WcmeErrorType {
|
|
35
|
+
CREATE_OFFER_FAILED = "CREATE_OFFER_FAILED",
|
|
36
|
+
SET_ANSWER_FAILED = "SET_ANSWER_FAILED",
|
|
37
|
+
OFFER_ANSWER_MISMATCH = "OFFER_ANSWER_MISMATCH",
|
|
38
|
+
SDP_MUNGE_FAILED = "SDP_MUNGE_FAILED",
|
|
39
|
+
SDP_MUNGE_MISSING_CODECS = "SDP_MUNGE_MISSING_CODECS",
|
|
40
|
+
INVALID_STREAM_REQUEST = "INVALID_STREAM_REQUEST",
|
|
41
|
+
GET_TRANSCEIVER_FAILED = "GET_TRANSCEIVER_FAILED",
|
|
42
|
+
GET_MAX_BITRATE_FAILED = "GET_MAX_BITRATE_FAILED",
|
|
43
|
+
GET_PAYLOAD_TYPE_FAILED = "GET_PAYLOAD_TYPE_FAILED",
|
|
44
|
+
SET_NMG_FAILED = "SET_NMG_FAILED"
|
|
45
|
+
}
|
|
46
|
+
declare class WcmeError {
|
|
47
|
+
type: string;
|
|
48
|
+
message: string;
|
|
49
|
+
constructor(type: WcmeErrorType, message?: string);
|
|
50
|
+
}
|
|
51
|
+
|
|
35
52
|
declare const EventEmitter_base: new <TT extends EventMap>() => TypedEmitter<TT>;
|
|
36
53
|
declare class EventEmitter<T extends EventMap> extends EventEmitter_base<T> {
|
|
37
54
|
}
|
|
@@ -277,9 +294,9 @@ declare class MultistreamConnection extends EventEmitter<MultistreamConnectionEv
|
|
|
277
294
|
getAllCsis(): Record<string, number | undefined>;
|
|
278
295
|
}
|
|
279
296
|
|
|
280
|
-
declare const logger: js_logger.ILogger;
|
|
281
297
|
declare function setLogLevel(level: ILogLevel): void;
|
|
282
298
|
declare function getLogLevel(): ILogLevel;
|
|
299
|
+
declare function logErrorAndThrow(errorType: WcmeErrorType, message: string): never;
|
|
283
300
|
declare function setLogHandler(logHandler: ILogHandler): void;
|
|
284
301
|
|
|
285
|
-
export { MediaCodecMimeType, MetricsCallback, MultistreamConnection, MultistreamConnectionEventNames, MultistreamConnectionEvents, ReceiveSlot, ReceiveSlotEvents, ReceiveSlotId, ReceiverEvents, RecommendedOpusBitrates, SendSlot, StreamRequest, TransceiverStats, compareReceiveSlotIds, getLogLevel, getRecommendedMaxBitrateForFrameSize,
|
|
302
|
+
export { MediaCodecMimeType, MetricsCallback, MultistreamConnection, MultistreamConnectionEventNames, MultistreamConnectionEvents, ReceiveSlot, ReceiveSlotEvents, ReceiveSlotId, ReceiverEvents, RecommendedOpusBitrates, SendSlot, StreamRequest, TransceiverStats, WcmeError, WcmeErrorType, compareReceiveSlotIds, getLogLevel, getRecommendedMaxBitrateForFrameSize, logErrorAndThrow, setLogHandler, setLogLevel };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webex/web-client-media-engine",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.10.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",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"@webex/ts-events": "^1.0.1",
|
|
60
60
|
"@webex/ts-sdp": "1.5.0",
|
|
61
61
|
"@webex/web-capabilities": "^1.1.1",
|
|
62
|
-
"@webex/webrtc-core": "2.2.
|
|
62
|
+
"@webex/webrtc-core": "2.2.3",
|
|
63
63
|
"async": "^3.2.4",
|
|
64
64
|
"js-logger": "^1.6.1",
|
|
65
65
|
"typed-emitter": "^2.1.0",
|