@whereby.com/media 8.0.4 → 8.0.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/index.cjs +6 -1
- package/dist/index.mjs +6 -1
- package/dist/legacy-esm.js +6 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -2395,7 +2395,7 @@ class Session {
|
|
|
2395
2395
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2396
2396
|
logger$7.info("replacetrack() [oldTrackId: %s, newTrackId: %s]", oldTrack === null || oldTrack === void 0 ? void 0 : oldTrack.id, newTrack.id);
|
|
2397
2397
|
if (newTrack.readyState === "ended") {
|
|
2398
|
-
throw new Error(`refusing to
|
|
2398
|
+
throw new Error(`refusing to use ended track with id: ${newTrack.id}, kind: ${newTrack.kind}`);
|
|
2399
2399
|
}
|
|
2400
2400
|
const pc = this.pc;
|
|
2401
2401
|
if (oldTrack) {
|
|
@@ -5408,6 +5408,11 @@ class VegaRtcManager {
|
|
|
5408
5408
|
}
|
|
5409
5409
|
}
|
|
5410
5410
|
replaceTrack(_, track) {
|
|
5411
|
+
logger$2.info("replaceTrack() [kind: %s, id: %s, readyState: %s]", track.kind, track.id, track.readyState);
|
|
5412
|
+
if (track.readyState === "ended") {
|
|
5413
|
+
logger$2.error(`refusing to use ended track with id: ${track.id}, kind: ${track.kind}`);
|
|
5414
|
+
return;
|
|
5415
|
+
}
|
|
5411
5416
|
if (track.kind === "audio") {
|
|
5412
5417
|
if (!trackAnnotations(track).isEffectTrack) {
|
|
5413
5418
|
this._monitorAudioTrack(track);
|
package/dist/index.mjs
CHANGED
|
@@ -2374,7 +2374,7 @@ class Session {
|
|
|
2374
2374
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2375
2375
|
logger$7.info("replacetrack() [oldTrackId: %s, newTrackId: %s]", oldTrack === null || oldTrack === void 0 ? void 0 : oldTrack.id, newTrack.id);
|
|
2376
2376
|
if (newTrack.readyState === "ended") {
|
|
2377
|
-
throw new Error(`refusing to
|
|
2377
|
+
throw new Error(`refusing to use ended track with id: ${newTrack.id}, kind: ${newTrack.kind}`);
|
|
2378
2378
|
}
|
|
2379
2379
|
const pc = this.pc;
|
|
2380
2380
|
if (oldTrack) {
|
|
@@ -5387,6 +5387,11 @@ class VegaRtcManager {
|
|
|
5387
5387
|
}
|
|
5388
5388
|
}
|
|
5389
5389
|
replaceTrack(_, track) {
|
|
5390
|
+
logger$2.info("replaceTrack() [kind: %s, id: %s, readyState: %s]", track.kind, track.id, track.readyState);
|
|
5391
|
+
if (track.readyState === "ended") {
|
|
5392
|
+
logger$2.error(`refusing to use ended track with id: ${track.id}, kind: ${track.kind}`);
|
|
5393
|
+
return;
|
|
5394
|
+
}
|
|
5390
5395
|
if (track.kind === "audio") {
|
|
5391
5396
|
if (!trackAnnotations(track).isEffectTrack) {
|
|
5392
5397
|
this._monitorAudioTrack(track);
|
package/dist/legacy-esm.js
CHANGED
|
@@ -2374,7 +2374,7 @@ class Session {
|
|
|
2374
2374
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2375
2375
|
logger$7.info("replacetrack() [oldTrackId: %s, newTrackId: %s]", oldTrack === null || oldTrack === void 0 ? void 0 : oldTrack.id, newTrack.id);
|
|
2376
2376
|
if (newTrack.readyState === "ended") {
|
|
2377
|
-
throw new Error(`refusing to
|
|
2377
|
+
throw new Error(`refusing to use ended track with id: ${newTrack.id}, kind: ${newTrack.kind}`);
|
|
2378
2378
|
}
|
|
2379
2379
|
const pc = this.pc;
|
|
2380
2380
|
if (oldTrack) {
|
|
@@ -5387,6 +5387,11 @@ class VegaRtcManager {
|
|
|
5387
5387
|
}
|
|
5388
5388
|
}
|
|
5389
5389
|
replaceTrack(_, track) {
|
|
5390
|
+
logger$2.info("replaceTrack() [kind: %s, id: %s, readyState: %s]", track.kind, track.id, track.readyState);
|
|
5391
|
+
if (track.readyState === "ended") {
|
|
5392
|
+
logger$2.error(`refusing to use ended track with id: ${track.id}, kind: ${track.kind}`);
|
|
5393
|
+
return;
|
|
5394
|
+
}
|
|
5390
5395
|
if (track.kind === "audio") {
|
|
5391
5396
|
if (!trackAnnotations(track).isEffectTrack) {
|
|
5392
5397
|
this._monitorAudioTrack(track);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@whereby.com/media",
|
|
3
3
|
"description": "Media library for Whereby",
|
|
4
|
-
"version": "8.0.
|
|
4
|
+
"version": "8.0.5",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://github.com/whereby/sdk",
|
|
7
7
|
"repository": {
|
|
@@ -62,8 +62,8 @@
|
|
|
62
62
|
"process": "^0.11.10",
|
|
63
63
|
"typescript": "^5.8.3",
|
|
64
64
|
"@whereby.com/eslint-config": "0.1.0",
|
|
65
|
-
"@whereby.com/jest-config": "0.1.0",
|
|
66
65
|
"@whereby.com/prettier-config": "0.1.0",
|
|
66
|
+
"@whereby.com/jest-config": "0.1.0",
|
|
67
67
|
"@whereby.com/rollup-config": "0.1.1",
|
|
68
68
|
"@whereby.com/tsconfig": "0.1.0"
|
|
69
69
|
},
|