HaishinKit. GitHub

OPEN SOURCE. ON AIR.

Build something
live.

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

MADE FOR YOUR STACK

iOS / macOS / tvOS / visionOS / Android / Flutter

01 / THE LIBRARIES

Your platform.
Your starting point.

Native APIs where you need them.
Open source all the way down.

03FLUTTER

HaishinKit.dart

Dart · Flutter plugin

Access HaishinKit through Dart interfaces for Flutter apps. The plugin is under development; review its current limitations before adopting.

RTMPUnder development
Dart API reference Source, setup & examples

02 / FROM INPUT TO OUTPUT

More than
a camera feed.

The building blocks for a broadcast that feels like your app. Check each SDK’s documentation for platform-specific support.

Explore the APIs
01

Capture the moment

Work with camera and microphone inputs. On Apple platforms, explore screen capture with ReplayKit and ScreenCaptureKit.

02

Make the frame your own

Mix video with text and bitmap overlays for watermarks, time displays and custom broadcast layouts.

03

Reach your streaming service

Publish with RTMP, or explore SRT in the Swift SDK. Multi-streaming lets you send to separate services.

03 / FIRST FRAME

From repo
to your first stream.

Start with the example app for your platform.
Connect your own streaming endpoint, then build from there.

Explore Swift examples
SWIFT / QUICK START
# 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.xcodeproj

Using another platform? Android examples ↗ Flutter examples ↗

04 / GOOD TO KNOW

A few answers
before you build.

What is HaishinKit?

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.

Which streaming protocols are supported?

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.

Can I use HaishinKit in a commercial app?

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.

Where are the docs for an older version?

Visit documentation versions. Replace latest with a published version in /swift/$version/documentation/, /kt/$version/ or /dart/$version/.

BUILT IN THE OPEN

Help keep it live.

Explore the code, contribute an improvement, or support development through GitHub Sponsors.