Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,6 @@ import NitroModules

extension AVCaptureInput {
var isMicrophone: Bool {
guard let self = self as? AVCaptureDeviceInput else {
return false
}
if #available(iOS 17.0, *) {
return self.device.deviceType == .microphone
} else {
return self.device.deviceType == .builtInMicrophone
}
return ports.contains { $0.mediaType == .audio }
}
}
Loading