mjpeg-player: naming

This commit is contained in:
Trek H 2020-01-29 13:30:50 +10:30
parent be7a70cf51
commit abe0ad485c
1 changed files with 3 additions and 3 deletions

View File

@ -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) {