RtcEnginertcEngine = RtcEngine.create(
mContext, appId,mEngineEventHandler.mRtcEventHandler);rtcEngine.joinChannel(null,channel, "Extraoptional data", uid);mRtcEngine.leaveChannel();
let engine = AgoraRtcEngineKit.sharedEngineWithAppId( "AppId",delegate: self )
engine.enableVideo()
engine.joinChannelByKey(nil, channelName: "channelName",
info: nil, uid: 0, joinSuccess: nil)
var client = AgoraRTC.createRtcClient();
client.init(appId, function() {
client.join(appId, channel, undefined, successCallback, errorCallback);
}, errorCallback);
BOOL CAgoraObject::JoinChannel(LPCSTR lpChannelName, UINT nUID){
int nRet = 0;
nRet = m_lpAgoraEngineEx->joinChannel(NULL, lpChannelName, NULL, nUID);
return nRet == 0 ? TRUE : FALSE;
}
agoraClient.join(token, channel,uid, function(){console.log('join success')},function(err){console.log('join failed')}