Commit bc71f0dbc296eb13dff414601f702eff4844539c

Authored by 王军波
2 parents 017c698b 51ace907

Merge branch 'master' of bj.gitlab.cnlive.com:ios-team/LiveVideoCloud

LiveVideoCloud/Classes/Sections/LiveSections/Controller/LVCLiveViewController.m
... ... @@ -102,11 +102,16 @@
102 102 NSString *random = [NSString stringWithFormat:@"%d%d%d%d%d",arc4random()%9,arc4random()%9,arc4random()%9,arc4random()%9,arc4random()%9];
103 103 NSString *activityId = [NSString stringWithFormat:@"%@%@",timeString,random];
104 104  
  105 +// _kitCN = [[CNLiveGPUStreamerKit alloc] initWithDefaultConfigWithActivityId:activityId channelId:@"iOStest" isHorizontalScreen:@"0"];
  106 +
  107 + _kitCN = [[CNLiveGPUStreamerKit alloc] initCNLiveKitWithInterruptConfigWithPureAudioMode:NO];
  108 + _kitCN.activityId = activityId;
  109 + _kitCN.channelId = data[@"channelId"];
  110 +
105 111 // 主播ID
106   - NSString *channelId = data[@"channelId"];
107 112 NSString *channelName = data[@"channelName"];
108 113 NSString *coverImgUrl = data[@"coverImgUrl"];
109   - _kitCN = [[CNLiveGPUStreamerKit alloc] initWithDefaultConfigWithActivityId:activityId channelId:channelId isHorizontalScreen:@"0"];
  114 +
110 115 // 封面图
111 116 _kitCN.coverImgUrl = coverImgUrl;
112 117 // 昵称 头像
... ...