From 3875c41f149dc36a912f5216462c8e6c8ab10c7c Mon Sep 17 00:00:00 2001 From: Adam Waldron Date: Fri, 4 Aug 2023 11:25:01 -0700 Subject: [PATCH] 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') {