@webex/web-client-media-engine 3.15.8 → 3.16.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/esm/index.js CHANGED
@@ -14563,6 +14563,7 @@ var MultistreamConnectionEventNames;
14563
14563
  MultistreamConnectionEventNames["AudioSourceCountUpdate"] = "audio-source-count-update";
14564
14564
  MultistreamConnectionEventNames["ActiveSpeakerNotification"] = "active-speaker-notification";
14565
14565
  MultistreamConnectionEventNames["ConnectionStateUpdate"] = "connection-state-update";
14566
+ MultistreamConnectionEventNames["IceGatheringStateUpdate"] = "ice-gathering-state-update";
14566
14567
  MultistreamConnectionEventNames["NegotiationNeeded"] = "negotiation-needed";
14567
14568
  MultistreamConnectionEventNames["CreateOfferOnSuccess"] = "createofferonsuccess";
14568
14569
  MultistreamConnectionEventNames["CreateAnswerOnSuccess"] = "createansweronsuccess";
@@ -14630,10 +14631,16 @@ class MultistreamConnection extends EventEmitter$2 {
14630
14631
  this.pc.on(PeerConnection.Events.SetRemoteDescriptionOnSuccess, (description) => {
14631
14632
  this.emit(MultistreamConnectionEventNames.SetRemoteDescriptionOnSuccess, description);
14632
14633
  });
14634
+ this.pc.on(PeerConnection.Events.IceGatheringStateChange, () => {
14635
+ this.emit(MultistreamConnectionEventNames.IceGatheringStateUpdate, this.getIceGatheringState());
14636
+ });
14633
14637
  }
14634
14638
  getConnectionState() {
14635
14639
  return this.pc.getConnectionState();
14636
14640
  }
14641
+ getIceGatheringState() {
14642
+ return this.pc.iceGatheringState;
14643
+ }
14637
14644
  getVideoEncodingOptions(content) {
14638
14645
  const enabledSimulcast = content === MediaContent.Main
14639
14646
  ? !this.options.disableSimulcast