Giter VIP home page Giter VIP logo

abclivekit's Introduction

ABCLiveKit开发手册V1.0.3(ios)

Version License Platform

[TOC]

REVISION HISTORY

Version Date Changed By Changes
1.0.3 2018-06-11 Bing 2.0.0

环境准备

请确保满足以下开发环境要求:

  • Apple XCode 6.0或以上版本
  • iOS 9.0或以上版本
  • 本sdk提供四个framework:
1、ABCCoreKit.framework
2、ABCUIKit.framework
2、PenKit.framework
3、SocketIO.framework

添加ABCIMLib,ABCIMKit
添加ABCIMLib,ABCIMKit(使用Embedded Binaries 导入)

pod导入

pod 'ABCLive/ABCLiveCoreKit'
pod 'ABCLive/ABCLiveUIKit'
pod 'ABCLive/ABCLivePenKit'

由于SocketIO.framework 是swift库,请使用Embedded Binaries 导入,并在TARGETS->Build Settings ->Always Embed Swift Standard Libraries 设置为YES

快速接入直播互动

Step1 初始化SDK

token生成规则详见服务器文档(*建议把appid和appsecret放到服务器操作)

[[ABCLiveSDK shareABCLiveSDK] initWithToken:token];
[ABCLiveSDK shareABCLiveSDK].curUserMo = [ABCUserMo new];//设置用户id,用户nickname,用户avataUrl。用户id必须跟申请token的id一致

Step2 启动直播&互动页面

ABCInteractiveViewController *viewCtrl = [[ABCInteractiveViewController alloc] initABCInteractiveViewCtrlWithRoomMo:roomMo];
        [self presentViewController:viewCtrl animated:YES completion:nil];
ABCLivingViewController *viewCtrl = [[ABCLivingViewController alloc] initABCLivingViewCtrlWithRoomMo:roomMo];
        [self presentViewController:viewCtrl animated:YES completion:nil];

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.