From abe0ad485c3bd17c2f2cfd8c3b4512f70383f5ec Mon Sep 17 00:00:00 2001 From: Trek H Date: Wed, 29 Jan 2020 13:30:50 +1030 Subject: [PATCH] mjpeg-player: naming --- cmd/mjpeg-player/hlsjs/controller/stream-controller.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/mjpeg-player/hlsjs/controller/stream-controller.js b/cmd/mjpeg-player/hlsjs/controller/stream-controller.js index 27cd7a1c..21687ce3 100644 --- a/cmd/mjpeg-player/hlsjs/controller/stream-controller.js +++ b/cmd/mjpeg-player/hlsjs/controller/stream-controller.js @@ -38,7 +38,7 @@ class StreamController extends EventHandler { this.audioCodecSwap = false; this.stallReported = false; this.gapController = null; - this.currentFragIndex = 0; + this.currentFragIdx = 0; this.lastSN = 0; this.fragments = []; } @@ -58,10 +58,10 @@ class StreamController extends EventHandler { _loadFragment() { let fragLen = this.fragments.length; - if (this.currentFragIndex >= fragLen) { + if (this.currentFragIdx >= fragLen) { return; } - this.hls.trigger(Event.FRAG_LOADING, { frag: this.fragments[this.currentFragIndex++] }); + this.hls.trigger(Event.FRAG_LOADING, { frag: this.fragments[this.currentFragIdx++] }); } onLevelLoaded(data) {