Post

Replies

Boosts

Views

Activity

Reply to AVFoundation on visionOS?
@slzrafael you can access the cameras from the AVP if you run the apps as iPad apps in 2D in the Shared Space, just not building it from a purely for VisionOS since AVCaptureDevice.DiscoverySession is unavailable in VisionOS. If you call the front camera the device will automatically call the PersonaCamera into view let deviceDiscoverySession = AVCaptureDevice.DiscoverySession(deviceTypes: [.builtInWideAngleCamera], mediaType: .video, position: .unspecified) for device in deviceDiscoverySession.devices { if device.position == .front { userFacingCamera = device } } currentDevice = userFacingCamera
Jul ’24