w3c / webcodecs

WebCodecs is a flexible web API for encoding and decoding audio and video.

Home Page:https://w3c.github.io/webcodecs/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add audio recording to capture to file sample.

samdrivertlol opened this issue · comments

I have seen in the "capture-to-file" sample how to encode and save the MediaStream from a Webcam, but is there a simple way to combine it with the recorded audio?

"https://w3c.github.io/webcodecs/samples/capture-to-file/capture-to-file.html"

I am aware of MediaRecorder, but I cannot use it for certain reasons.

I would appreciate any suggestions or solutions. Thank you very much.

Adding audio should just be adding a track alongside the video one. The muxer should support that, but I haven't looked at it closely.