void CRTCSampleMainInterface::OnRemoteUserOnLineNotify()

in AliRTC2.5/Windows/MFC Demo/RtcSample/RTCSampleMainInterface.cpp [585:622]


void CRTCSampleMainInterface::OnRemoteUserOnLineNotify(const char *uid, int elapsed)
{
	m_sRemoteUserRelease.s_bRemoteUserOnLineActioning = true;
	WRILOG(LOGTYPE_DEBUG, "DEBUG3.LOG", "onRemoteUserOnLineNotify", "1远端入会开始[uid:%s]", uid);
	Dictionary dict;
	m_pEngine->GetUserInfo(uid, dict);

	sRemoteInfo RemoteInfo;
	m_mapRemoteInfo.insert(pair<CString, sRemoteInfo>(uid, RemoteInfo));
	m_mapRemoteInfo[uid].s_bBigStream = true;
	m_mapRemoteInfo[uid].s_bIsRecvAudio = true;
	m_mapRemoteInfo[uid].s_bIsRecvCamera = true;
	m_mapRemoteInfo[uid].s_bIsRecvScreen = true;
	m_mapRemoteInfo[uid].s_bHsaCameraFlow = false;
	m_mapRemoteInfo[uid].s_bHsaScreenFlow = false;
	m_mapRemoteInfo[uid].s_bIsReflect = false;

	m_mapRemoteInfo[uid].s_strRemoteUserName = dict.getValue("displayName");
	m_mapRemoteInfo[uid].s_strRemoteUserUid = dict.getValue("userID");

	m_vecRemoteInfoList.push_back(uid);
	WRILOG(LOGTYPE_DEBUG, "DEBUG3.LOG", "onRemoteUserOnLineNotify", "2远端入会[uid:%s][在线人数:%d]", uid, m_mapRemoteInfo.size());
	ShowNumOfChannels();
	WRILOG(LOGTYPE_DEBUG, RTC_DEBUG_LOG, "onRemoteUserOnLineNotify", "远端入会[uid:%s][在线人数:%d]", uid, m_mapRemoteInfo.size());

	CString str,strUser;
	for (int i = 0; i < (int)m_vecRemoteInfoList.size(); i++)
	{
		if (strUser != m_vecRemoteInfoList[i].c_str())
		{
			strUser = m_vecRemoteInfoList[i].c_str();
			str.Format("%s\r\n%s", str, strUser);
		}		
	}
	WRILOG(LOGTYPE_DEBUG, "DEBUG2.LOG", "本次人数", "%s", str);

	m_sRemoteUserRelease.s_bRemoteUserOnLineActioning = false;
}