mirror of
				https://github.com/TeamPiped/Piped.git
				synced 2025-11-03 22:21:55 +00:00 
			
		
		
		
	Auto display of subtitles if enabled
This commit is contained in:
		@@ -587,6 +587,11 @@ export default {
 | 
				
			|||||||
                const rate = this.getPreferenceNumber("rate", 1);
 | 
					                const rate = this.getPreferenceNumber("rate", 1);
 | 
				
			||||||
                videoEl.playbackRate = rate;
 | 
					                videoEl.playbackRate = rate;
 | 
				
			||||||
                videoEl.defaultPlaybackRate = 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
 | 
					            // expand the player to fullscreen when the fullscreen query equals true
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user