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.

Home Page:https://www.webrtc-experiment.com/RecordRTC/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

rajibhalder opened this issue · comments

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.