mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-08-30 18:43:17 +00:00
Auto display of subtitles if enabled
This commit is contained in:
parent
006067b019
commit
717b31f3fd
@ -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 New Issue
Block a user