From ac5f679ad60fc48db6d9a9534a8ac5fd20eda36f Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 22 Feb 2022 13:44:12 +0100 Subject: Fix HLS buffer --- client/src/assets/player/p2p-media-loader/segment-url-builder.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'client/src/assets/player/p2p-media-loader') diff --git a/client/src/assets/player/p2p-media-loader/segment-url-builder.ts b/client/src/assets/player/p2p-media-loader/segment-url-builder.ts index 5ddc81ff6..9d324078a 100644 --- a/client/src/assets/player/p2p-media-loader/segment-url-builder.ts +++ b/client/src/assets/player/p2p-media-loader/segment-url-builder.ts @@ -1,10 +1,10 @@ import { Segment } from '@peertube/p2p-media-loader-core' import { RedundancyUrlManager } from './redundancy-url-manager' -function segmentUrlBuilderFactory (redundancyUrlManager: RedundancyUrlManager, requiredSegmentsPriority: number) { +function segmentUrlBuilderFactory (redundancyUrlManager: RedundancyUrlManager, useOriginPriority: number) { return function segmentBuilder (segment: Segment) { // Don't use redundancy for high priority segments - if (segment.priority <= requiredSegmentsPriority) return segment.url + if (segment.priority <= useOriginPriority) return segment.url return redundancyUrlManager.buildUrl(segment.url) } -- cgit v1.2.3