Are you happy with your logging solution? Would you help us out by taking a 30-second survey? Click here

LeanCloudLiveKit-iOS

Show how to add IM module to Live app

Subscribe to updates I use LeanCloudLiveKit-iOS


Statistics on LeanCloudLiveKit-iOS

Number of watchers on Github 271
Number of open issues 2
Average time to close an issue about 1 month
Main language Objective-C
Average time to merge a PR about 1 hour
Open pull requests 0+
Closed pull requests 0+
Last commit about 2 years ago
Repo Created over 3 years ago
Repo Last Updated over 1 year ago
Size 17.2 MB
Organization / Authorleancloud
Contributors2
Page Updated
Do you use LeanCloudLiveKit-iOS? Leave a review!
View open issues (2)
View LeanCloudLiveKit-iOS activity
View on github
Fresh, new opensource launches πŸš€πŸš€πŸš€
Trendy new open source projects in your inbox! View examples

Subscribe to our mailing list

Evaluating LeanCloudLiveKit-iOS for your project? Score Explanation
Commits Score (?)
Issues & PR Score (?)

LiveKit-iOS

enter image description here

LiveKit UI

  1. IM

  2. LeanCloud LeanCloud
git clone --depth=1 https://github.com/leancloud/LeanCloudLiveKit-iOS.git

 LiveKit-iOS
     LiveKit-iOS
      Assets.xcassets
      Class
       Camera
        Controller
        View
       Category
       Live
        ChildViewController
        Controller
        Model
        View
       Main
        Controller
        Libs
            IJKMediaFramework.framework #
            ... ...
       Mine
           Category
           Controller
           View
      LiveChat                               #
          Model
          Resources
           Gift
           HeartImage
          Streaming
           PLCameraStreamingKit
          Tool
           MBProgressHUD
          View
     Pods
     ChatKit                                    #IM
         Class
         Model
         Module
         Resources
         Tool
            Categories
            Service
            Vendor
         View

CocoaPods

CocoaPods Cocoa CocoaPods SDK

CocoaPods

  1. CocoaPods

CocoaPods

CocoaPods

 sudo gem install cocoapods

CocoaPods RubyGems

 gem sources --add https://ruby.taobao.org/ --remove https://rubygems.org/
 sudo gem install cocoapods
  1. CocoaPods

CocoaPods

 pod install
 #  CocoaPods  spec  Analyzing dependencies
 pod update --verbose --no-repo-update

--no-repo-update

CocoaPods .xcworkspace .xcodeproj

PodframeworkIJKMediaFramework.framework ,

Demo PlayerViewController

  1. APP URL URL LiveKit LiveKit URL LiveKit

    [[LCLKLiveService sharedInstance] fetchConversationIfNeededForLiveId:self.liveUrl callback:^(AVIMConversation *conversation, NSError *error) {
        if (conversation) {
           //...
        }
    }];

  1. URL ID ID

-[PlayerViewController exampleOpenConversationViewControllerWithConversaionId:fromNavigationController:]

LiveKit `-setViewDidLoadBlock:``-setViewWillAppearBlock:``-setViewWillDisappearBlock:` `enableAutoJoin`  YES

Demo PLViewController

Demo SDK PLStreamingKit

PLStreamingKit iOS RTMP SDK H.264 AAC

PLStreamingKit

AppDelegate.m SDK SDK PLStreamingSession

#import <PLStreamingKit/PLStreamingEnv.h>

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
    [PLStreamingEnv initEnv];
    // Override point for customization after application launch.
    return YES;
}
#import <PLStreamingKit/PLStreamingKit.h>

PLStreamingSession

PLStreamingSession

// streamJSON 
//
//  streamJSON 
//    @{@"id": @"stream_id",
//      @"title": @"stream_title",
//      @"hub": @"hub_name",
//      @"publishKey": @"publish_key",
//      @"publishSecurity": @"dynamic", // or static
//      @"disabled": @(NO),
//      @"profiles": @[@"480p", @"720p"],    // or empty Array []
//      @"hosts": @{
//            ...
//      }
NSDictionary *streamJSON;
PLVideoStreamingConfiguration *videoStreamingConfiguration = [PLVideoStreamingConfiguration configurationWithVideoSize:CGSizeMake(320, 576) videoQuality:kPLVideoStreamingQualityLow2];
PLAudioStreamingConfiguration *audioStreamingConfiguration = [PLAudioStreamingConfiguration defaultConfiguration];
PLStream *stream = [PLStream streamWithJSON:streamJSON];

self.session = [[PLStreamingSession alloc] initWithVideoStreamingConfiguration:videoStreamingConfiguration audioStreamingConfiguration:audioStreamingConfiguration stream:stream];
self.session.delegate = self;
//  security policy  static  dynamic
[self.session startWithCompleted:^(BOOL success) {
    //  UI 
    if (success) {
        // 
        //  self.session.pushURLstart  URL
    } else {
        // 
    }
}];

// 
[self.session stop];

session

[self.session destroy];

streamJSON

  1. -API
  2. 2 App

Demo URL

IM

IM ChatKit-OC

IM


  1. 520Linkee
  2. IMChatKit-OC
LeanCloudLiveKit-iOS open issues Ask a question     (View All Issues)
  • about 3 years ζœ‰δΈͺ小bug
LeanCloudLiveKit-iOS list of languages used
Other projects in Objective-C