Commit e98d288ef68d869944d3ecde46a09c4d31108706

Authored by 朱林
1 parent 82321daa

no message

LiveVideoCloud/LiveVideoCloud/AppDelegate/AppDelegate.m
... ... @@ -23,7 +23,7 @@
23 23 self.window.rootViewController = [[ZXTabBarController alloc] init];
24 24  
25 25 //初始化直播SDK
26   - [[CNLiveWebcastManager manager] initWithAppId:AppId appKey:AppKey];
  26 +// [[CNLiveWebcastManager manager] initWithAppId:AppId appKey:AppKey];
27 27  
28 28 //初始化聊天SDK并连接服务器
29 29 [[CNLiveChatManager sharedCNLiveChatManager] initWithAppKey:AppKey appId:AppId];
... ...
LiveVideoCloud/LiveVideoCloud/Classes/Sections/LiveSections/Controller/LVCLiveViewController.m
... ... @@ -14,6 +14,10 @@
14 14 #import "LiveBaseView.h"
15 15 #import "LVCUGCLiveEndView.h"
16 16  
  17 +
  18 +#define KAppId @"60_irn9edco29"
  19 +#define KAppKey @"69fe70bda67e059286ad509d9f5377f815955645b52f94"
  20 +
17 21 @interface LVCLiveViewController ()<UIGestureRecognizerDelegate> {
18 22  
19 23 BOOL _isStreaming;
... ... @@ -57,6 +61,8 @@
57 61 [self.view addSubview:self.openFlashButton];
58 62 [self.view addSubview:self.filterView];
59 63  
  64 + [[CNLiveWebcastManager manager] initWithAppId:KAppId appKey:KAppKey];
  65 +
60 66 // 初始化推流
61 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 23 #define AppSceret @"c70a9bb56f2f654b60db64b2a5fa7e92ebd4954b237435"
24 24 #endif
25 25  
  26 +
26 27 #endif /* AppMacro_h */
... ...