Skip to content

feat: support PCMA and PCMU audio publishing - #2287

Open
huangyouyi wants to merge 1 commit into
livekit:mainfrom
huangyouyi:feat/2281-pcma-pcmu
Open

huangyouyi wants to merge 1 commit into
livekit:mainfrom
huangyouyi:feat/2281-pcma-pcmu

Conversation

@huangyouyi

Copy link
Copy Markdown

What and why

Apps that interoperate with G.711 endpoints can request pcma or pcmu when publishing browser audio. audioCodec accepts a codec name or an object discriminated by codec. The Opus and RED objects use the existing audio options, and omitting audioCodec keeps the existing negotiation.

Chromium's WebRTC logs confirm the first RTP payload after publishing, republishing, and full reconnect. Firefox passed the send and receive codec checks for the same stages. Publication failure cleanup, pnpm test, pnpm test:public, and pnpm build also passed.

Fixes #2281

Checklist

  • An AI tool wrote or helped write this change (OpenAI Codex).

@CLAassistant

CLAassistant commented Nov 19, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@changeset-bot

changeset-bot Bot commented Nov 19, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 2d7469a

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
livekit-client Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Devin Review

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support explicit audio codec selection before publishing an audio track

2 participants