Actually use the configured limit.

This commit is contained in:
Kavin 2023-12-15 21:30:07 +00:00
parent 6d7ef2a1cd
commit fea9c266fe
No known key found for this signature in database
GPG Key ID: 6E4598CA5C92C41F

View File

@ -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,