@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/cjs/index.js
CHANGED
|
@@ -9854,6 +9854,7 @@ class SendOnlyTransceiver extends Transceiver {
|
|
|
9854
9854
|
this.rtxEnabled = false;
|
|
9855
9855
|
this.streamMuteStateChange = new TypedEvent();
|
|
9856
9856
|
this.streamPublishStateChange = new TypedEvent();
|
|
9857
|
+
this.negotiationNeeded = new TypedEvent();
|
|
9857
9858
|
this.requested = false;
|
|
9858
9859
|
this.requestedIdEncodingParamsMap = new Map();
|
|
9859
9860
|
this.csi = csi;
|
|
@@ -9937,7 +9938,9 @@ class SendOnlyTransceiver extends Transceiver {
|
|
|
9937
9938
|
setActive(enabled) {
|
|
9938
9939
|
this.direction = enabled ? 'sendrecv' : 'inactive';
|
|
9939
9940
|
this._rtcRtpTransceiver.direction = this.direction;
|
|
9940
|
-
|
|
9941
|
+
if (this._rtcRtpTransceiver.direction !== this._rtcRtpTransceiver.currentDirection) {
|
|
9942
|
+
this.negotiationNeeded.emit();
|
|
9943
|
+
}
|
|
9941
9944
|
}
|
|
9942
9945
|
getStats() {
|
|
9943
9946
|
return this.sender.getStats();
|
|
@@ -13803,6 +13806,7 @@ exports.MultistreamConnectionEventNames = void 0;
|
|
|
13803
13806
|
MultistreamConnectionEventNames["AudioSourceCountUpdate"] = "audio-source-count-update";
|
|
13804
13807
|
MultistreamConnectionEventNames["ActiveSpeakerNotification"] = "active-speaker-notification";
|
|
13805
13808
|
MultistreamConnectionEventNames["ConnectionStateUpdate"] = "connection-state-update";
|
|
13809
|
+
MultistreamConnectionEventNames["NegotiationNeeded"] = "negotiation-needed";
|
|
13806
13810
|
})(exports.MultistreamConnectionEventNames || (exports.MultistreamConnectionEventNames = {}));
|
|
13807
13811
|
const defaultMultistreamConnectionOptions = {
|
|
13808
13812
|
disableSimulcast: getBrowserDetails().name === 'Firefox',
|
|
@@ -13895,6 +13899,9 @@ class MultistreamConnection extends EventEmitter$2 {
|
|
|
13895
13899
|
this.sendSourceAdvertisement(mediaType);
|
|
13896
13900
|
this.sendMediaRequestStatus(mediaType);
|
|
13897
13901
|
});
|
|
13902
|
+
transceiver.negotiationNeeded.on(() => {
|
|
13903
|
+
this.emit(exports.MultistreamConnectionEventNames.NegotiationNeeded);
|
|
13904
|
+
});
|
|
13898
13905
|
this.sendTransceivers.set(mediaType, transceiver);
|
|
13899
13906
|
this.createJmpSession(mediaType);
|
|
13900
13907
|
}
|