streamproc / MediaStreamRecorder

Cross browser audio/video/screen recording. It supports Chrome, Firefox, Opera and Microsoft Edge. It even works on Android browsers. It follows latest MediaRecorder API standards and provides similar APIs.
https://www.webrtc-experiment.com/msr/
MIT License
2.62k stars 563 forks source link

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

Open Rehum02 opened 2 years ago

Rehum02 commented 2 years ago

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