Skip to content

Commit e1b96d3

Browse files
authored
fix: Fix text visibility when switching between stream with text and without text (#8572)
1 parent 9406905 commit e1b96d3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/player.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8290,10 +8290,11 @@ shaka.Player = class extends shaka.util.FakeEventTarget {
82908290
goog.asserts.assert(this.shouldStreamText_(),
82918291
'Should be streaming text');
82928292
}
8293-
this.onTextTrackVisibility_();
82948293
} else {
82958294
this.isTextVisible_ = false;
8295+
this.textDisplayer_.setTextVisibility(false);
82968296
}
8297+
this.onTextTrackVisibility_();
82978298
}
82988299

82998300
/**

0 commit comments

Comments
 (0)