Our great sponsors
-
lf.swift
Camera and Microphone streaming library via RTMP and SRT for iOS, macOS, tvOS and visionOS.
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
Doing it without any third party libraries is going to drive you mad, as you're going to need to take the buffers from AVFoundation/AVCaptureSession, then deal with the RTMP handshake, compressing the buffers, and a lot of conversion in the process. If you're adamantly against any third party libraries (and I would be, too), you might want to look at HaishinKit and go through the code to see how it's being done there. I used that project once and was very happy with it.