From bf0a3008406f7fd92cf92c3e2697fdaf9cbeee4e Mon Sep 17 00:00:00 2001 From: Adam Waldron Date: Mon, 14 Aug 2023 10:25:09 -0700 Subject: [PATCH] fix: reduce playlist exclusion defaults (#1413) --- 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 b4c56ae60..96dabb4b1 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..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 = 5 * 60; + this.options_.playlistExclusionDuration = 60; } if (typeof this.options_.bandwidth !== 'number') {