Skip to content

Commit

Permalink
fix issue cwilso#16, navigator.getUserMedia is not working
Browse files Browse the repository at this point in the history
  • Loading branch information
kumailraza committed Mar 17, 2021
1 parent cc16b5f commit caf5392
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 caf5392

Please sign in to comment.