@webex/web-client-media-engine 3.0.2 → 3.1.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.
@@ -107,6 +107,7 @@ declare class SendOnlyTransceiver extends Transceiver {
107
107
  rtxEnabled: boolean;
108
108
  streamMuteStateChange: TypedEvent<() => void>;
109
109
  streamPublishStateChange: TypedEvent<() => void>;
110
+ negotiationNeeded: TypedEvent<() => void>;
110
111
  private mediaType;
111
112
  private requested;
112
113
  private requestedIdEncodingParamsMap;
@@ -119,7 +120,7 @@ declare class SendOnlyTransceiver extends Transceiver {
119
120
  setStreamRequested(requested: boolean): Promise<void>;
120
121
  publishStream(stream: LocalStream): Promise<void>;
121
122
  unpublishStream(): Promise<void>;
122
- setActive(enabled: boolean): boolean;
123
+ setActive(enabled: boolean): void;
123
124
  getStats(): Promise<RTCStatsReport>;
124
125
  updateSendParameters(requestedIdEncodingParamsMap: Map<number, EncodingParams>): Promise<void>;
125
126
  private isSimulcastEnabled;
@@ -183,13 +184,15 @@ declare enum MultistreamConnectionEventNames {
183
184
  VideoSourceCountUpdate = "video-source-count-update",
184
185
  AudioSourceCountUpdate = "audio-source-count-update",
185
186
  ActiveSpeakerNotification = "active-speaker-notification",
186
- ConnectionStateUpdate = "connection-state-update"
187
+ ConnectionStateUpdate = "connection-state-update",
188
+ NegotiationNeeded = "negotiation-needed"
187
189
  }
188
190
  interface MultistreamConnectionEvents extends EventMap {
189
191
  [MultistreamConnectionEventNames.ActiveSpeakerNotification]: (csis: number[]) => void;
190
192
  [MultistreamConnectionEventNames.VideoSourceCountUpdate]: (numTotalSources: number, numLiveSources: number, mediaContent: MediaContent) => void;
191
193
  [MultistreamConnectionEventNames.AudioSourceCountUpdate]: (numTotalSources: number, numLiveSources: number, mediaContent: MediaContent) => void;
192
194
  [MultistreamConnectionEventNames.ConnectionStateUpdate]: (state: ConnectionState) => void;
195
+ [MultistreamConnectionEventNames.NegotiationNeeded]: () => void;
193
196
  }
194
197
  declare type MultistreamConnectionOptions = {
195
198
  disableSimulcast: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webex/web-client-media-engine",
3
- "version": "3.0.2",
3
+ "version": "3.1.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",