Skip to content

Support encrypted RED and Opus audio simulcast - #1006

Open
Yo-DDV wants to merge 1 commit into
livekit:mainfrom
Yo-DDV:codex/encrypted-audio-codec-selection
Open

Support encrypted RED and Opus audio simulcast#1006
Yo-DDV wants to merge 1 commit into
livekit:mainfrom
Yo-DDV:codex/encrypted-audio-codec-selection

Conversation

@Yo-DDV

@Yo-DDV Yo-DDV commented Aug 22, 2026

Copy link
Copy Markdown

Closes #1005.

Summary

  • route subscribed audio codec updates through the signaling stack
  • advertise RED as the primary encrypted codec and lazily publish encrypted Opus under the same track SID when required
  • apply dynacast codec enablement so only subscriber-needed senders remain active
  • support multiple E2EE sender cryptors for one publication
  • handle codec updates that arrive before publication or while the secondary sender is being created

Verification

  • ./gradlew spotlessCheck :livekit-android-sdk:compileDebugKotlin :livekit-android-test:testDebugUnitTest
  • Android 0.4.4 / Firefox 154 on macOS: encrypted Android audio is audible in Firefox
  • RED remains enabled for compatible subscribers; Opus is published only when requested

@changeset-bot

changeset-bot Bot commented Aug 22, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 868d9d5

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

This PR includes changesets to release 1 package
Name Type
client-sdk-android Patch

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

@CLAassistant

CLAassistant commented Aug 22, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@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 potential bugs to report.

View in Devin Review to see 1 additional finding.

Open in Devin Review

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 encrypted RED/Opus audio simulcast for Firefox subscribers

2 participants