Skip to content

Commit

Permalink
Fix iOSBroadcastExtension always false after copyWith invoked (#380)
Browse files Browse the repository at this point in the history
* Fix iOSBroadcastExtension always false after copyWith invoked

* Run dart formatter
  • Loading branch information
kNoAPP authored Oct 9, 2023
1 parent 07ff78c commit 93c1758
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/src/track/options.dart
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ class ScreenShareCaptureOptions extends VideoCaptureOptions {
: super(params: captureOptions.params);

ScreenShareCaptureOptions copyWith({
bool? useiOSBroadcastExtension,
bool? captureScreenAudio,
VideoParameters? params,
String? sourceId,
Expand All @@ -134,6 +135,8 @@ class ScreenShareCaptureOptions extends VideoCaptureOptions {
String? selfBrowserSurface,
}) =>
ScreenShareCaptureOptions(
useiOSBroadcastExtension:
useiOSBroadcastExtension ?? this.useiOSBroadcastExtension,
captureScreenAudio: captureScreenAudio ?? this.captureScreenAudio,
params: params ?? this.params,
sourceId: sourceId ?? deviceId,
Expand Down

0 comments on commit 93c1758

Please sign in to comment.