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

ERROR TypeError: Failed to construct 'MediaRecorder': parameter 1 is not of type 'MediaStream'. #183

Open
Rehum02 opened this issue Nov 8, 2021 · 0 comments

Comments

@Rehum02
Copy link

Rehum02 commented Nov 8, 2021

Hi,

Thanks for this great plugin.

I have an unexpected error using the plugin.

My Code

var array_streams = [myStream];
try {
   media_stream_multiple = new MultiStreamRecorder(array_streams);
 catch(err) { 
      msg = {fr:'Ooops, Erreur imprevue :: MediaRecorder non supporté (R:F0411211307)  ' + err, en:'Ooops, Unexpected error ::  Unsupported mediaRecorder ::(R:F0411211307)' + err};
      this.snackBar.open(msg[this.m_user_lang], '✔',  {duration: 4000, panelClass: this.productconstant.CONST_BASE_SNACBAR_NOTIF_STYLE.error });
      return;
    }

It ouput that error

ERROR TypeError: Failed to construct 'MediaRecorder': parameter 1 is not of type 'MediaStream'.

I am unable to use also addStream function
media_stream_multiple.addStream( share_stream );

My environment : Angular 12

How to fix that issue ?
Please help

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

1 participant