https://github.com/AgoraIO-Usecase/Video-Calling/tree/master/OpenDuo-Web
我已经按照上面列出的步骤进行了设置。
我有一个RTM令牌生成器,并将生成的令牌放在this._token = '‘中,如下面的代码示例所示。
接收错误,如下所示。RTM:错误代码5,签名校验失败
export default class RTMClient {
constructor () {
this._client = AgoraRTM.createInstance(appID)
this._uid = ''
this._token = '' // token placed here after generating
this._invitation = null
this._remoteInvitation = null
this.eventBus = new EventEmitter()
//This status is used to control whether the phone can be accessed
//The 'onLine' is ok.
this.status = 'offLine' //onLine, offLine, calling, meeting
this.peerInvitation()
}发布于 2021-08-25 17:38:32
当您没有从为rtc和RTM程序包创建的UID生成令牌时,可能会出现此错误。要解决此问题,您需要基于uuid(随机数)生成令牌。
https://stackoverflow.com/questions/61885429
复制相似问题