Skip to content

Commit fccb2cb

Browse files
authored
Allow AudioCaptureOptions to be passed to ScreenShareCaptureOptions (#285)
* allow AudioCaptureOptions to be passed to ScreenShareCaptureOptions * changeset
1 parent 3da0099 commit fccb2cb

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/funny-papayas-pay.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'livekit-client': patch
3+
---
4+
5+
Allow AudioCaptureOptions to be passed to ScreenCaptureOptions

src/room/track/options.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ export interface ScreenShareCaptureOptions {
114114
* true to capture audio shared. browser support for audio capturing in
115115
* screenshare is limited: https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getDisplayMedia#browser_compatibility
116116
*/
117-
audio?: boolean;
117+
audio?: boolean | AudioCaptureOptions;
118118

119119
/** capture resolution, defaults to full HD */
120120
resolution?: VideoResolution;

0 commit comments

Comments
 (0)