From 5a1bb31093a2d9627997c2d6c427c481418076e2 Mon Sep 17 00:00:00 2001 From: Trek H Date: Tue, 28 Jan 2020 16:26:25 +1030 Subject: [PATCH] mjpeg-player: comments and logging --- cmd/mjpeg-player/hlsjs/loader/playlist-loader.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/mjpeg-player/hlsjs/loader/playlist-loader.js b/cmd/mjpeg-player/hlsjs/loader/playlist-loader.js index bf2422f9..5c57f542 100644 --- a/cmd/mjpeg-player/hlsjs/loader/playlist-loader.js +++ b/cmd/mjpeg-player/hlsjs/loader/playlist-loader.js @@ -119,7 +119,6 @@ class PlaylistLoader extends EventHandler { }); } - // param 1 -> data: { url: string; level: number | null; id: number | null; } onLevelLoading(data) { this.load({ url: data.url, @@ -160,6 +159,7 @@ class PlaylistLoader extends EventHandler { if (loaderContext && loaderContext.url === context.url) { // same URL can't overlap return false; } else { + console.warn(`aborting previous loader for type: ${context.type}`); loader.abort(); } }