mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-08-30 18:43:17 +00:00
Actually use the configured limit.
This commit is contained in:
parent
6d7ef2a1cd
commit
fea9c266fe
@ -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…
Reference in New Issue
Block a user