Skip to content

Commit

Permalink
Merge pull request #16 from Pluto-tv/bugfix/WEBTECH-10218
Browse files Browse the repository at this point in the history
[WEBTECH-10218] Use Math.ceil when seek to starting pos of the buffer
  • Loading branch information
Nayan Savla authored Nov 19, 2020
2 parents 600f0d1 + 20fa130 commit 9614a1b
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion dist/hls.js
Original file line number Diff line number Diff line change
Expand Up @@ -9069,7 +9069,7 @@ function () {
var start = buffered.start(i); // Returns the start position of buffered range if `currentTime` is within `maxFragLookUpTolerance` range

if (start > currentTime && start < currentTime + maxFragLookUpTolerance) {
return start;
return Math.ceil(start * 10) / 10;
}
}

Expand Down
2 changes: 1 addition & 1 deletion dist/hls.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/hls.light.js
Original file line number Diff line number Diff line change
Expand Up @@ -9046,7 +9046,7 @@ function () {
var start = buffered.start(i); // Returns the start position of buffered range if `currentTime` is within `maxFragLookUpTolerance` range

if (start > currentTime && start < currentTime + maxFragLookUpTolerance) {
return start;
return Math.ceil(start * 10) / 10;
}
}

Expand Down
2 changes: 1 addition & 1 deletion dist/hls.light.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/hls.light.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/hls.light.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/hls.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/hls.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/utils/buffer-helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ export class BufferHelper {

// Returns the start position of buffered range if `currentTime` is within `maxFragLookUpTolerance` range
if (start > currentTime && start < currentTime + maxFragLookUpTolerance) {
return start;
return Math.ceil(start * 10) / 10;
}
}

Expand Down

0 comments on commit 9614a1b

Please sign in to comment.