Hello,
I'd like to know whether Multipeer Connectivity (MPC) between two modern iOS devices can support cross-streaming of video content at low latency and relatively high resolution. I learned from Ghostbusters that crossing the streams is a bad idea, but I need this for my app so I'm going to ignore their sage advice.
The application I have in mind involves one iOS device (A) live-streaming a feed to another iOS device (B) running the same app. At the same time, B is live streaming its own feed to A. Both feeds don't need to be crystal clear, but there has to be low latency. The sample code for "Streaming an AR Experience" seems to contain some answers, as it's based on MPC (and ARKit), but my project isn't quite AR and the latency seems high.
If MPC isn't suitable for this task (as my searches seem to indicate), is it possible to have one device set up a hotspot and link the two this way to achieve my cross-streaming ambitions? This seems like a more conservative method, assuming the hotspot and its client behave like they're wifi peers (not sure). I might start a new thread with just this question if that's more appropriate.
A third idea that's not likely to work (for various reasons) is data transfer over a lightning-lightning or lightning-usb-c connection.
If I've missed any other possible solutions to my cross-streaming conundrum, please let me know.
I've been reading around this subject on this forum as well and would be hugely grateful if Eskimo would grace me with his wisdom.
I should ask for one clarification regarding APs not forwarding STA-to-STA traffic
The problem here is that Personal Hotspot is a user-facing feature, not a developer API. Last I checked it will forward STA-to-STA traffic [1]. However, that’s not really a part of Personal Hotpot’s core mission, which is to provide Internet connectivity to the STAs. You could imagine a world where Apple changed this behaviour. The vast majority of Personal Hotspot users wouldn’t notice, but your use case would be completely toast.
So, is this behaviour going to change? I can’t predict The Future™ in general, and that’s doubly so for user-level features like Personal Hotspot.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"
[1] Including the not-really-a-STA case of an app running on the device running Personal Hotspot.