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();