Commit e98d288ef68d869944d3ecde46a09c4d31108706

Authored by 朱林
1 parent 82321daa

no message

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
@@ -23,4 +23,5 @@ @@ -23,4 +23,5 @@
23 #define AppSceret @"c70a9bb56f2f654b60db64b2a5fa7e92ebd4954b237435" 23 #define AppSceret @"c70a9bb56f2f654b60db64b2a5fa7e92ebd4954b237435"
24 #endif 24 #endif
25 25
  26 +
26 #endif /* AppMacro_h */ 27 #endif /* AppMacro_h */