Agora声网

关于声望的那些坑

如果及集成了信令那么注意了
#define certificate1 @"5f4de3353e9045aabcca0a772fdffbb4"
注意的不是信令接收,信令接收很简单,关键是视频直播
进入视频直播的时候
需要修改这个方法  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];

这样就完美解决了

你可能感兴趣的:(Agora声网)