Skip to content

Commit

Permalink
添加container校验
Browse files Browse the repository at this point in the history
  • Loading branch information
bosscheng committed Mar 21, 2024
1 parent 931e8d8 commit 7984362
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 5 deletions.
Binary file modified demo/public/dist.zip
Binary file not shown.
11 changes: 10 additions & 1 deletion demo/public/jessibuca.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion demo/public/jessibuca.js.map

Large diffs are not rendered by default.

Binary file modified demo/public/pro.zip
Binary file not shown.
2 changes: 1 addition & 1 deletion demo/public/pro/js/jessibuca-pro-demo.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion demo/public/pro/js/jessibuca-pro-multi-demo.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/jessibuca.js

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions src/jessibuca.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,15 @@ class Jessibuca extends Emitter {
return;
}

// videoBuffer set too long
if (_opt.videoBuffer > 10) {
console.warn('JbPro', `videoBuffer ${_opt.videoBuffer}s is too long, will black screen for ${_opt.videoBuffer}s , it is recommended to set it to less than 10s`);
}

if (!$container.classList) {
throw new Error('Jessibuca container option must be DOM Element');
return;
}

$container.classList.add('jessibuca-container');

Expand Down

0 comments on commit 7984362

Please sign in to comment.