Skip to content

Commit

Permalink
[mirotalk] - print the all getUserMedia API error
Browse files Browse the repository at this point in the history
  • Loading branch information
miroslavpejic85 committed Jun 11, 2021
1 parent 77907d6 commit 62d4a66
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions www/js/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -1357,12 +1357,12 @@ function setupLocalMedia(callback, errorback) {

if (callback) callback();
})
.catch((e) => {
.catch((err) => {
// user denied access to audio/video
// https://blog.addpipe.com/common-getusermedia-errors/
console.error("Access denied for audio/video", e);
console.error("Access denied for audio/video", err);
playSound("error");
window.location.href = `/permission?roomId=${roomId}&getUserMediaError=${e.message}`;
window.location.href = `/permission?roomId=${roomId}&getUserMediaError=${err}`;
if (errorback) errorback();
});
} // end [setup_local_stream]
Expand Down

0 comments on commit 62d4a66

Please sign in to comment.