[objective-c] get camera, microphone list

@import AVFoundation;


NSArray *cameras = [AVCaptureDevice devicesWithMediaType:AVMediaTypeVideo];
for (AVCaptureDevice *camera in cameras) {
  NSLog(@"%@", camera.localizedName);
}


NSArray *audios = [AVCaptureDevice devicesWithMediaType:AVMediaTypeAudio];
for (AVCaptureDevice *audio in audios) {
  NSLog(@"%@", audio.localizedName);
}
// and Built-In Speaker