joinChannel 错误没有提示
哈咯,我在使用语音agoraKit的ios版本,请问一下这里 joinChannelByUserAccount 请求之后莫名其妙没有任何反应。看到文档里面有个joinSuccess的callback,但是没有找到failure的callback。
我在文档里面有看到说,失败的时候会给返回的参数,但是没有找到 例子 或者 其他项目 里面有 用到这个失败的处理的,所以很困惑,应该去哪里获取 失败返回 的参数呢?
哦我知道在哪里获取了,joinChannel 方程可以返回这个东西
但还是莫名其妙的无法语音,啥提示都没有,返回值是0,没有任何错误。。。。这种问题也不好复现给你们吧。。。
好像我第一次实验的时候能用的来着,后来不知道碰了哪里。。。
let result:Int32 = (agoraKit?.joinChannel( byUserAccount: byUserAccount, token: token, channelId: channelId, joinSuccess: {(channel, uid, elapsed) in print("joined--:", channel, uid, elapsed) } ))! print("joinChannel--",String(result))

很不明白哪里有问题。。。result是0,但是joinSuccess没有被触发
joinChannelByUserAccount 是被 改成了 joinChannel 对吧?
好像是服务器那边传过来的Token有问题,我再排查一下吧 但这里没有任何提示,还是需要你们帮忙看一下。。。 @plutoless 求救大神。。。不然我的服务器只能定期重启了。。
here's a sample token: '00647b23f19c015481fbb3e3013f33d6facIACN7A2udEBJLfVTsgeW7ZvKLDFp+pPa391LpINF9q2EOdNnjsh8e4p8IgC9fyTwuQMyYgQAAQCEmDBiAgCEmDBiAwCEmDBiBACEmDBi'
hmm i have tested this for quite a few times, the results have been consistent. I'm almost certain that there's something goofy going on. has your node.js example server been run for an extended period of time to test the stability ?
sorry, i just want to know what i can do to figure this problem out...
啊啊啊啊啊,我找到问题了 我的时间戳没有每次生成,导致一定时间之后生成的token就过期了。。。。。
不过话说回来,这种问题是不是应该有错误提示的。。。