How can I use a MediaRecorder object in an Angular2 application?

后端 未结 7 482
刺人心
刺人心 2021-01-03 21:15

I\'m building a small Angular2 app and I\'m trying to use a MediaRecorder object (https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder) like so:

va         


        
7条回答
  •  北荒
    北荒 (楼主)
    2021-01-03 22:00

    Just npm install -D @types/dom-mediacapture-record is enough, don't modify tsconfig.json at all, no types no ///reference no typeRoots is neccesary (and those are rarely needed for anything in general....

提交回复
热议问题