Skip to content

Commit

Permalink
fix lint error caused by merging
Browse files Browse the repository at this point in the history
  • Loading branch information
KimmyWFox committed Mar 18, 2024
1 parent cd84f52 commit 576d242
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/streaming/controllers/ScheduleController.js
Expand Up @@ -103,6 +103,7 @@ function ScheduleController(config) {
}

function setCurrentRepresentation(representationInfo) {
// eslint-disable-next-line no-unused-vars
currentRepresentationInfo = representationInfo;
}

Expand Down
5 changes: 1 addition & 4 deletions src/streaming/rules/abr/AbandonRequestsRule.js
Expand Up @@ -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;
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 576d242

Please sign in to comment.