Skip to content

Commit

Permalink
remove old comment
Browse files Browse the repository at this point in the history
  • Loading branch information
adrums86 committed Jul 10, 2024
1 parent cd10e01 commit f27df34
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/playlist-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -1059,12 +1059,7 @@ export class PlaylistController extends videojs.EventTarget {

runFastQualitySwitch_() {
this.waitingForFastQualityPlaylistReceived_ = false;
// Delete all buffered data to allow an immediate quality switch, then seek to give
// the browser a kick to remove any cached frames from the previous rendtion (.04 seconds
// ahead was roughly the minimum that will accomplish this across a variety of content
// in IE and Edge, but seeking in place is sufficient on all other browsers)
// Edge/IE bug: https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/14600375/
// Chrome bug: https://bugs.chromium.org/p/chromium/issues/detail?id=651904
// Delete all buffered data to allow an immediate quality switch.
this.mainSegmentLoader_.pause();
this.mainSegmentLoader_.resetEverything(() => {
this.mainSegmentLoader_.load();
Expand Down

0 comments on commit f27df34

Please sign in to comment.