mirror of
				https://github.com/TeamPiped/Piped.git
				synced 2024-08-14 23:57:27 +00:00 
			
		
		
		
	Actually use the configured limit.
This commit is contained in:
		
							parent
							
								
									6d7ef2a1cd
								
							
						
					
					
						commit
						fea9c266fe
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -474,6 +474,8 @@ export default {
 | 
			
		|||
 | 
			
		||||
            const disableVideo = this.getPreferenceBoolean("listen", false) && !this.video.livestream;
 | 
			
		||||
 | 
			
		||||
            const prefetchLimit = Math.min(Math.max(this.getPreferenceNumber("prefetchLimit", 2), 0), 10);
 | 
			
		||||
 | 
			
		||||
            this.$player.configure({
 | 
			
		||||
                preferredVideoCodecs: this.preferredVideoCodecs,
 | 
			
		||||
                preferredAudioCodecs: ["opus", "mp4a"],
 | 
			
		||||
| 
						 | 
				
			
			@ -481,7 +483,7 @@ export default {
 | 
			
		|||
                    disableVideo: disableVideo,
 | 
			
		||||
                },
 | 
			
		||||
                streaming: {
 | 
			
		||||
                    segmentPrefetchLimit: 10,
 | 
			
		||||
                    segmentPrefetchLimit: prefetchLimit,
 | 
			
		||||
                    retryParameters: {
 | 
			
		||||
                        maxAttempts: Infinity,
 | 
			
		||||
                        baseDelay: 250,
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue