Update VideoPlayer.vue

This commit is contained in:
JdM 2023-05-20 16:00:06 +02:00 committed by GitHub
parent 717b31f3fd
commit 4366e628b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -589,9 +589,7 @@ export default {
videoEl.defaultPlaybackRate = rate;
const autoDisplayCaptions = this.getPreferenceBoolean("autoDisplayCaptions", false);
if (autoDisplayCaptions) {
this.$player.setTextTrackVisibility(!this.$player.isTextTrackVisible());
}
this.$player.setTextTrackVisibility(autoDisplayCaptions);
});
// expand the player to fullscreen when the fullscreen query equals true