yusitnikov / fix-webm-duration

navigator.mediaDevices.getUserMedia + MediaRecorder create WEBM files without duration metadata. This library appends missing metadata section right to the file blob.
MIT License
248 stars 48 forks source link

Keep correct blob type also for audio #4

Closed sebhaase closed 2 years ago

sebhaase commented 3 years ago

In line 465 you should not write 'video/webm' but instead use the same type as found in the original blob. I put it in as function argument in line 475. That might be audio/webm

Thanks for your code.

yusitnikov commented 2 years ago

Hey @sebhaase , thanks for noticing that, and sorry for the huge delay in my response. Fixed at v1.0.2