react-audio-recorder icon indicating copy to clipboard operation
react-audio-recorder copied to clipboard

Illegal invocation Error

Open Blacktoviche opened this issue 5 years ago • 10 comments

Error produces when press "Record" button on Opera waveInterface.js:38 Uncaught (in promise) TypeError: Failed to execute 'getUserMedia' on 'MediaDevices': Illegal invocation

on Firefox TypeError: 'getUserMedia' called on an object that does not implement interface MediaDevices

Blacktoviche avatar Nov 03 '18 08:11 Blacktoviche

I'm experiencing the same bug

trostli avatar Nov 07 '18 23:11 trostli

@trostli As we are on the clock I managed to integrate https://github.com/mattdiamond/Recorderjs in our React app It works fine

Blacktoviche avatar Nov 08 '18 09:11 Blacktoviche

The issue is that navigator.mediaDevices.getUserMedia uses promises not callbacks for success and error.

toneplex avatar Nov 09 '18 21:11 toneplex

@trostli As we are on the clock I managed to integrate https://github.com/mattdiamond/Recorderjs in our React app It works fine

How did you solve this problem? Could you give more details? THX

ryanyu104 avatar Nov 14 '18 16:11 ryanyu104

I am also getting the same error on Chrome. Did anyone solve this issue?

murali-vutti avatar May 13 '19 10:05 murali-vutti

If @toneplex 's comment is correct then something like https://github.com/danrouse/react-audio-recorder/pull/29 should work (not tested yet!)

MatrixFrog avatar May 16 '19 23:05 MatrixFrog

update: I tried the demo page with that fix and it seems to be working! :tada:

MatrixFrog avatar May 16 '19 23:05 MatrixFrog

FYI I installed @MatrixFrog's fork and it works great! (Chrome Version 74.0.3729.157 (Official Build) (64-bit))

jakeols avatar Jul 01 '19 18:07 jakeols

@jakeols how did you do so?

jahirfiquitiva avatar Aug 20 '19 04:08 jahirfiquitiva

@jahirfiquitiva hey, sorry I completely missed the notification for this. Just add it in your package.json like below, and the run npm install

"react-audio-recorder": "github:MatrixFrog/react-audio-recorder#master",

jakeols avatar Nov 11 '19 04:11 jakeols