API-Examples-Web icon indicating copy to clipboard operation
API-Examples-Web copied to clipboard

OpenLive can't run

Open iceshou opened this issue 2 years ago • 3 comments

我在 .env 中填入我的项目的appid和临时token,并且chaner name 也是对的。但是demo一直提示说token无效

image

iceshou avatar Jun 13 '22 09:06 iceshou

@iceshou 您的token是怎么生成的呢 同样的token和uid,使用这个demo是否可以成功? https://webdemo.agora.io/basicVideoCall/index.html

plutoless avatar Jun 14 '22 02:06 plutoless

@iceshou 您的token是怎么生成的呢 同样的token和uid,使用这个demo是否可以成功? https://webdemo.agora.io/basicVideoCall/index.html

@plutoless 我就是在控制台生成的临时token。 你给我的这个地址中可以使用: image

生成的token的方式: image

iceshou avatar Jun 14 '22 06:06 iceshou

那就说明token本身是好的,您方便在这里打个断点,看下参数传递是否和您设置的匹配吗? https://github.com/AgoraIO/API-Examples-Web/blob/f304ecf125648e4c4f9af070fdcd37f87fbd33c7/OpenLive/src/pages/meeting.jsx#L111

plutoless avatar Jun 14 '22 08:06 plutoless