Skip to content

Commit

Permalink
Fix exception in GapController.js when enableSeekFix is set to true
Browse files Browse the repository at this point in the history
  • Loading branch information
dsilhavy committed Oct 4, 2021
1 parent 4b4a45d commit a2b9623
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/core/Settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -796,7 +796,7 @@ function Settings() {
jumpLargeGaps: true,
smallGapLimit: 1.5,
threshold: 0.3,
enableSeekFix: false,
enableSeekFix: false
},
utcSynchronization: {
useManifestDateHeaderTimeSource: true,
Expand Down
2 changes: 1 addition & 1 deletion src/streaming/controllers/GapController.js
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ function GapController() {
*/
function _shouldIgnoreSeekingState() {
const activeStream = streamController.getActiveStream();
const streamEnd = parseFloat((activeStream.getStartTime().toFixed(5) + activeStream.getDuration()).toFixed(5))
const streamEnd = parseFloat((activeStream.getStartTime() + activeStream.getDuration()).toFixed(5))

return playbackController.getTime() + settings.get().streaming.gaps.threshold >= streamEnd;
}
Expand Down

0 comments on commit a2b9623

Please sign in to comment.