Embed: Display "perc" value in error message when present
This commit is contained in:
parent
ff32a55ddd
commit
55be798e46
2 changed files with 7 additions and 1 deletions
File diff suppressed because one or more lines are too long
|
@ -324,6 +324,9 @@ function MistVideo(streamName,options) {
|
|||
MistVideo.log(e);
|
||||
e = d.on_error;
|
||||
}
|
||||
else if ("perc" in d) {
|
||||
e += " ("+Math.round(d.perc*10)/10+"%)";
|
||||
}
|
||||
MistVideo.showError(e,{reload:true,hideTitle:true});
|
||||
return;
|
||||
}
|
||||
|
@ -1266,6 +1269,9 @@ function MistVideo(streamName,options) {
|
|||
MistVideo.log(e);
|
||||
e = data.on_error;
|
||||
}
|
||||
else if ("perc" in data) {
|
||||
e += " ("+Math.round(data.perc*10)/10+"%)";
|
||||
}
|
||||
MistVideo.state = data.error;
|
||||
var buttons;
|
||||
switch (data.error) {
|
||||
|
|
Loading…
Add table
Reference in a new issue