Skip to content

Commit

Permalink
refactor: add buffer range check
Browse files Browse the repository at this point in the history
  • Loading branch information
kKaskak committed May 27, 2024
1 parent 4838c72 commit 86a7507
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/WebOsVideo/WebOsVideo.js
Original file line number Diff line number Diff line change
Expand Up @@ -279,11 +279,12 @@ function WebOsVideo(options) {
return;
}

count_message++;
if(result.bufferRange) {
count_message++;

if (count_message === 30 && !answered) {
// cb();
unsubscribe(cb);
if (count_message === 30 && !answered) {
unsubscribe(cb);
}
}
}, function() { // function(err)
// console.log('luna error log 2');
Expand Down

0 comments on commit 86a7507

Please sign in to comment.