Skip to content

Commit

Permalink
Added logging statements
Browse files Browse the repository at this point in the history
  • Loading branch information
jau5mann committed Oct 28, 2021
1 parent a76c00e commit d045b93
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 3 deletions.
2 changes: 2 additions & 0 deletions dist/hls.js
Original file line number Diff line number Diff line change
Expand Up @@ -19588,12 +19588,14 @@ function (_BaseStreamController) {
} else if (foundFrag) {
if (fragmentTracker.getState(foundFrag) === FragmentState.NOT_LOADED) {
// only load if fragment is not loaded
logger["logger"].log('Fragment not loaded yet, loading now');
this.fragCurrent = foundFrag;
this.state = State.FRAG_LOADING;
this.hls.trigger(events["default"].FRAG_LOADING, {
frag: foundFrag
});
} else {
logger["logger"].log('Fragment already loaded');
this.fragPrevious = foundFrag;
}
}
Expand Down
2 changes: 1 addition & 1 deletion dist/hls.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/hls.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/hls.min.js.map

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions src/controller/subtitle-stream-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -255,10 +255,12 @@ export class SubtitleStreamController extends BaseStreamController {
} else if (foundFrag) {
if (fragmentTracker.getState(foundFrag) === FragmentState.NOT_LOADED) {
// only load if fragment is not loaded
logger.log('Fragment not loaded yet, loading now');
this.fragCurrent = foundFrag;
this.state = State.FRAG_LOADING;
this.hls.trigger(Event.FRAG_LOADING, { frag: foundFrag });
} else {
logger.log('Fragment already loaded');
this.fragPrevious = foundFrag;
}
}
Expand Down

0 comments on commit d045b93

Please sign in to comment.