private RtcpiSourceDescriptionPacket constructSdesPacket() throws IllegalValueException {
LinkedList itemList=new LinkedList();
itemList.add(localParticipant.getStandardItem(SourceDescriptionItem.CNAME));
SourceDescriptionItem item;
if ((item=localParticipant.getStandardItem(SourceDescriptionItem.NOTE))!=null) {
noteFinishedCount=NOTE_FINISHED_COUNT;
if(sendNote) {
sendNote=!sendNote;
itemList.add(item);
RtcpiSourceDescriptionPacket packet = new RtcpiSourceDescriptionPacket(localParticipant.getParticipantID(), itemList);
return packet;
}
sendNote=!sendNote;
} else if (noteFinishedCount>0) {
if(sendNote) {
noteFinishedCount--;
sendNote=!sendNote;
item=new SourceDescriptionItem(SourceDescriptionItem.NOTE, new byte[0]);
itemList.add(item);
RtcpiSourceDescriptionPacket packet = new RtcpiSourceDescriptionPacket(localParticipant.getParticipantID(), itemList);
return packet;
}
sendNote=!sendNote;