@whereby.com/media 9.7.2 → 9.7.3
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 +4 -1
- package/dist/index.mjs +4 -1
- package/dist/legacy-esm.js +4 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -7508,8 +7508,11 @@ function getStream(constraintOpt_1) {
|
|
|
7508
7508
|
if (!stream) {
|
|
7509
7509
|
const tryOnly = problemWith ? [problemWith] : ["videoId", "audioId"];
|
|
7510
7510
|
for (const kind of tryOnly) {
|
|
7511
|
+
const withoutKind = getConstraints(Object.assign(Object.assign({}, constraintOpt), { [kind]: false }));
|
|
7512
|
+
if (!withoutKind.audio && !withoutKind.video)
|
|
7513
|
+
continue;
|
|
7511
7514
|
try {
|
|
7512
|
-
stream = yield attempt(
|
|
7515
|
+
stream = yield attempt(withoutKind);
|
|
7513
7516
|
}
|
|
7514
7517
|
catch (e2) {
|
|
7515
7518
|
logger.warn(`Re-tried without ${kind}, but failed: ${"" + e2}`);
|
package/dist/index.mjs
CHANGED
|
@@ -7488,8 +7488,11 @@ function getStream(constraintOpt_1) {
|
|
|
7488
7488
|
if (!stream) {
|
|
7489
7489
|
const tryOnly = problemWith ? [problemWith] : ["videoId", "audioId"];
|
|
7490
7490
|
for (const kind of tryOnly) {
|
|
7491
|
+
const withoutKind = getConstraints(Object.assign(Object.assign({}, constraintOpt), { [kind]: false }));
|
|
7492
|
+
if (!withoutKind.audio && !withoutKind.video)
|
|
7493
|
+
continue;
|
|
7491
7494
|
try {
|
|
7492
|
-
stream = yield attempt(
|
|
7495
|
+
stream = yield attempt(withoutKind);
|
|
7493
7496
|
}
|
|
7494
7497
|
catch (e2) {
|
|
7495
7498
|
logger.warn(`Re-tried without ${kind}, but failed: ${"" + e2}`);
|
package/dist/legacy-esm.js
CHANGED
|
@@ -7488,8 +7488,11 @@ function getStream(constraintOpt_1) {
|
|
|
7488
7488
|
if (!stream) {
|
|
7489
7489
|
const tryOnly = problemWith ? [problemWith] : ["videoId", "audioId"];
|
|
7490
7490
|
for (const kind of tryOnly) {
|
|
7491
|
+
const withoutKind = getConstraints(Object.assign(Object.assign({}, constraintOpt), { [kind]: false }));
|
|
7492
|
+
if (!withoutKind.audio && !withoutKind.video)
|
|
7493
|
+
continue;
|
|
7491
7494
|
try {
|
|
7492
|
-
stream = yield attempt(
|
|
7495
|
+
stream = yield attempt(withoutKind);
|
|
7493
7496
|
}
|
|
7494
7497
|
catch (e2) {
|
|
7495
7498
|
logger.warn(`Re-tried without ${kind}, but failed: ${"" + e2}`);
|