@webex/web-client-media-engine 3.20.3 → 3.21.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.
@@ -1,5 +1,5 @@
1
- import { LocalStream, ConnectionState, media } from '@webex/webrtc-core';
2
- export { AudioDeviceConstraints, ConnectionState, LocalCameraStream, LocalDisplayStream, LocalMicrophoneStream, LocalStream, LocalStreamEventNames, LocalSystemAudioStream, MediaStreamTrackKind, PeerConnection, RemoteMediaState, RemoteStream, RemoteStreamEventNames, StreamEventNames, VideoContentHint, VideoDeviceConstraints, Logger as WebRtcCoreLogger, WebrtcCoreError, WebrtcCoreErrorType, createCameraStream, createDisplayStream, createDisplayStreamWithAudio, createMicrophoneStream, getAudioInputDevices, getAudioOutputDevices, getDevices, getVideoInputDevices, setOnDeviceChangeHandler } from '@webex/webrtc-core';
1
+ import { LocalStream, ConnectionState, ConnectionType, media } from '@webex/webrtc-core';
2
+ export { AudioDeviceConstraints, ConnectionState, ConnectionType, LocalCameraStream, LocalDisplayStream, LocalMicrophoneStream, LocalStream, LocalStreamEventNames, LocalSystemAudioStream, MediaStreamTrackKind, PeerConnection, RemoteMediaState, RemoteStream, RemoteStreamEventNames, 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, NamedMediaGroup, Policy, PolicySpecificInfo, ReceiverSelectedInfo, StreamState, getMediaContent, getMediaFamily, getMediaType } from '@webex/json-multistream';
5
5
  import { LogData } from '@webex/rtcstats';
@@ -233,7 +233,8 @@ declare enum MultistreamConnectionEventNames {
233
233
  VideoSourceCountUpdate = "video-source-count-update",
234
234
  AudioSourceCountUpdate = "audio-source-count-update",
235
235
  ActiveSpeakerNotification = "active-speaker-notification",
236
- ConnectionStateUpdate = "connection-state-update",
236
+ PeerConnectionStateUpdate = "peer-connection-state-update",
237
+ IceConnectionStateUpdate = "ice-connection-state-update",
237
238
  IceGatheringStateUpdate = "ice-gathering-state-update",
238
239
  NegotiationNeeded = "negotiation-needed",
239
240
  CreateOfferOnSuccess = "createofferonsuccess",
@@ -245,7 +246,8 @@ interface MultistreamConnectionEvents extends EventMap {
245
246
  [MultistreamConnectionEventNames.ActiveSpeakerNotification]: (csis: number[]) => void;
246
247
  [MultistreamConnectionEventNames.VideoSourceCountUpdate]: (numTotalSources: number, numLiveSources: number, mediaContent: MediaContent) => void;
247
248
  [MultistreamConnectionEventNames.AudioSourceCountUpdate]: (numTotalSources: number, numLiveSources: number, mediaContent: MediaContent) => void;
248
- [MultistreamConnectionEventNames.ConnectionStateUpdate]: (state: ConnectionState) => void;
249
+ [MultistreamConnectionEventNames.PeerConnectionStateUpdate]: (state: RTCPeerConnectionState) => void;
250
+ [MultistreamConnectionEventNames.IceConnectionStateUpdate]: (state: RTCIceConnectionState) => void;
249
251
  [MultistreamConnectionEventNames.IceGatheringStateUpdate]: (state: RTCIceGatheringState) => void;
250
252
  [MultistreamConnectionEventNames.NegotiationNeeded]: () => void;
251
253
  [MultistreamConnectionEventNames.CreateAnswerOnSuccess]: (answer: RTCSessionDescriptionInit) => void;
@@ -281,6 +283,9 @@ declare class MultistreamConnection extends EventEmitter<MultistreamConnectionEv
281
283
  private initializePeerConnection;
282
284
  private propagatePeerConnectionEvents;
283
285
  getConnectionState(): ConnectionState;
286
+ getPeerConnectionState(): RTCPeerConnectionState;
287
+ getIceConnectionState(): RTCIceConnectionState;
288
+ getCurrentConnectionType(): Promise<ConnectionType>;
284
289
  getIceGatheringState(): RTCIceGatheringState;
285
290
  private getVideoEncodingOptions;
286
291
  private createSendTransceiver;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webex/web-client-media-engine",
3
- "version": "3.20.3",
3
+ "version": "3.21.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",
@@ -56,11 +56,11 @@
56
56
  },
57
57
  "dependencies": {
58
58
  "@webex/json-multistream": "2.1.3",
59
- "@webex/rtcstats": "^1.3.1",
59
+ "@webex/rtcstats": "^1.3.2",
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.7.0",
63
+ "@webex/webrtc-core": "2.8.0",
64
64
  "@webex/web-media-effects": "^2.15.6",
65
65
  "async": "^3.2.4",
66
66
  "js-logger": "^1.6.1",