@webex/web-client-media-engine 2.0.1 → 2.0.3
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 +28 -3
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +28 -3
- package/dist/esm/index.js.map +1 -1
- package/dist/types/index.d.ts +14 -3
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -5877,7 +5877,7 @@ function isValidSourceAdvertisementAckMsg(msg) {
|
|
|
5877
5877
|
return Boolean(maybeSourceAdvertisementAckMsg.sourceAdvertisementSeqNum);
|
|
5878
5878
|
}
|
|
5879
5879
|
|
|
5880
|
-
class StreamRequest {
|
|
5880
|
+
class StreamRequest$1 {
|
|
5881
5881
|
constructor(policy, policySpecificInfo, ids, maxPayloadBitsPerSecond, codecInfos = []) {
|
|
5882
5882
|
this.policy = policy;
|
|
5883
5883
|
this.policySpecificInfo = policySpecificInfo;
|
|
@@ -13753,6 +13753,9 @@ class MultistreamConnection extends EventEmitter {
|
|
|
13753
13753
|
});
|
|
13754
13754
|
}
|
|
13755
13755
|
});
|
|
13756
|
+
if (getBrowserDetails().name === 'Firefox') {
|
|
13757
|
+
setupBundle(parsed, this.options.bundlePolicy, this.midMap);
|
|
13758
|
+
}
|
|
13756
13759
|
return parsed.toString();
|
|
13757
13760
|
}
|
|
13758
13761
|
preProcessRemoteAnswer(answer) {
|
|
@@ -13810,13 +13813,22 @@ class MultistreamConnection extends EventEmitter {
|
|
|
13810
13813
|
logger.error(`Unable to find jmp session for ${mediaType}`);
|
|
13811
13814
|
return;
|
|
13812
13815
|
}
|
|
13813
|
-
const requestedReceiveSlotIds =
|
|
13816
|
+
const requestedReceiveSlotIds = [];
|
|
13817
|
+
streamRequests.forEach((sr) => {
|
|
13818
|
+
sr.receiveSlots.forEach((rs) => {
|
|
13819
|
+
if (!rs.id) {
|
|
13820
|
+
logger.error(`Running stream request task, but ReceiveSlot ID is missing!`);
|
|
13821
|
+
return;
|
|
13822
|
+
}
|
|
13823
|
+
requestedReceiveSlotIds.push(rs.id);
|
|
13824
|
+
});
|
|
13825
|
+
});
|
|
13814
13826
|
(_a = this.recvTransceivers.get(mediaType)) === null || _a === void 0 ? void 0 : _a.forEach((transceiver) => {
|
|
13815
13827
|
if (!requestedReceiveSlotIds.some((id) => compareStreamIds(id, transceiver.receiveSlot.id))) {
|
|
13816
13828
|
transceiver.receiveSlot._updateSource('no source', undefined);
|
|
13817
13829
|
}
|
|
13818
13830
|
});
|
|
13819
|
-
jmpSession.sendRequests(streamRequests);
|
|
13831
|
+
jmpSession.sendRequests(streamRequests.map((sr) => sr._toJmpStreamRequest()));
|
|
13820
13832
|
};
|
|
13821
13833
|
if (((_a = this.dataChannel) === null || _a === void 0 ? void 0 : _a.readyState) === 'open') {
|
|
13822
13834
|
task();
|
|
@@ -13935,6 +13947,19 @@ class MultistreamConnection extends EventEmitter {
|
|
|
13935
13947
|
}
|
|
13936
13948
|
}
|
|
13937
13949
|
|
|
13950
|
+
class StreamRequest {
|
|
13951
|
+
constructor(policy, policySpecificInfo, receiveSlots, maxPayloadBitsPerSecond, codecInfos = []) {
|
|
13952
|
+
this.policy = policy;
|
|
13953
|
+
this.policySpecificInfo = policySpecificInfo;
|
|
13954
|
+
this.receiveSlots = receiveSlots;
|
|
13955
|
+
this.maxPayloadBitsPerSecond = maxPayloadBitsPerSecond;
|
|
13956
|
+
this.codecInfos = codecInfos;
|
|
13957
|
+
}
|
|
13958
|
+
_toJmpStreamRequest() {
|
|
13959
|
+
return new StreamRequest$1(this.policy, this.policySpecificInfo, this.receiveSlots.map((rs) => rs.id), this.maxPayloadBitsPerSecond, this.codecInfos);
|
|
13960
|
+
}
|
|
13961
|
+
}
|
|
13962
|
+
|
|
13938
13963
|
exports.JMPLogger = Logger$1;
|
|
13939
13964
|
exports.LocalCameraTrack = LocalCameraTrack;
|
|
13940
13965
|
exports.LocalDisplayTrack = LocalDisplayTrack;
|