關(guān)于聲望的那些坑
如果及集成了信令那么注意了
#define certificate1 @"5f4de3353e9045aabcca0a772fdffbb4"
注意的不是信令接收,信令接收很簡單,關(guān)鍵是視頻直播
進入視頻直播的時候
需要修改這個方法 key 是視頻直播必須寫的
NSString *key = [KeyCenter AppId];
key = [KeyHelp createMediaKeyByAppID:[KeyCenter AppId]
appCertificate:certificate1
channelName:_roomName
unixTs:time(NULL)
randomInt:(rand()%256 << 24) + (rand()%256 << 16) + (rand()%256 << 8) + (rand()%256)
uid:[appModel shareInstance].my_uid
expiredTs:0
];
int code = [self.rtcEngine joinChannelByKey:key channelName:self.roomName info:nil uid:[appModel shareInstance].my_uid joinSuccess:nil];
這樣就完美解決了