I've tried with ReplayKit and the following function.
let recorder = RPScreenRecorder.shared()
recorder.startCapture(handler: { ... })
But I think that this is not the right way, because I can see only my View in the buffer.
I don't know what is the right method to do the Passthrough in screen capture because I can't find any documentation except com.apple.developer.screen-capture.include-passthrough entitlement.
Post
Replies
Boosts
Views
Activity
Thank you very much for the explanation! I have tried ReplayKit and Broadcast Extension and actually I can stream.
The problem now, but maybe because it's still in beta, is that when I enter "Passtrought in Screen Capture" on the Broadcast Extension capabilities, after about 8 seconds, it stops the stream and I get the following message on the Vision Pro "Live Broadcast to Broadcast Upload Extension has stopped due to: Attempted to start an invalid broadcast session."
While removing the capability (so with black background), it does not freeze and everything works.
Do you have any advice?
Hi, I apologize for the delay in responding, but I wanted to investigate the issue more thoroughly.
The "invalid broadcast session" problem was caused by excessive RAM consumption of our data upload library.
Once replaced, I no longer encountered the problem and everything is working properly!
So, I did not open any bug reports.
Thanks for helping me solve this!