Skip to content

Commit

Permalink
Merge pull request #18 from kumail-raza/kumailraza/fixes
Browse files Browse the repository at this point in the history
fix issue #16, navigator.getUserMedia is not working
  • Loading branch information
cwilso authored Sep 14, 2022
2 parents cc16b5f + caf5392 commit a8f6b47
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,7 @@ window.onload = function() {
// Attempt to get audio input
try {
// monkeypatch getUserMedia
navigator.getUserMedia =
navigator.getUserMedia ||
navigator.webkitGetUserMedia ||
navigator.mozGetUserMedia;
navigator.getUserMedia = navigator.mediaDevices.getUserMedia;

// ask for an audio input
navigator.getUserMedia(
Expand Down

0 comments on commit a8f6b47

Please sign in to comment.