Sample code for streaming video between iOS, macOS, or visionOS devices.
This is not a drop in solution for video streaming and will not compile on its own, but hopefully acts as a reference for how apps like Detail, Castaway, Bezel, Splitscreen, and Final Cut Camera are able to connect and stream realtime video across devices.
The RealtimeStreaming
package provides generic local p2p connectivity similar to Multipeer Connectivity, while the Networking
class incorporates the Transcoding package for local video streaming.