captureDeviceDiscoverySession on macOS - return all cameras???

hi- im trying to use captureDeviceDiscoverySession- on macos - to return all the webcams i have plugged in - i have 2 - but its not giving me a list??

any clues??

there are lots of iphone camera options but none relevant to osx??

this didnt work?

AVCaptureDeviceDiscoverySession *captureDeviceDiscoverySession = [AVCaptureDeviceDiscoverySession discoverySessionWithDeviceTypes:@[AVCaptureDeviceTypeBuiltInWideAngleCamera, AVCaptureDeviceTypeExternalUnknown]

mediaType:AVMediaTypeVideo

position:AVCaptureDevicePositionUnspecified];

Are you writing a macOS native app or attempting to compile a catalyst app?

Code Block
AVCaptureDevice.DiscoverySession(deviceTypes: [.externalUnknown], mediaType: .video, position: .unspecified)

Gets all USB cameras for me. Not sure about a FaceTime Camera on a Laptop.
we use mediaType:AVMediaTypeMuxed, although I would have thought that AVMediaTypeVideo would include Muxed devices.
captureDeviceDiscoverySession on macOS - return all cameras???
 
 
Q