void CRTCSampleMainInterface::RetrievalChannelOrder()

in AliRTC2.5/Windows/MFC Demo/RtcSample/RTCSampleMainInterface.cpp [1903:1930]


void CRTCSampleMainInterface::RetrievalChannelOrder()
{
	KillTimer(TIMER_RETRIEVAL_CHANNEL);

	if ((m_iRightSideIndex - m_iLeftSideIndex) > 4)
	{
		MonitorSortingErrorReset();
		return;
	}

	for (int index = m_iLeftSideIndex; index <= m_iRightSideIndex; index++)
	{
        if (m_vecThrowingScreenInfo.size() <= 0 || m_vecThrowingScreenInfo.size() < (index - m_iLeftSideIndex + 1))
            continue;

		if (m_vecThrowingScreenInfo[index - m_iLeftSideIndex].s_strRemoteUserUid == "") continue;

		if (m_vecThrowingScreenInfo[index - m_iLeftSideIndex].s_strRemoteUserUid == m_vecRemoteInfoList[index]) continue;

		MonitorSortingErrorReset();
	}

	WRILOG(LOGTYPE_DEBUG, "DEBUG1.LOG", "", "【%s】-【%s】-【%s】-【%s】-【%s】", m_vecThrowingScreenInfo[0].s_strRemoteUserUid.c_str(),
		m_vecThrowingScreenInfo[1].s_strRemoteUserUid.c_str(),
		m_vecThrowingScreenInfo[2].s_strRemoteUserUid.c_str(),
		m_vecThrowingScreenInfo[3].s_strRemoteUserUid.c_str(),
		m_vecThrowingScreenInfo[4].s_strRemoteUserUid.c_str());
}