Merge branch 'development' into LTS_development

This commit is contained in:
Thulinma 2021-07-22 13:18:11 +02:00
commit f43a1e5b99
2 changed files with 5 additions and 2 deletions

File diff suppressed because one or more lines are too long

View file

@ -40,6 +40,9 @@ function MistVideo(streamName,options) {
this.options = options; this.options = options;
this.stream = streamName; this.stream = streamName;
this.info = false; this.info = false;
if (!window.MistInstances) { window.MistInstances = 0;}
window.MistInstances++;
this.n = window.MistInstances;
this.logs = []; this.logs = [];
this.log = function(message,type){ this.log = function(message,type){
if (!type) { type = "log"; } if (!type) { type = "log"; }
@ -54,7 +57,7 @@ function MistVideo(streamName,options) {
}); });
if (this.options.skin == "dev") { if (this.options.skin == "dev") {
try { try {
var msg = "["+(type ? type :"log")+"] "+(MistVideo.destroyed ? "[DESTROYED] " : "")+(this.player && this.player.api ? MistUtil.format.time(this.player.api.currentTime,{ms:true})+" " : "")+message; var msg = "["+(type ? type :"log")+"] "+(MistVideo.destroyed ? "[DESTROYED] " : "")+"[#"+(MistVideo.n)+"] "+(this.player && this.player.api ? MistUtil.format.time(this.player.api.currentTime,{ms:true})+" " : "")+message;
if (type && (type != "log")) { console.warn(msg); } if (type && (type != "log")) { console.warn(msg); }
else { console.log(msg); } else { console.log(msg); }
} catch(e){} } catch(e){}