I'm new to Pythonista and the way objc_util interacts. Currently I trying to query the dual cameras on an IPhone 7 Plus.
I'm using the new way to query cameras in OSX 10
This is where I got stuck:
from objc_util import *
AVCaptureDeviceDiscoverySession = ObjCClass('AVCaptureDeviceDiscoverySession')
session = AVCaptureDeviceDiscoverySession.discoverySessionWithDeviceTypes_mediaType_position_(['AVCaptureDeviceTypeBuiltInDuoCamera' , 'AVCaptureDeviceTypeBuiltInWideAngleCamera', 'AVCaptureDeviceTypeBuiltInTelephotoCamera'],ns('AVMediaTypeVideo'),ns('AVCaptureDevicePositionUnspecified'))
How to implement the following line in Pythonista?
NSArray
session.devices contains when I look at it on an iPhone 7 Plus (IOS 10.1beta):
How to cast from here to the NSArray AVCaptureDevice??
.
Many thanks for any hints!