muaz-khan / RecordRTC

RecordRTC is WebRTC JavaScript library for audio/video as well as screen activity recording. It supports Chrome, Firefox, Opera, Android, and Microsoft Edge. Platforms: Linux, Mac and Windows.
https://www.webrtc-experiment.com/RecordRTC/
MIT License
6.45k stars 1.75k forks source link

RecordRTC issue while using it with Angular material and universal (SSR) #844

Open rajibhalder opened 1 year ago

rajibhalder commented 1 year ago

Is RecordRTC not compatible with Angular material and universal (SSR). Though with Angular material and CSR it is working fine. I added a conditional check isPlatformBrowser(platformId) for initializing recordRTC, but it seems the error occurs if i uncomment below code:

  this.recorder = new RecordRTC.StereoAudioRecorder(this.stream, {
        type: "audio",
        mimeType: "audio/webm",
      });

or this.recorder = new RecordRTC();

Getting some CSS related error.