[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Ccrtp-devel] Participants and Applications API
From: |
Paolo Andreetto |
Subject: |
[Ccrtp-devel] Participants and Applications API |
Date: |
Tue, 23 Sep 2003 15:00:45 +0200 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030908 Debian/1.4-4 |
Hi
How can I retrieve all participants' CNAME for a given Application? I'm
not sure to understand the APIs for such feature.
I've tried to overwrite the onGotSDESChunk method in this way:
// redefined from QueueRTCPManager
bool
onGotSDESChunk(SyncSource& source, SDESChunk& chunk, size_t len)
{
bool result = RTPSession::onGotSDESChunk(source,chunk,len);
RTPApplication::ParticipantsIterator
pIter=defaultApplication().begin();
RTPApplication::ParticipantsIterator
lastIter=defaultApplication().end();
for(;pIter!=lastIter;pIter++)
cout << "Participant: " <<
pIter->getSDESItem(SDESItemTypeCNAME) << endl;
return result;
}
just for test, but with two participants a segmentation fault occurs
after printing the first one.
Thanks
Paolo
- [Ccrtp-devel] Participants and Applications API,
Paolo Andreetto <=