0

我正在尝试使用 agora io sdk 4 并且服务器响应 CORS 问题。

控制台日志

import AgoraRTC from "agora-rtc-sdk-ng"

async function joinAgora(){
  const client = AgoraRTC.createClient({
      mode: 'rtc',
      codec: 'vp8'
  });


  try{
      const uid = await client.join(constants.AGORA_API_KEY,"SOME_ROOM", null, "GENERATE_UID")
      console.log("join success", uid);
  }catch (e){
      console.log("join failed", e);
  }
}

4

0 回答 0