Package rtpi.packets

Examples of rtpi.packets.SourceDescriptionItem


    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;
View Full Code Here

TOP

Related Classes of rtpi.packets.SourceDescriptionItem

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.