ACLiveKit is a opensource RTMP streaming SDK for iOS.
- Support recording and playback
- Support H264+AAC Hardware Encoding and Decoding
- Audio configuration
- Video configuration
- RTMP Transport
- Support Send Buffer
- Support both push and pull streaming
- iOS 10.0+
- Xcode 12.4
# To integrate ACLiveKit into your Xcode project using CocoaPods, specify it in your Podfile:
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '10.0'
pod 'ACLiveKit'
# Then, run the following command:
$ pod install
1. Download all the files in the `ACLiveKit` subdirectory.
2. Add the source files to your Xcode project.
3. Link with required frameworks:
* UIKit
* Foundation
* AVFoundation
* VideoToolbox
* AudioToolbox
* libz
* libstdc++
- (ACLiveSession *)session {
if (!_session) {
NSString *url = @"your server rtmp url";
ACLiveAudioConfiguration *audioConfig = [ACLiveAudioConfiguration defaultConfiguration];
ACLiveVideoConfiguration *videoConfig = [ACLiveVideoConfiguration defaultConfiguration];
_session = [[ACLiveSession alloc] initWithAudioConfiguration:audioConfig
videoConfiguration:videoConfig
url:url];
[_session setLivePreview:self.view];
}
return _session;
}
- (void)startLive {
[self.session startLive];
}
- (void)stopLive {
[self.session stopLive];
}
ACLiveKit is released under the MIT license. See LICENSE for details.