@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/esm/index.js
CHANGED
|
@@ -5873,7 +5873,7 @@ function isValidSourceAdvertisementAckMsg(msg) {
|
|
|
5873
5873
|
return Boolean(maybeSourceAdvertisementAckMsg.sourceAdvertisementSeqNum);
|
|
5874
5874
|
}
|
|
5875
5875
|
|
|
5876
|
-
class StreamRequest {
|
|
5876
|
+
class StreamRequest$1 {
|
|
5877
5877
|
constructor(policy, policySpecificInfo, ids, maxPayloadBitsPerSecond, codecInfos = []) {
|
|
5878
5878
|
this.policy = policy;
|
|
5879
5879
|
this.policySpecificInfo = policySpecificInfo;
|
|
@@ -13749,6 +13749,9 @@ class MultistreamConnection extends EventEmitter {
|
|
|
13749
13749
|
});
|
|
13750
13750
|
}
|
|
13751
13751
|
});
|
|
13752
|
+
if (getBrowserDetails().name === 'Firefox') {
|
|
13753
|
+
setupBundle(parsed, this.options.bundlePolicy, this.midMap);
|
|
13754
|
+
}
|
|
13752
13755
|
return parsed.toString();
|
|
13753
13756
|
}
|
|
13754
13757
|
preProcessRemoteAnswer(answer) {
|
|
@@ -13806,13 +13809,22 @@ class MultistreamConnection extends EventEmitter {
|
|
|
13806
13809
|
logger.error(`Unable to find jmp session for ${mediaType}`);
|
|
13807
13810
|
return;
|
|
13808
13811
|
}
|
|
13809
|
-
const requestedReceiveSlotIds =
|
|
13812
|
+
const requestedReceiveSlotIds = [];
|
|
13813
|
+
streamRequests.forEach((sr) => {
|
|
13814
|
+
sr.receiveSlots.forEach((rs) => {
|
|
13815
|
+
if (!rs.id) {
|
|
13816
|
+
logger.error(`Running stream request task, but ReceiveSlot ID is missing!`);
|
|
13817
|
+
return;
|
|
13818
|
+
}
|
|
13819
|
+
requestedReceiveSlotIds.push(rs.id);
|
|
13820
|
+
});
|
|
13821
|
+
});
|
|
13810
13822
|
(_a = this.recvTransceivers.get(mediaType)) === null || _a === void 0 ? void 0 : _a.forEach((transceiver) => {
|
|
13811
13823
|
if (!requestedReceiveSlotIds.some((id) => compareStreamIds(id, transceiver.receiveSlot.id))) {
|
|
13812
13824
|
transceiver.receiveSlot._updateSource('no source', undefined);
|
|
13813
13825
|
}
|
|
13814
13826
|
});
|
|
13815
|
-
jmpSession.sendRequests(streamRequests);
|
|
13827
|
+
jmpSession.sendRequests(streamRequests.map((sr) => sr._toJmpStreamRequest()));
|
|
13816
13828
|
};
|
|
13817
13829
|
if (((_a = this.dataChannel) === null || _a === void 0 ? void 0 : _a.readyState) === 'open') {
|
|
13818
13830
|
task();
|
|
@@ -13931,5 +13943,18 @@ class MultistreamConnection extends EventEmitter {
|
|
|
13931
13943
|
}
|
|
13932
13944
|
}
|
|
13933
13945
|
|
|
13946
|
+
class StreamRequest {
|
|
13947
|
+
constructor(policy, policySpecificInfo, receiveSlots, maxPayloadBitsPerSecond, codecInfos = []) {
|
|
13948
|
+
this.policy = policy;
|
|
13949
|
+
this.policySpecificInfo = policySpecificInfo;
|
|
13950
|
+
this.receiveSlots = receiveSlots;
|
|
13951
|
+
this.maxPayloadBitsPerSecond = maxPayloadBitsPerSecond;
|
|
13952
|
+
this.codecInfos = codecInfos;
|
|
13953
|
+
}
|
|
13954
|
+
_toJmpStreamRequest() {
|
|
13955
|
+
return new StreamRequest$1(this.policy, this.policySpecificInfo, this.receiveSlots.map((rs) => rs.id), this.maxPayloadBitsPerSecond, this.codecInfos);
|
|
13956
|
+
}
|
|
13957
|
+
}
|
|
13958
|
+
|
|
13934
13959
|
export { ConnectionState, Logger$1 as JMPLogger, LocalCameraTrack, LocalDisplayTrack, LocalMicrophoneTrack, LocalTrack, LocalTrackEvents, Logger, MediaCodecMimeType, MediaStreamTrackKind, MultistreamConnection, MultistreamConnectionEventNames, PeerConnection, ReceiveSlot, ReceiveSlotEvents, RecommendedOpusBitrates, SendOnlyTransceiver, StreamRequest, WcmeError, compareReceiveSlotIds, createCameraTrack, createDisplayTrack, createMicrophoneTrack, getAudioInputDevices, getAudioOutputDevices, getDevices, getLogLevel, getRecommendedMaxBitrateForFrameSize, getVideoInputDevices, logger, setLogHandler, setLogLevel, setOnDeviceChangeHandler };
|
|
13935
13960
|
//# sourceMappingURL=index.js.map
|