Skip to main content

haishin_kit 0.19.1 copy "haishin_kit: ^0.19.1" to clipboard
haishin_kit: ^0.19.1 copied to clipboard

A Flutter plugin for capturing, mixing, publishing, and playing audio and video with RTMP, SRT, WHIP, and WHEP.

๐Ÿ“ก HaishinKit Plugin #

Dart CI pub package Android API 24+ Apple platforms BSD-3-Clause

A Flutter interface to HaishinKit's native streaming libraries for Android, iOS, and macOS. Capture, compose, preview, publish, and play audio/video with RTMP, RTMPS, SRT, WHIP, and WHEP.

API reference ยท pub.dev ยท Example app

๐ŸŽจ Features #

  • Camera and microphone capture through a common MediaMixer interface.
  • RTMP/RTMPS and SRT publishing/playback, WHIP publishing, and WHEP playback.
  • Text, image, and video compositions, snapshots, and ScreenObject editing APIs.
  • Native video textures for Flutter previews and playback.
  • A common StreamSession lifecycle across supported platforms.

๐Ÿ“ฆ Installation #

Add the published package to your app's pubspec.yaml:

dependencies:
  haishin_kit: ^0.19.1
flutter pub get

Use Flutter 3.44+ and Dart 3.12+. Platform requirements:

Platform Minimum
Android Android 7 / API 24 with Flutter 3.44; compile SDK 37+
iOS iOS 15; Xcode 26+
macOS macOS 12; Xcode 26+

The Android app minimum follows Flutter's SDK minimum; the native bridge declares API 23. Android WHIP audio publishing requires an Opus encoder, provided by Android 10+.

Apple builds use Swift Package Manager. Enable it before building:

flutter config --enable-swift-package-manager

See the integration guide in the library documentation for permissions, Android build properties, Apple setup, and session lifecycle.

๐Ÿ“š Documentation #

Use the generated dartdoc reference for capture, composition, stream sessions, and protocol integration.

The install example targets 0.19.1. The main branch contains the refreshed example and may include changes ahead of the published package or API reference; use a matching release tag when working with a published version.

๐Ÿพ Examples #

The Flutter sample demonstrates camera publishing, playback, text/image overlays, optional picture-in-picture camera capture, and touch editing. Its studio interface keeps the preview clear, with camera tools in a bottom sheet.

Flutter example running on Android (English, Pixel 5a):

Flutter sample publishing screen with a live camera preview in English on a Pixel 5a Flutter sample connection settings in English on a Pixel 5a Flutter sample playback waiting screen in English on a Pixel 5a

From a repository checkout:

cd example
flutter pub get
flutter run

A reachable streaming server is required for publishing/playback. See the example guide for endpoint settings and platform setup.

๐ŸŒ Native projects #

๐Ÿ’– Support #

Community discussion is open to everyone following the code of conduct. Technical support is available to contributors, academic researchers, and sponsors. The $50/month sponsorship tier includes priority support through Issues/Discussions.

๐Ÿ“œ License #

BSD 3-Clause. Native dependencies carry their own licenses; see the native projects for third-party notices.

35
likes
160
points
1.76k
downloads

Documentation

Documentation
API reference

Publisher

unverified uploader

Weekly Downloads

A Flutter plugin for capturing, mixing, publishing, and playing audio and video with RTMP, SRT, WHIP, and WHEP.

Repository (GitHub)
View/report issues

License

BSD-3-Clause (license)

Dependencies

flutter, freezed_annotation, json_annotation, plugin_platform_interface

More

Packages that depend on haishin_kit

Packages that implement haishin_kit