ex: stream.videoSettings.profileLevel = kVTProfileLevel_HEVC_Main_AutoLevel as String
HLS
HTTPService
HLS Publish
Multi Camera
Supports two camera video sources. A picture-in-picture display that shows the image of the secondary camera of the primary camera. Supports camera split display that displays horizontally and vertically.
Picture-In-Picture
Split
let back = AVCaptureDevice.default(.builtInWideAngleCamera, for: .video, position: .back)
stream.attachCamera(back)
if #available(iOS 13.0, *) {
let front = AVCaptureDevice.default(.builtInWideAngleCamera, for: .video, position: .front)
stream.attachMultiCamera(front)
}
Examples project are available for iOS with UIKit, iOS with SwiftUI, macOS and tvOS.
Camera and microphone publish.
RTMP Playback
git clone https://github.com/shogo4405/HaishinKit.swift.git
cd HaishinKit.swift
carthage bootstrap --use-xcframeworks
open HaishinKit.xcodeproj
☕ Cocoa Keys
Please contains Info.plist.
iOS 10.0+
NSMicrophoneUsageDescription
NSCameraUsageDescription
macOS 10.14+
NSMicrophoneUsageDescription
NSCameraUsageDescription
🔧 Installation
CocoaPods
source 'https://github.com/CocoaPods/Specs.git'
use_frameworks!
def import_pods
pod 'HaishinKit', '~> 1.5.2
end
target 'Your Target' do
platform :ios, '11.0'
import_pods
end
Carthage
github "shogo4405/HaishinKit.swift" ~> 1.5.2
Swift Package Manager
https://github.com/shogo4405/HaishinKit.swift
🔧 Prerequisites
Make sure you setup and activate your AVAudioSession iOS.
Looking for sponsors. Sponsoring I will enable us to:
Purchase smartphones or peripheral devices for testing purposes.
Pay for testing on a specific streaming service or for testing on mobile lines.
Potentially private use to continue the OSS development
If you use any of our libraries for work, see if your employers would be interested in sponsorship. I have some special offers. I would greatly appreciate. Thank you.
If you request I will note your name product our README.
If you mention on a discussion, an issue or pull request that you are sponsoring us I will prioritise helping you even higher.
HaishinKit for iOS, macOS, tvOS, and Android.
Sponsored with 💖 by
Enterprise Grade APIs for Feeds & Chat. Try the iOS Chat tutorial 💬
💬 Communication
LBLogger.with(HaishinKitIdentifier).level = .trace
.💖 Sponsors
🌏 Related projects
🎨 Features
RTMP
stream.videoSettings.profileLevel = kVTProfileLevel_H264_Baseline_3_1 as String
stream.videoSettings.profileLevel = kVTProfileLevel_HEVC_Main_AutoLevel as String
HLS
Multi Camera
Supports two camera video sources. A picture-in-picture display that shows the image of the secondary camera of the primary camera. Supports camera split display that displays horizontally and vertically.
Rendering
Others
Support GPUImage framework (~> 0.5.12)https://github.com/shogo4405/GPUHaishinKit.swift/blob/master/README.mdObjective-C Bridging🌏 Requirements
🐾 Examples
Examples project are available for iOS with UIKit, iOS with SwiftUI, macOS and tvOS.
☕ Cocoa Keys
Please contains Info.plist.
iOS 10.0+
macOS 10.14+
🔧 Installation
CocoaPods
Carthage
Swift Package Manager
🔧 Prerequisites
Make sure you setup and activate your AVAudioSession iOS.
📓 RTMP Usage
Real Time Messaging Protocol (RTMP).
RTMP URL Format
Settings
Authentication
Screen Capture
📓 HTTP Usage
HTTP Live Streaming (HLS). Your iPhone/Mac become a IP Camera. Basic snipet. You can see http://ip.address:8080/hello/playlist.m3u8
💠 Sponsorship
Looking for sponsors. Sponsoring I will enable us to:
If you use any of our libraries for work, see if your employers would be interested in sponsorship. I have some special offers. I would greatly appreciate. Thank you.
スポンサーを募集しています。利用用途としては、
このライブラリーを仕事で継続的に利用している場合は、ぜひ。雇用主に、スポンサーに興味がないか確認いただけると幸いです。いくつか特典を用意しています。
Sponsorship
📖 Reference
📜 License
BSD-3-Clause