Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: "RecordRTC.RecordRTCPromisesHandler is not a constructor" #532

Closed
mustafaekim opened this issue Jun 17, 2019 · 3 comments
Closed

Comments

@mustafaekim
Copy link

let RecordRTC = require("recordrtc");
...
let recorder = new RecordRTC.RecordRTCPromisesHandler(this.stream, options);

that code throws the error below:
TypeError: "RecordRTC.RecordRTCPromisesHandler is not a constructor"

The problem is that RecortRTC does not include the RecordRTCPromisesHandler function at all.

if I use RecortRTC as a function, it returns a recorder (but that does not support promises)

@mustafaekim
Copy link
Author

I forgot to say, I use "recordrtc": "^5.5.6"

@muaz-khan
Copy link
Owner

Can you try exact 5.5.5?

@leo108
Copy link

leo108 commented Jun 18, 2019

@muaz-khan I got the same error in version 5.5.6, I think it was caused by this line https://github.com/muaz-khan/RecordRTC/blob/5.5.6/RecordRTC.js#L5378, the MultiStreamsMixer override the RecordRTC

muaz-khan added a commit to muaz-khan/MultiStreamsMixer that referenced this issue Jun 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants