Skip to content

Commit

Permalink
fix: Reset forced subs between loads
Browse files Browse the repository at this point in the history
Just as we reset text language and role, we should also reset forced
sub state between load() calls.

Discovered while debugging PR shaka-project#3459.

Change-Id: I22ef29cb6b14e02ee70503595b1303389260a633
  • Loading branch information
joeyparrish committed Jul 10, 2021
1 parent 760161f commit e9dc36d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/player.js
Expand Up @@ -1823,6 +1823,7 @@ shaka.Player = class extends shaka.util.FakeEventTarget {

this.currentTextLanguage_ = this.config_.preferredTextLanguage;
this.currentTextRole_ = this.config_.preferredTextRole;
this.currentTextForced_ = this.config_.preferForcedSubs;

shaka.Player.applyPlayRange_(this.manifest_.presentationTimeline,
this.config_.playRangeStart,
Expand Down

0 comments on commit e9dc36d

Please sign in to comment.