Answers for "agora for web"

0

agora for web

import AgoraRTC from 'agora-rtc-sdk';
 
let client = AgoraRTC.createClient({ mode: "rtc", codec: "vp8" });
client.init(appid);
 
let clientRoleOptions = {level: 1};
client.setClientRole(role: “audience”, options?: clientRoleOptions);
client.join(token, channel, uid);
remoteStream.play("elementID");
client.leave();
Posted by: Guest on September-27-2021

Browse Popular Code Answers by Language