From 3875c41f149dc36a912f5216462c8e6c8ab10c7c Mon Sep 17 00:00:00 2001 From: Adam Waldron Date: Fri, 4 Aug 2023 11:25:01 -0700 Subject: [PATCH 1/2] fix: reduce playlist exclusion defaults --- src/playlist-controller.js | 2 +- src/videojs-http-streaming.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/playlist-controller.js b/src/playlist-controller.js index bd2c23e87..5f5a7c8cc 100644 --- a/src/playlist-controller.js +++ b/src/playlist-controller.js @@ -28,7 +28,7 @@ import logger from './util/logger'; import {merge, createTimeRanges} from './util/vjs-compat'; import { addMetadata, createMetadataTrackIfNotExists, addDateRangeMetadata } from './util/text-tracks'; -const ABORT_EARLY_EXCLUSION_SECONDS = 60 * 2; +const ABORT_EARLY_EXCLUSION_SECONDS = 10; let Vhs; diff --git a/src/videojs-http-streaming.js b/src/videojs-http-streaming.js index 38cb53c0c..ebc43d7c7 100644 --- a/src/videojs-http-streaming.js +++ b/src/videojs-http-streaming.js @@ -697,7 +697,7 @@ class VhsHandler extends Component { this.options_.bufferBasedABR = this.options_.bufferBasedABR || false; if (typeof this.options_.playlistExclusionDuration !== 'number') { - this.options_.playlistExclusionDuration = 5 * 60; + this.options_.playlistExclusionDuration = 10; } if (typeof this.options_.bandwidth !== 'number') { From db2462d3cd8ca7ca5f3eb95ecc165f8777880f7b Mon Sep 17 00:00:00 2001 From: Adam Waldron Date: Mon, 14 Aug 2023 10:11:16 -0700 Subject: [PATCH 2/2] increase default config value --- src/videojs-http-streaming.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/videojs-http-streaming.js b/src/videojs-http-streaming.js index ebc43d7c7..7bbe550b1 100644 --- a/src/videojs-http-streaming.js +++ b/src/videojs-http-streaming.js @@ -697,7 +697,7 @@ class VhsHandler extends Component { this.options_.bufferBasedABR = this.options_.bufferBasedABR || false; if (typeof this.options_.playlistExclusionDuration !== 'number') { - this.options_.playlistExclusionDuration = 10; + this.options_.playlistExclusionDuration = 60; } if (typeof this.options_.bandwidth !== 'number') {