Skip to content

Commit 0122564

Browse files
committed
Allow zero dimensions for userMedia for storybook
1 parent 73a4214 commit 0122564

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/wrappers/visuals/userMedia.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -451,14 +451,6 @@ class UserMedia extends Despot {
451451
});
452452
}
453453

454-
if (rawHeight === 0) {
455-
throw createError({
456-
message: "Bad dimensions",
457-
explanation: "Raw video height from DOM element cannot be zero.",
458-
options: this.options,
459-
});
460-
}
461-
462454
if (rawHeight < 1) {
463455
throw createError({
464456
message: "Bad dimensions",

0 commit comments

Comments
 (0)