Commit f1176d27287f6d49fc11eda8094a317d3625611b
1 parent
79f2d873
no message
Showing
1 changed file
with
6 additions
and
1 deletions
LiveVideoCloud/Classes/Sections/LiveSections/Controller/LVCLiveViewController.m
| @@ -98,7 +98,12 @@ | @@ -98,7 +98,12 @@ | ||
| 98 | NSString *random = [NSString stringWithFormat:@"%d%d%d%d%d",arc4random()%9,arc4random()%9,arc4random()%9,arc4random()%9,arc4random()%9]; | 98 | NSString *random = [NSString stringWithFormat:@"%d%d%d%d%d",arc4random()%9,arc4random()%9,arc4random()%9,arc4random()%9,arc4random()%9]; |
| 99 | NSString *activityId = [NSString stringWithFormat:@"%@%@",timeString,random]; | 99 | NSString *activityId = [NSString stringWithFormat:@"%@%@",timeString,random]; |
| 100 | 100 | ||
| 101 | - _kitCN = [[CNLiveGPUStreamerKit alloc] initWithDefaultConfigWithActivityId:activityId channelId:@"iOStest" isHorizontalScreen:@"0"]; | 101 | +// _kitCN = [[CNLiveGPUStreamerKit alloc] initWithDefaultConfigWithActivityId:activityId channelId:@"iOStest" isHorizontalScreen:@"0"]; |
| 102 | + | ||
| 103 | + _kitCN = [[CNLiveGPUStreamerKit alloc] initCNLiveKitWithInterruptConfigWithPureAudioMode:NO]; | ||
| 104 | + _kitCN.activityId = activityId; | ||
| 105 | + _kitCN.channelId = @"iOStest"; | ||
| 106 | + | ||
| 102 | // 封面图 | 107 | // 封面图 |
| 103 | _kitCN.coverImgUrl = @"https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=169300069,2234409601&fm=21&gp=0.jpg"; | 108 | _kitCN.coverImgUrl = @"https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=169300069,2234409601&fm=21&gp=0.jpg"; |
| 104 | // 昵称 头像 | 109 | // 昵称 头像 |