RtcEngine rtcEngine = RtcEngine.create(mContext, appId, mEngineEventHandler.mRtcEventHandler); rtcEngine.joinChannel(null, channel, “Extraoptional data“, uid); mRtcEngine.leaveChannel();
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; }
let engine = AgoraRtcEngineKit.sharedEngineWithAppId(“AppId”, delegate: self) engine.enableVideo() engine.joinChannelByKey(nil, channelName: “channelName”, info: nil, uid: 0, joinSuccess: nil)