@webex/web-client-media-engine 3.22.0 → 3.22.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 +5 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +5 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/types/index.d.ts +2 -1
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -10476,7 +10476,7 @@ class ReceiveSlot extends EventEmitter$2 {
|
|
|
10476
10476
|
this.handleStreamMediaStateChange = this.handleStreamMediaStateChange.bind(this);
|
|
10477
10477
|
this.handleStreamEnded = this.handleStreamEnded.bind(this);
|
|
10478
10478
|
this._stream = new RemoteStream(new MediaStream([track]));
|
|
10479
|
-
this._sourceState = 'no source';
|
|
10479
|
+
this._sourceState = track.kind === MediaStreamTrackKind.Video ? 'no source' : undefined;
|
|
10480
10480
|
this._stream.on(RemoteStreamEventNames.MediaStateChange, this.handleStreamMediaStateChange);
|
|
10481
10481
|
this._stream.on(StreamEventNames.Ended, this.handleStreamEnded);
|
|
10482
10482
|
}
|
|
@@ -10514,6 +10514,9 @@ class ReceiveSlot extends EventEmitter$2 {
|
|
|
10514
10514
|
get currentRxCsi() {
|
|
10515
10515
|
return this._currentRxCsi;
|
|
10516
10516
|
}
|
|
10517
|
+
get sourceState() {
|
|
10518
|
+
return this._sourceState;
|
|
10519
|
+
}
|
|
10517
10520
|
}
|
|
10518
10521
|
ReceiveSlot.Events = ReceiveSlotEvents;
|
|
10519
10522
|
|
|
@@ -10587,6 +10590,7 @@ class ReceiveOnlyTransceiver extends Transceiver {
|
|
|
10587
10590
|
if (stats.type === 'inbound-rtp') {
|
|
10588
10591
|
stats.mid = this.mid;
|
|
10589
10592
|
stats.csi = this.receiveSlot.currentRxCsi;
|
|
10593
|
+
stats.sourceState = this.receiveSlot.sourceState;
|
|
10590
10594
|
stats.calliopeMediaType = this.metadata.mediaType;
|
|
10591
10595
|
stats.requestedBitrate = this.metadata.requestedBitrate;
|
|
10592
10596
|
stats.requestedFrameSize = this.metadata.requestedFrameSize;
|