@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/cjs/index.js +7 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +7 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/types/index.d.ts +3 -0
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -14567,6 +14567,7 @@ exports.MultistreamConnectionEventNames = void 0;
|
|
|
14567
14567
|
MultistreamConnectionEventNames["AudioSourceCountUpdate"] = "audio-source-count-update";
|
|
14568
14568
|
MultistreamConnectionEventNames["ActiveSpeakerNotification"] = "active-speaker-notification";
|
|
14569
14569
|
MultistreamConnectionEventNames["ConnectionStateUpdate"] = "connection-state-update";
|
|
14570
|
+
MultistreamConnectionEventNames["IceGatheringStateUpdate"] = "ice-gathering-state-update";
|
|
14570
14571
|
MultistreamConnectionEventNames["NegotiationNeeded"] = "negotiation-needed";
|
|
14571
14572
|
MultistreamConnectionEventNames["CreateOfferOnSuccess"] = "createofferonsuccess";
|
|
14572
14573
|
MultistreamConnectionEventNames["CreateAnswerOnSuccess"] = "createansweronsuccess";
|
|
@@ -14634,10 +14635,16 @@ class MultistreamConnection extends EventEmitter$2 {
|
|
|
14634
14635
|
this.pc.on(PeerConnection.Events.SetRemoteDescriptionOnSuccess, (description) => {
|
|
14635
14636
|
this.emit(exports.MultistreamConnectionEventNames.SetRemoteDescriptionOnSuccess, description);
|
|
14636
14637
|
});
|
|
14638
|
+
this.pc.on(PeerConnection.Events.IceGatheringStateChange, () => {
|
|
14639
|
+
this.emit(exports.MultistreamConnectionEventNames.IceGatheringStateUpdate, this.getIceGatheringState());
|
|
14640
|
+
});
|
|
14637
14641
|
}
|
|
14638
14642
|
getConnectionState() {
|
|
14639
14643
|
return this.pc.getConnectionState();
|
|
14640
14644
|
}
|
|
14645
|
+
getIceGatheringState() {
|
|
14646
|
+
return this.pc.iceGatheringState;
|
|
14647
|
+
}
|
|
14641
14648
|
getVideoEncodingOptions(content) {
|
|
14642
14649
|
const enabledSimulcast = content === exports.MediaContent.Main
|
|
14643
14650
|
? !this.options.disableSimulcast
|