Skip to content

Commit

Permalink
update: increase play buffer during syncing
Browse files Browse the repository at this point in the history
  • Loading branch information
tsukumijima committed Aug 16, 2022
1 parent 098dbc4 commit 9dabed7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/player.js
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ class DPlayer {
*/
sync(quiet = false) {
if (this.options.live) {
const time = utils.getVideoDuration(this.video, this.template) - 0.4; // 0.4s is play buffer
const time = utils.getVideoDuration(this.video, this.template) - 0.7; // 0.7s is play buffer
try {
this.video.currentTime = time;
} catch (error) {
Expand Down

0 comments on commit 9dabed7

Please sign in to comment.