HaishinKit.swift
iOS · macOS · tvOS · visionOS
Build with Swift for camera and microphone capture, media mixing, and live publishing or playback.
Swift API reference Source, setup & examplesOPEN SOURCE. ON AIR.
Live streaming, inside your app.
HaishinKit brings camera, microphone and streaming APIs to Swift, Kotlin and Flutter. Build your experience. Make it live.
Swift · Kotlin · Dart BSD 3-Clause licensed
iOS / macOS / tvOS / visionOS / Android / Flutter
01 / THE LIBRARIES
Native APIs where you need them.
Open source all the way down.
iOS · macOS · tvOS · visionOS
Build with Swift for camera and microphone capture, media mixing, and live publishing or playback.
Swift API reference Source, setup & examplesKotlin · Android
Bring RTMP streaming to Android with camera and microphone APIs, video mixing, and multiple stream outputs.
Kotlin API reference Source, setup & examplesDart · Flutter plugin
Access HaishinKit through Dart interfaces for Flutter apps. The plugin is under development; review its current limitations before adopting.
Dart API reference Source, setup & examples02 / FROM INPUT TO OUTPUT
The building blocks for a broadcast that feels like your app. Check each SDK’s documentation for platform-specific support.
Explore the APIsWork with camera and microphone inputs. On Apple platforms, explore screen capture with ReplayKit and ScreenCaptureKit.
Mix video with text and bitmap overlays for watermarks, time displays and custom broadcast layouts.
Publish with RTMP, or explore SRT in the Swift SDK. Multi-streaming lets you send to separate services.
03 / FIRST FRAME
Start with the example app for your platform.
Connect your own streaming endpoint, then build from there.
# Get the library and example apps
git clone https://github.com/HaishinKit/HaishinKit.swift.git
cd HaishinKit.swift
# Open the examples in Xcode
open Examples/Examples.xcodeprojUsing another platform? Android examples ↗ Flutter examples ↗
04 / GOOD TO KNOW
HaishinKit is a family of open-source audio and video streaming libraries. HaishinKit.swift targets Apple platforms, HaishinKit.kt targets Android, and HaishinKit.dart provides a Flutter interface.
RTMP is available across the projects. HaishinKit.swift also supports SRT and includes alpha WHIP/WHEP support. Protocol availability and maturity differ by SDK and version.
The SDKs use the BSD 3-Clause license, which permits commercial use subject to its terms. Review the license and third-party dependency licenses in your chosen repository.
Visit documentation versions. Replace latest with a published version in /swift/$version/documentation/, /kt/$version/ or /dart/$version/.
BUILT IN THE OPEN
Explore the code, contribute an improvement, or support development through GitHub Sponsors.