mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-08-14 23:57:27 +00:00
Auto display of subtitles if enabled
This commit is contained in:
parent
006067b019
commit
717b31f3fd
1 changed files with 5 additions and 0 deletions
|
@ -587,6 +587,11 @@ export default {
|
|||
const rate = this.getPreferenceNumber("rate", 1);
|
||||
videoEl.playbackRate = rate;
|
||||
videoEl.defaultPlaybackRate = rate;
|
||||
|
||||
const autoDisplayCaptions = this.getPreferenceBoolean("autoDisplayCaptions", false);
|
||||
if (autoDisplayCaptions) {
|
||||
this.$player.setTextTrackVisibility(!this.$player.isTextTrackVisible());
|
||||
}
|
||||
});
|
||||
|
||||
// expand the player to fullscreen when the fullscreen query equals true
|
||||
|
|
Loading…
Reference in a new issue