Skip to content

Commit

Permalink
Allow AudioCaptureOptions to be passed to ScreenShareCaptureOptions (#…
Browse files Browse the repository at this point in the history
…285)

* allow AudioCaptureOptions to be passed to ScreenShareCaptureOptions

* changeset
  • Loading branch information
lukasIO committed Jun 28, 2022
1 parent 3da0099 commit fccb2cb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/funny-papayas-pay.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'livekit-client': patch
---

Allow AudioCaptureOptions to be passed to ScreenCaptureOptions
2 changes: 1 addition & 1 deletion src/room/track/options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export interface ScreenShareCaptureOptions {
* true to capture audio shared. browser support for audio capturing in
* screenshare is limited: https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getDisplayMedia#browser_compatibility
*/
audio?: boolean;
audio?: boolean | AudioCaptureOptions;

/** capture resolution, defaults to full HD */
resolution?: VideoResolution;
Expand Down

0 comments on commit fccb2cb

Please sign in to comment.