简体   繁体   English

Android Opentok

[英]Android Opentok

我正在使用OpenTok打电话给另一个人,但是另一个人打给我的电话没有来,logcat提供了以下信息:

Session error: Invalid token. Make sure you're using the latest OpenTok server SDK

You are probably generating an invalid token for the other person. 您可能为另一个人生成了无效的令牌。 Make sure your server code is passing in the correct parameters to generate tokens: https://tokbox.com/developer/sdks/server/ 确保您的服务器代码传递了正确的参数以生成令牌: https : //tokbox.com/developer/sdks/server/

Also, to debug your tokens, remove the string 'T1==' from the front of the token and base64 decode it. 另外,要调试令牌,请从令牌的开头删除字符串'T1 =='并对其进行base64解码。 The decoded string should contain a sessionId and apiKey . 解码后的字符串应包含sessionIdapiKey

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM