Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

agora video calls

import AgoraRTC from 'agora-rtc-sdk';

let client = AgoraRTC.createClient({ mode: "rtc", codec: "vp8" });
client.init(appid);
var localStream = AgoraRTC.createStream({ audio: true, video: true })
localStream.init();  
localStream.play(elementID);
client.join(token, channel, uid);
client.publish(localStream);
remoteStream.play("elementID");
client.leave();
Source by www.agora.io #
 
PREVIOUS NEXT
Tagged: #agora #video #calls
ADD COMMENT
Topic
Name
9+9 =