From 8ca9efb21219ebc5e32be5800e4f2c644f105a13 Mon Sep 17 00:00:00 2001 From: kNoAPP Date: Sat, 7 Oct 2023 17:23:21 -0700 Subject: [PATCH] Fix captureScreenAudio conditional --- lib/src/participant/local.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/participant/local.dart b/lib/src/participant/local.dart index 0a7fc78e..d39e0108 100644 --- a/lib/src/participant/local.dart +++ b/lib/src/participant/local.dart @@ -487,7 +487,7 @@ class LocalParticipant extends Participant { /// When capturing chrome table audio, we can't capture audio/video /// track separately, it has to be returned once in getDisplayMedia, /// so we publish it twice here, but only return videoTrack to user. - if (captureScreenAudio != null) { + if (captureScreenAudio ?? false) { captureOptions = captureOptions.copyWith(captureScreenAudio: true); final tracks = await LocalVideoTrack.createScreenShareTracksWithAudio( captureOptions);