MediaStreamRecorder icon indicating copy to clipboard operation
MediaStreamRecorder copied to clipboard

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

Open Rehum02 opened this issue 3 years ago • 0 comments

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

Rehum02 avatar Nov 08 '21 19:11 Rehum02