Skip to content

Commit

Permalink
apply swiftformat
Browse files Browse the repository at this point in the history
  • Loading branch information
hiroshihorie committed Nov 27, 2023
1 parent 8bcfd9d commit 353b12a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Sources/LiveKit/Track/Capturers/MacOSScreenCapturer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,10 @@ import Foundation
let content = displaySource.scContent as? SCShareableContent,
let nativeDisplay = displaySource.nativeType as? SCDisplay
{
let excludedApps = !self.options.includeCurrentApplication ? content.applications.filter { app in
let excludedApps = !options.includeCurrentApplication ? content.applications.filter { app in
Bundle.main.bundleIdentifier == app.bundleIdentifier
} : []

filter = SCContentFilter(display: nativeDisplay, excludingApplications: excludedApps, exceptingWindows: [])
} else {
throw TrackError.capturer(message: "Unable to resolve SCContentFilter")
Expand Down
5 changes: 3 additions & 2 deletions Sources/LiveKit/Types/Options/ScreenShareCaptureOptions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,16 @@ public class ScreenShareCaptureOptions: NSObject, VideoCaptureOptions {

@objc
public let useBroadcastExtension: Bool

@objc
public let includeCurrentApplication: Bool

public init(dimensions: Dimensions = .h1080_169,
fps: Int = 15,
showCursor: Bool = true,
useBroadcastExtension: Bool = false,
includeCurrentApplication: Bool = false) {
includeCurrentApplication: Bool = false)
{
self.dimensions = dimensions
self.fps = fps
self.showCursor = showCursor
Expand Down

0 comments on commit 353b12a

Please sign in to comment.