mirror of https://bitbucket.org/ausocean/av.git
mjpeg-player: naming
This commit is contained in:
parent
be7a70cf51
commit
abe0ad485c
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue