Commit e98d288ef68d869944d3ecde46a09c4d31108706
1 parent
82321daa
no message
Showing
3 changed files
with
8 additions
and
1 deletions
LiveVideoCloud/LiveVideoCloud/AppDelegate/AppDelegate.m
| @@ -23,7 +23,7 @@ | @@ -23,7 +23,7 @@ | ||
| 23 | self.window.rootViewController = [[ZXTabBarController alloc] init]; | 23 | self.window.rootViewController = [[ZXTabBarController alloc] init]; |
| 24 | 24 | ||
| 25 | //初始化直播SDK | 25 | //初始化直播SDK |
| 26 | - [[CNLiveWebcastManager manager] initWithAppId:AppId appKey:AppKey]; | 26 | +// [[CNLiveWebcastManager manager] initWithAppId:AppId appKey:AppKey]; |
| 27 | 27 | ||
| 28 | //初始化聊天SDK并连接服务器 | 28 | //初始化聊天SDK并连接服务器 |
| 29 | [[CNLiveChatManager sharedCNLiveChatManager] initWithAppKey:AppKey appId:AppId]; | 29 | [[CNLiveChatManager sharedCNLiveChatManager] initWithAppKey:AppKey appId:AppId]; |
LiveVideoCloud/LiveVideoCloud/Classes/Sections/LiveSections/Controller/LVCLiveViewController.m
| @@ -14,6 +14,10 @@ | @@ -14,6 +14,10 @@ | ||
| 14 | #import "LiveBaseView.h" | 14 | #import "LiveBaseView.h" |
| 15 | #import "LVCUGCLiveEndView.h" | 15 | #import "LVCUGCLiveEndView.h" |
| 16 | 16 | ||
| 17 | + | ||
| 18 | +#define KAppId @"60_irn9edco29" | ||
| 19 | +#define KAppKey @"69fe70bda67e059286ad509d9f5377f815955645b52f94" | ||
| 20 | + | ||
| 17 | @interface LVCLiveViewController ()<UIGestureRecognizerDelegate> { | 21 | @interface LVCLiveViewController ()<UIGestureRecognizerDelegate> { |
| 18 | 22 | ||
| 19 | BOOL _isStreaming; | 23 | BOOL _isStreaming; |
| @@ -57,6 +61,8 @@ | @@ -57,6 +61,8 @@ | ||
| 57 | [self.view addSubview:self.openFlashButton]; | 61 | [self.view addSubview:self.openFlashButton]; |
| 58 | [self.view addSubview:self.filterView]; | 62 | [self.view addSubview:self.filterView]; |
| 59 | 63 | ||
| 64 | + [[CNLiveWebcastManager manager] initWithAppId:KAppId appKey:KAppKey]; | ||
| 65 | + | ||
| 60 | // 初始化推流 | 66 | // 初始化推流 |
| 61 | NSString *activityId = [NSString stringWithFormat:@"%d%d%d%d%d",arc4random()%9,arc4random()%9,arc4random()%9,arc4random()%9,arc4random()%9]; | 67 | NSString *activityId = [NSString stringWithFormat:@"%d%d%d%d%d",arc4random()%9,arc4random()%9,arc4random()%9,arc4random()%9,arc4random()%9]; |
| 62 | 68 |
LiveVideoCloud/LiveVideoCloud/UtilKits/Macro/Macros/AppMacro.h