Skip to content

Commit 576d242

Browse files
committed
fix lint error caused by merging
1 parent cd84f52 commit 576d242

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/streaming/controllers/ScheduleController.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ function ScheduleController(config) {
103103
}
104104

105105
function setCurrentRepresentation(representationInfo) {
106+
// eslint-disable-next-line no-unused-vars
106107
currentRepresentationInfo = representationInfo;
107108
}
108109

src/streaming/rules/abr/AbandonRequestsRule.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,6 @@ import Debug from '../../../core/Debug';
3535
function AbandonRequestsRule(config) {
3636

3737
config = config || {};
38-
const ABANDON_MULTIPLIER = 1.8;
39-
const GRACE_TIME_THRESHOLD = 500;
40-
const MIN_LENGTH_TO_AVERAGE = 5;
4138

4239
const context = this.context;
4340
const mediaPlayerModel = config.mediaPlayerModel;
@@ -123,7 +120,7 @@ function AbandonRequestsRule(config) {
123120
const abrController = rulesContext.getAbrController();
124121
const bytesRemaining = fragmentInfo.bytesTotal - fragmentInfo.bytesLoaded;
125122
const bitrateInfo = abrController.getBitrateInfoByBitrate(mediaInfo, fragmentInfo.measuredBandwidthInKbps * settings.get().streaming.abr.bandwidthSafetyFactor, true, true);
126-
const currentBitrateInfo = abrController.getCurrentBitrateInfoFor(mediaType, streamInfo.id);
123+
const currentBitrateInfo = abrController.getCurrentBitrateInfoFor(mediaType, streamInfo.id);
127124
const estimateOtherBytesTotal = fragmentInfo.bytesTotal * bitrateInfo.bitrate / currentBitrateInfo.bitrate;
128125

129126
if (bytesRemaining > estimateOtherBytesTotal) {

0 commit comments

Comments
 (0)