-
Notifications
You must be signed in to change notification settings - Fork 425
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: multi-period DASH VOD fixes (#1551)
* chore: clear previous dash media request timeout everytime we clear or update it * chore: call fast-quality-switch only when we enable playlist from quality selector * chore: add isPaused for dash playlist loader to mitigate duplicate playlist trigger for the main segment loader * chore: fix fastQualityChange_ tests * chore: add fast quality change debounce * chore: add debounce tick to the tests * chore: restart all loaders when we hit fix bad timeline change * chore: update segment loader * chore: update run-fast-quality-switch and fix bad timeline changes * fix test * chore: fix lint issues --------- Co-authored-by: Dzianis Dashkevich <ddashkevich@brightcove.com>
- Loading branch information
1 parent
2f8d0af
commit 6fe7d9c
Showing
9 changed files
with
117 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
export const debounce = (callback, wait) => { | ||
let timeoutId = null; | ||
|
||
return (...args) => { | ||
clearTimeout(timeoutId); | ||
|
||
timeoutId = setTimeout(() => { | ||
callback.apply(null, args); | ||
}, wait); | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.