[TOC]
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 'ABCLive/ABCLiveCoreKit'
pod 'ABCLive/ABCLiveUIKit'
pod 'ABCLive/ABCLivePenKit'
由于SocketIO.framework 是swift库,请使用Embedded Binaries 导入,并在TARGETS->Build Settings ->Always Embed Swift Standard Libraries 设置为YES
token生成规则详见服务器文档(*建议把appid和appsecret放到服务器操作)
[[ABCLiveSDK shareABCLiveSDK] initWithToken:token];
[ABCLiveSDK shareABCLiveSDK].curUserMo = [ABCUserMo new];//设置用户id,用户nickname,用户avataUrl。用户id必须跟申请token的id一致
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];