Camera and Microphone streaming library via RTMP and SRT for iOS, macOS, tvOS and visionOS.
See the codeDo you need additional support? Technical support on Issues and Discussions is provided only to contributors and academic researchers of HaishinKit. By becoming a sponsor, I can provide the support you need.
Sponsor: $50 per month: Technical support via GitHub Issues/Discussions with priority response.
| Publish | Playback |
|---|---|
| Version | Xcode | Swift |
|---|---|---|
| 2.2.0+ | 26.0+ | 6.0+ |
| 2.1.0+ | 16.4+ | 6.0+ |
| iOS | tvOS | Mac Catalyst | macOS | visionOS | watchOS |
|---|---|---|---|---|---|
| 15.0+ | 15.0+ | 15.0+ | 12.0+ | 1.3+ | - |
TextScreenObject.swift (NSColor is unavailable).[!IMPORTANT] There are several issues that occur when connected to Xcode. Please also refer to this document.
publish and playback.You can verify by changing the URL of the following file. https://github.com/HaishinKit/HaishinKit.swift/blob/abf1883d25d0ba29e1d1d67ea9e3a3b5be61a196/Examples/Preference.swift#L1-L7
git clone https://github.com/HaishinKit/HaishinKit.swift.git
cd HaishinKit.swift
open Examples/Examples.xcodeproj
https://github.com/HaishinKit/HaishinKit.swift
Make sure you setup and activate your AVAudioSession iOS.
import AVFoundation
let session = AVAudioSession.sharedInstance()
do {
try session.setCategory(.playAndRecord, mode: .default, options: [.defaultToSpeaker, .allowBluetooth])
try session.setActive(true)
} catch {
print(error)
}
Please make sure to contains Info.plist the following values when accessing the camera or microphone.
<key>NSCameraUsageDescription</key>
<string>your usage description here</string>
<key>NSMicrophoneUsageDescription</key>
<string>your usage description here</string>
| Project name | Notes | License |
|---|---|---|
| HaishinKit for Android. | Camera and Microphone streaming library via RTMP for Android. | BSD 3-Clause "New" or "Revised" License |
| HaishinKit for Flutter. | Camera and Microphone streaming library via RTMP for Flutter. | BSD 3-Clause "New" or "Revised" License |
BSD-3-Clause
2,354 followers · starred Apr 2020
441 followers · starred Dec 2021
1,255 followers · starred Nov 2020
292 followers · starred Oct 2017
Camera and Microphone streaming library via RTMP and SRT for iOS, macOS, tvOS and visionOS.
See the codeDo you need additional support? Technical support on Issues and Discussions is provided only to contributors and academic researchers of HaishinKit. By becoming a sponsor, I can provide the support you need.
Sponsor: $50 per month: Technical support via GitHub Issues/Discussions with priority response.
| Publish | Playback |
|---|---|
| Version | Xcode | Swift |
|---|---|---|
| 2.2.0+ | 26.0+ | 6.0+ |
| 2.1.0+ | 16.4+ | 6.0+ |
| iOS | tvOS | Mac Catalyst | macOS | visionOS | watchOS |
|---|---|---|---|---|---|
| 15.0+ | 15.0+ | 15.0+ | 12.0+ | 1.3+ | - |
TextScreenObject.swift (NSColor is unavailable).[!IMPORTANT] There are several issues that occur when connected to Xcode. Please also refer to this document.
publish and playback.You can verify by changing the URL of the following file. https://github.com/HaishinKit/HaishinKit.swift/blob/abf1883d25d0ba29e1d1d67ea9e3a3b5be61a196/Examples/Preference.swift#L1-L7
git clone https://github.com/HaishinKit/HaishinKit.swift.git
cd HaishinKit.swift
open Examples/Examples.xcodeproj
https://github.com/HaishinKit/HaishinKit.swift
Make sure you setup and activate your AVAudioSession iOS.
import AVFoundation
let session = AVAudioSession.sharedInstance()
do {
try session.setCategory(.playAndRecord, mode: .default, options: [.defaultToSpeaker, .allowBluetooth])
try session.setActive(true)
} catch {
print(error)
}
Please make sure to contains Info.plist the following values when accessing the camera or microphone.
<key>NSCameraUsageDescription</key>
<string>your usage description here</string>
<key>NSMicrophoneUsageDescription</key>
<string>your usage description here</string>
| Project name | Notes | License |
|---|---|---|
| HaishinKit for Android. | Camera and Microphone streaming library via RTMP for Android. | BSD 3-Clause "New" or "Revised" License |
| HaishinKit for Flutter. | Camera and Microphone streaming library via RTMP for Flutter. | BSD 3-Clause "New" or "Revised" License |
BSD-3-Clause
2,354 followers · starred Apr 2020
441 followers · starred Dec 2021
1,255 followers · starred Nov 2020
292 followers · starred Oct 2017