Skip to content

Commit

Permalink
Demo: Log media error message when available
Browse files Browse the repository at this point in the history
  • Loading branch information
beaufortfrancois committed Sep 12, 2017
1 parent e90a1b9 commit 7326099
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -712,6 +712,9 @@ <h4> Stats Display </h4>
errorTxt = "The video could not be loaded, either because the server or network failed or because the format is not supported";
break;
}
if (mediaError.message) {
errorTxt += ' - ' + mediaError.message;
}
$("#HlsStatus").text(errorTxt);
console.error(errorTxt);
}
Expand Down

0 comments on commit 7326099

Please sign in to comment.