Skip to content

Commit

Permalink
default flashTime to 500
Browse files Browse the repository at this point in the history
  • Loading branch information
Samir Das committed Mar 13, 2022
1 parent d104f39 commit 116bc06
Show file tree
Hide file tree
Showing 6 changed files with 302 additions and 278 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Available options are:

*mode* - Available values are: both, video and audio. Default is both

*flushingTime* - Buffer flushing time in milliseconds. Default value is 1500 milliseconds.
*flushingTime* - Buffer flushing time in milliseconds. Default value is 500 milliseconds. Set `flushingTime` to 0 if you want to flash buffer immediately or find any lag.

*maxDelay* - Maximum delay time in milliseconds. Default value is 500 milliseconds.

Expand Down
2 changes: 1 addition & 1 deletion dist/jmuxer.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion example/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
var jmuxer = new JMuxer({
node: 'player',
debug: true,
flushingTime: 0,
flushingTime: 1000, // we need 1000 for the demo as server provides a chunk data of 1000ms at a time
onError: function(data) {
console.log('Buffer error encountered', data);
}
Expand Down
2 changes: 1 addition & 1 deletion example/jmuxer.min.js

Large diffs are not rendered by default.

Loading

0 comments on commit 116bc06

Please sign in to comment.