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 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…
Reference in New Issue
Block a user