diff --git a/src/streaming/controllers/ScheduleController.js b/src/streaming/controllers/ScheduleController.js index 22dfb4c422..d9d365db90 100644 --- a/src/streaming/controllers/ScheduleController.js +++ b/src/streaming/controllers/ScheduleController.js @@ -103,6 +103,7 @@ function ScheduleController(config) { } function setCurrentRepresentation(representationInfo) { + // eslint-disable-next-line no-unused-vars currentRepresentationInfo = representationInfo; } diff --git a/src/streaming/rules/abr/AbandonRequestsRule.js b/src/streaming/rules/abr/AbandonRequestsRule.js index 2459ec85d6..666690b5e4 100644 --- a/src/streaming/rules/abr/AbandonRequestsRule.js +++ b/src/streaming/rules/abr/AbandonRequestsRule.js @@ -35,9 +35,6 @@ import Debug from '../../../core/Debug'; function AbandonRequestsRule(config) { config = config || {}; - const ABANDON_MULTIPLIER = 1.8; - const GRACE_TIME_THRESHOLD = 500; - const MIN_LENGTH_TO_AVERAGE = 5; const context = this.context; const mediaPlayerModel = config.mediaPlayerModel; @@ -123,7 +120,7 @@ function AbandonRequestsRule(config) { const abrController = rulesContext.getAbrController(); const bytesRemaining = fragmentInfo.bytesTotal - fragmentInfo.bytesLoaded; const bitrateInfo = abrController.getBitrateInfoByBitrate(mediaInfo, fragmentInfo.measuredBandwidthInKbps * settings.get().streaming.abr.bandwidthSafetyFactor, true, true); - const currentBitrateInfo = abrController.getCurrentBitrateInfoFor(mediaType, streamInfo.id); + const currentBitrateInfo = abrController.getCurrentBitrateInfoFor(mediaType, streamInfo.id); const estimateOtherBytesTotal = fragmentInfo.bytesTotal * bitrateInfo.bitrate / currentBitrateInfo.bitrate; if (bytesRemaining > estimateOtherBytesTotal) {