How to get a list of Video devices Mac Catalyst

Hi

I would like to obtain the number and device names of camera devices connected to a Mac using Mac Catalyst APIs and allow the use to select between the built in web cam and an external USB web cam. Can anyone say which framework to use here. I've looked at Core Video and Core Media but they don't seem to give that information.

Thanks

Replies

AVCaptureDeviceDiscoverySession from AVCaptureDevice.h is your friend here.