@livedigital/client 2.20.1 → 2.20.2
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/package.json
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { MediaKind } from 'mediasoup-client/lib/types';
|
|
1
2
|
import {
|
|
2
3
|
PreferredLayersParams, SetConsumerPriorityParams,
|
|
3
4
|
SpatialLayerParams,
|
|
@@ -59,6 +60,10 @@ class PeerTrack {
|
|
|
59
60
|
return this.#mediaStreamTrack;
|
|
60
61
|
}
|
|
61
62
|
|
|
63
|
+
get kind(): MediaKind {
|
|
64
|
+
return this.mediaStreamTrack.kind as MediaKind;
|
|
65
|
+
}
|
|
66
|
+
|
|
62
67
|
get isPaused(): boolean {
|
|
63
68
|
return this.#paused;
|
|
64
69
|
}
|
|
@@ -252,7 +257,7 @@ class PeerTrack {
|
|
|
252
257
|
|
|
253
258
|
private async checkConsumerState(): Promise<void> {
|
|
254
259
|
try {
|
|
255
|
-
if (this.#closed) {
|
|
260
|
+
if (this.#closed || this.kind === 'audio') {
|
|
256
261
|
return;
|
|
257
262
|
}
|
|
258
263
|
|