iPad OS 15 and macOS 12 natively have the power to stream the iPad display to the mac wirelessly at fairly low latency utilizing airplay.
Nonetheless, that is on the OS degree. I’d like to have the ability to embed a screenshare from an iPad into a close-by mac’s view.
I can not appear to search out info on the developer pages that describe hoe to realize this, if it’s doable and never locked to the OS.
I discovered:
constructing a digital camera app
and
airplay for long-form video
—however these don’t match my use case too properly. The airplay instance appears to
assume I’m utilizing pre-recorded video. It’s additionally unclear how a receiving software might use the video. I’m wondering why my use instances aren’t actually documented.
Anyway, I understand the distant display streaming at present forces full-screen on the mac anyway, which suggests the function may be restricted in the intervening time anyway.
So the actual query is: can I stream my iPad’s display at low latency (realtime pace) to a mac on the native community and in some way show rhat streamed video in a view of my mac app? How can I obtain this?
Alternatively, worst case I feel I can use a wired connection and entry a preview of the iPad display through AVFoundation as described right here:
Get output from AVCaptureSession in Swift to ship to server
(is that proper?) however that’s not likely what I would like.
What could be an answer to this? Notice that the mac will at all times be on the identical community and in the identical room.
Notice: can replaykit assist right here in any respect?