Skip to content

Commit

Permalink
fix: Fix error when network status changes on src= playbacks (#5305)
Browse files Browse the repository at this point in the history
  • Loading branch information
avelad authored Jun 14, 2023
1 parent 32d141d commit 07ca8f5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/player.js
Original file line number Diff line number Diff line change
Expand Up @@ -6161,6 +6161,9 @@ shaka.Player = class extends shaka.util.FakeEventTarget {
* @private
*/
restoreDisabledVariants_(updateAbrManager=true) {
if (this.loadMode_ != shaka.Player.LoadMode.MEDIA_SOURCE) {
return;
}
goog.asserts.assert(this.manifest_, 'Should have manifest!');

shaka.log.v2('Restoring all disabled streams...');
Expand Down

0 comments on commit 07ca8f5

Please sign in to comment.