@webex/web-client-media-engine 1.34.3 → 1.34.5

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/esm/index.js CHANGED
@@ -5609,7 +5609,11 @@ class JmpSession extends EventEmitter$3 {
5609
5609
  }
5610
5610
  updateSourceIndication(numTotalSources, numLiveSources, sources) {
5611
5611
  var _a;
5612
- const sourceIndicationMsg = new SourceIndicationMsg(this.currSourceIndicationSeqNum++, numTotalSources, numLiveSources, sources);
5612
+ const filteredSources = sources.filter((source) => {
5613
+ var _a;
5614
+ return (_a = this.lastReceivedScr) === null || _a === void 0 ? void 0 : _a.requests.some((req) => req.ids.find((streamId) => compareStreamIds(streamId, source.id)));
5615
+ });
5616
+ const sourceIndicationMsg = new SourceIndicationMsg(this.currSourceIndicationSeqNum++, numTotalSources, numLiveSources, filteredSources);
5613
5617
  const jmpMsg = new JmpMsg(this.mediaFamily, this.mediaContent, {
5614
5618
  msgType: JmpMsgType.SourceIndication,
5615
5619
  payload: sourceIndicationMsg,
@@ -9041,7 +9045,7 @@ class RidEgressStreamSignaler {
9041
9045
  }
9042
9046
 
9043
9047
  function generateSsrc() {
9044
- return Math.floor(Math.random() * 0xffffffff);
9048
+ return Math.floor(Math.random() * 0xffffffff) + 1;
9045
9049
  }
9046
9050
 
9047
9051
  class SsrcIngressStreamSignaler {