Skip to content

Commit abd3ef5

Browse files
authored
Add restrictOwnAudio experimental param to AudioCaptureOptions (#1974)
1 parent 6881709 commit abd3ef5

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

.changeset/eighty-pears-cheat.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'livekit-client': patch
3+
---
4+
5+
Add restrictOwnAudio experimental param to AudioCaptureOptions

src/room/track/options.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,15 @@ export interface AudioCaptureOptions {
292292
*/
293293
voiceIsolation?: ConstrainBoolean;
294294

295+
/**
296+
* @experimental
297+
* when capturing system/screen-share audio, excludes the local participant's own audio
298+
* from the captured stream to prevent echo. Browser support is not widespread yet
299+
* (as of mid 2026, Chromium-based browsers only).
300+
* @see https://developer.mozilla.org/en-US/docs/Web/API/MediaTrackConstraints/restrictOwnAudio
301+
*/
302+
restrictOwnAudio?: ConstrainBoolean;
303+
295304
/**
296305
* the sample rate or range of sample rates which are acceptable and/or required.
297306
*/

0 commit comments

Comments
 (0)