在哪里可以找到远程查看的id?https://learn.microsoft.com/en-us/samples/azure-samples/communication-services-javascript-quickstarts/add-1-on-1-video-calling-to-your-application/
您是否关注过共享页面顶部的官方链接?
获取连接字符串
https://learn.microsoft.com/en-us/azure/communication-services/quickstarts/create-communication-resource?tabs=windows&pivots=platformazp#访问您的连接字符串和服务端点
然后
https://learn.microsoft.com/en-us/azure/communication-services/quickstarts/access-tokens?pivots=programming-language javascript#验证客户端
let identityResponse = await identityClient.createUser();
console.log(`nCreated an identity with ID: ${identityResponse.communicationUserId}`);
let identityResponse2 = await identityClient.createUser();
console.log(`nCreated an identity with ID: ${identityResponse2.communicationUserId}`);
let tokenResponse = await identityClient.getToken(identityResponse,["voip"]);
const { token, expiresOn } = tokenResponse;
console.log(`nIssued an access token with 'voip' scope that expires at
${expiresOn}:`);
console.log(token);
let tokenResponse2 = await identityClient.getToken(identityResponse2,["voip"]);
const { token2, expiresOn2 } = tokenResponse2;
console.log(`nIssued an access token with 'voip' scope that expires at
${expiresOn2}:`);
console.log(token2);
此外,我只能获得1个访问令牌
Issued an access token with 'voip' scope that expires at undefined:
undefined