Skip to content

ACLiveKit is a opensource RTMP streaming SDK for iOS.

License

Notifications You must be signed in to change notification settings

war3pc/ACLiveKit

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ACLiveKit

ACLiveKit is a opensource RTMP streaming SDK for iOS.

Architecture

arch

Features

  • 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

Requirements

- iOS 10.0+
- Xcode 12.4

Installation

CocoaPods

# 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

Manually

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++

Usage example

Objective-C

- (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];
}

License

ACLiveKit is released under the MIT license. See LICENSE for details.

About

ACLiveKit is a opensource RTMP streaming SDK for iOS.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Objective-C 93.9%
  • Ruby 4.2%
  • Metal 1.4%
  • C 0.5%