Skip to content

Commit

Permalink
Fix captureScreenAudio conditional (#378)
Browse files Browse the repository at this point in the history
  • Loading branch information
kNoAPP authored Oct 8, 2023
1 parent f16a79a commit 07ff78c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/participant/local.dart
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ class LocalParticipant extends Participant<LocalTrackPublication> {
/// 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);
Expand Down

0 comments on commit 07ff78c

Please sign in to comment.