w3c / w3c/webcodecs

Add audio recording to capture to file sample.

Open
#670 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

samples
Dominant language
HTML
Stars
1.3k
Forks
194
Avg merge
1d 13h
Merged PRs (30d)
3

Description

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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked capture-to-file sample and review how it encodes and saves the webcam MediaStream. Investigate whether WebCodecs audio encoding can be combined with that path without using MediaRecorder. Done should mean the sample records and saves both audio and video, but the issue does not specify the required audio source, format, or synchronization behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
html
Domain
audio-video-rtc
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.