VisionOS 2 - Screen Capture with passthrough

We're trying to switch from using main camera access on Arkit to screen-capture with passthrough however we're facing some issues and it seems a bit complicated to debug. We have set up a broadcast Extension, set up some logs on the sample Handler but we get nothing in the console nor that the recording starts, we set up the picker as well and we can see our extension in the control center as one of the choices but clicking start, results in it stopping in less than one second after. The only message that is rather contradictory we see in the console.app is the following

[INFO] -[RPRecordingManager getSystemBroadcastExtensionInfo:]_block_invoke:1333 Extension has passthrough license 

and just right after

 [INFO] -[RPRecordingManager getSystemBroadcastExtensionInfo:]_block_invoke:1336 Extension does not have passthrough license

Hi @zaalup

There are two parts to this: the broadcast extension code and the passthrough-in-screen-capture entitlement.

First, verify your broadcast extension is working:

Can you get the extension to capture video when you haven't configured the passthrough-in-screen-capture entitlement? You should be able to record the screen without this entitlement, the difference is that the captured video will show your Vision Pro's content over a black background instead of passthrough. This will help isolate whether the issue is with your extension setup or specifically with the enterprise license.

Next, troubleshoot the entitlement/license setup:

Do you have multiple apps from your developer account installed on your Apple Vision Pro? If so, check that none of them have expired licenses. I've seen instances where an app with an expired license can cause other apps from the same developer to behave as if their licenses are also expired.

Additionally, use VisionEntitlementServices to verify your license is set up correctly. This thread has a code snippet you can use, just change .mainCameraAccess to .screenCapturePassthrough.

If the issue persists:

Consider filing a bug report report using Feedback Assistant, attach a sysdiagnose, and post the FB number here once you do. Bug Reporting: How and Why? has tips on creating your bug report.

VisionOS 2 - Screen Capture with passthrough
 
 
Q