int MultiConf::SendFPU(int partId)
{
	int ret = 0;
	
	Log("-SendFPU [id:%d]\n",partId);
	
	//Lock
	participantsLock.IncUse();

	//Get participant
	Participant *part = GetParticipant(partId);

	//Check participant
	if (part)
		//Send FPU
		ret = part->SendVideoFPU();
	if(m_CurrentBroadCaster != 0)
	{
		Log("-RequestFPU [id:%d]\n",m_CurrentBroadCaster);
		listener->onParticipantRequestFPU(this,m_CurrentBroadCaster,this->param);
		listener->onParticipantRequestFPU(this,partId,this->param);
	}
	//Unlock
	participantsLock.DecUse();

	//Exit
	return ret;
}
Beispiel #2
0
int MultiConf::SendFPU(int partId)
{
	int ret = 0;

	Log("-SendFPU [id:%d]\n",partId);

	//Lock
	participantsLock.IncUse();

	//Get participant
	Participant *part = GetParticipant(partId);

	//Check participant
	if (part)
		//Send FPU
		ret = part->SendVideoFPU();

	//Unlock
	participantsLock.DecUse();

	//Exit
	return ret;
}