mirror of https://bitbucket.org/ausocean/av.git
mjpeg-player: comments and logging
This commit is contained in:
parent
88d1ccfe36
commit
5a1bb31093
|
@ -119,7 +119,6 @@ class PlaylistLoader extends EventHandler {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// param 1 -> data: { url: string; level: number | null; id: number | null; }
|
|
||||||
onLevelLoading(data) {
|
onLevelLoading(data) {
|
||||||
this.load({
|
this.load({
|
||||||
url: data.url,
|
url: data.url,
|
||||||
|
@ -160,6 +159,7 @@ class PlaylistLoader extends EventHandler {
|
||||||
if (loaderContext && loaderContext.url === context.url) { // same URL can't overlap
|
if (loaderContext && loaderContext.url === context.url) { // same URL can't overlap
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
|
console.warn(`aborting previous loader for type: ${context.type}`);
|
||||||
loader.abort();
|
loader.abort();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue