@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.
- package/dist/cjs/index.js +8 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +8 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/types/index.d.ts +5 -2
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -9850,6 +9850,7 @@ class SendOnlyTransceiver extends Transceiver {
|
|
|
9850
9850
|
this.rtxEnabled = false;
|
|
9851
9851
|
this.streamMuteStateChange = new TypedEvent();
|
|
9852
9852
|
this.streamPublishStateChange = new TypedEvent();
|
|
9853
|
+
this.negotiationNeeded = new TypedEvent();
|
|
9853
9854
|
this.requested = false;
|
|
9854
9855
|
this.requestedIdEncodingParamsMap = new Map();
|
|
9855
9856
|
this.csi = csi;
|
|
@@ -9933,7 +9934,9 @@ class SendOnlyTransceiver extends Transceiver {
|
|
|
9933
9934
|
setActive(enabled) {
|
|
9934
9935
|
this.direction = enabled ? 'sendrecv' : 'inactive';
|
|
9935
9936
|
this._rtcRtpTransceiver.direction = this.direction;
|
|
9936
|
-
|
|
9937
|
+
if (this._rtcRtpTransceiver.direction !== this._rtcRtpTransceiver.currentDirection) {
|
|
9938
|
+
this.negotiationNeeded.emit();
|
|
9939
|
+
}
|
|
9937
9940
|
}
|
|
9938
9941
|
getStats() {
|
|
9939
9942
|
return this.sender.getStats();
|
|
@@ -13799,6 +13802,7 @@ var MultistreamConnectionEventNames;
|
|
|
13799
13802
|
MultistreamConnectionEventNames["AudioSourceCountUpdate"] = "audio-source-count-update";
|
|
13800
13803
|
MultistreamConnectionEventNames["ActiveSpeakerNotification"] = "active-speaker-notification";
|
|
13801
13804
|
MultistreamConnectionEventNames["ConnectionStateUpdate"] = "connection-state-update";
|
|
13805
|
+
MultistreamConnectionEventNames["NegotiationNeeded"] = "negotiation-needed";
|
|
13802
13806
|
})(MultistreamConnectionEventNames || (MultistreamConnectionEventNames = {}));
|
|
13803
13807
|
const defaultMultistreamConnectionOptions = {
|
|
13804
13808
|
disableSimulcast: getBrowserDetails().name === 'Firefox',
|
|
@@ -13891,6 +13895,9 @@ class MultistreamConnection extends EventEmitter$2 {
|
|
|
13891
13895
|
this.sendSourceAdvertisement(mediaType);
|
|
13892
13896
|
this.sendMediaRequestStatus(mediaType);
|
|
13893
13897
|
});
|
|
13898
|
+
transceiver.negotiationNeeded.on(() => {
|
|
13899
|
+
this.emit(MultistreamConnectionEventNames.NegotiationNeeded);
|
|
13900
|
+
});
|
|
13894
13901
|
this.sendTransceivers.set(mediaType, transceiver);
|
|
13895
13902
|
this.createJmpSession(mediaType);
|
|
13896
13903
|
}
|