Skip to content

Commit

Permalink
Update src/controller/buffer-controller.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
itsjamie committed Jan 19, 2019
1 parent 92afa43 commit 59e6040
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controller/buffer-controller.ts
Expand Up @@ -478,7 +478,7 @@ class BufferController extends EventHandler {
}

onLevelUpdated ({ details }: { details: { totalduration: number, targetduration?: number, averagetargetduration?: number, live: boolean, fragments: any[] } }) {
if (details.fragments.length <= 0) {
if (details.fragments.length > 0) {
this._levelDuration = details.totalduration + details.fragments[0].start;
this._levelTargetDuration = details.averagetargetduration || details.targetduration || 10;
this._live = details.live;
Expand Down

0 comments on commit 59e6040

Please sign in to comment.