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 disableVideo = this.getPreferenceBoolean("listen", false) && !this.video.livestream;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					            const prefetchLimit = Math.min(Math.max(this.getPreferenceNumber("prefetchLimit", 2), 0), 10);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            this.$player.configure({
 | 
					            this.$player.configure({
 | 
				
			||||||
                preferredVideoCodecs: this.preferredVideoCodecs,
 | 
					                preferredVideoCodecs: this.preferredVideoCodecs,
 | 
				
			||||||
                preferredAudioCodecs: ["opus", "mp4a"],
 | 
					                preferredAudioCodecs: ["opus", "mp4a"],
 | 
				
			||||||
| 
						 | 
					@ -481,7 +483,7 @@ export default {
 | 
				
			||||||
                    disableVideo: disableVideo,
 | 
					                    disableVideo: disableVideo,
 | 
				
			||||||
                },
 | 
					                },
 | 
				
			||||||
                streaming: {
 | 
					                streaming: {
 | 
				
			||||||
                    segmentPrefetchLimit: 10,
 | 
					                    segmentPrefetchLimit: prefetchLimit,
 | 
				
			||||||
                    retryParameters: {
 | 
					                    retryParameters: {
 | 
				
			||||||
                        maxAttempts: Infinity,
 | 
					                        maxAttempts: Infinity,
 | 
				
			||||||
                        baseDelay: 250,
 | 
					                        baseDelay: 250,
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue