@webex/web-client-media-engine 1.36.4 → 1.37.1
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 +6 -3
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +6 -3
- package/dist/esm/index.js.map +1 -1
- package/dist/types/index.d.ts +1 -1
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -8770,7 +8770,7 @@ function setMaxBandwidth(parsedSdp, maxBandwidth) {
|
|
|
8770
8770
|
});
|
|
8771
8771
|
}
|
|
8772
8772
|
function setupBundle(parsedSdp, bundlePolicy) {
|
|
8773
|
-
if (bundlePolicy === 'compat') {
|
|
8773
|
+
if (bundlePolicy === 'max-compat') {
|
|
8774
8774
|
const audioMids = parsedSdp.avMedia
|
|
8775
8775
|
.filter((m) => m.type === 'audio')
|
|
8776
8776
|
.map((m) => m.mid);
|
|
@@ -9559,7 +9559,7 @@ const defaultMultistreamConnectionOptions = {
|
|
|
9559
9559
|
floorControlledPresentation: false,
|
|
9560
9560
|
disableSimulcast: false,
|
|
9561
9561
|
streamSignalingMode: 'SSRC',
|
|
9562
|
-
bundlePolicy: 'compat',
|
|
9562
|
+
bundlePolicy: 'max-compat',
|
|
9563
9563
|
iceServers: undefined,
|
|
9564
9564
|
};
|
|
9565
9565
|
class MultistreamConnection extends EventEmitter {
|
|
@@ -9592,7 +9592,10 @@ class MultistreamConnection extends EventEmitter {
|
|
|
9592
9592
|
initializePeerConnection() {
|
|
9593
9593
|
var _a;
|
|
9594
9594
|
(_a = this.pc) === null || _a === void 0 ? void 0 : _a.close();
|
|
9595
|
-
this.pc = new PeerConnection({
|
|
9595
|
+
this.pc = new PeerConnection({
|
|
9596
|
+
iceServers: this.options.iceServers,
|
|
9597
|
+
bundlePolicy: this.options.bundlePolicy,
|
|
9598
|
+
});
|
|
9596
9599
|
this.pc.on(PeerConnection.Events.ConnectionStateChange, (state) => this.emit(MultistreamConnectionEventNames.ConnectionStateUpdate, state));
|
|
9597
9600
|
this.attachMetricsObserver();
|
|
9598
9601
|
this.createDataChannel();
|