iOS直播SDK登录聊天失败
问题描述
[PLVRoomLoginClient loginLiveRoomWithChannelType:channelType
channelId:self.channelIdTF.text
userId:self.userIDTF.text
appId:self.appIDTF.text
appSecret:self.appSecretTF.text
roomUser:^(PLVRoomUser * _Nonnull roomUser) {
// 可在此处配置自定义的登陆用户ID、昵称、头像,不配则均使用默认值
// roomUser.viewerId = @"用户ID";
// roomUser.viewerName = @"用户昵称";
// roomUser.viewerAvatar = @"用户头像";
} completion:^(PLVViewLogCustomParam * _Nonnull customParam) {
[hud hideAnimated:YES];
[weakSelf saveParamsToFile];
if (successHandler) {
successHandler();
}
} failure:^(NSString * _Nonnull errorMessage) {
[hud hideAnimated:YES];
[weakSelf showHud:errorMessage detail:nil];
}];解决方案与排查思路
Last updated