예제 #1
0
 /**
  * Handles and RTCP SDES packet.
  *
  * @param pkt the packet to handle.
  */
 private void addSDES(RawPacket pkt) {
   if (USE_CNAME_AS_ENDPOINT_ID) {
     for (CNAMEItem item : getCnameItems(pkt)) {
       SSRCDesc ssrc = getSSRCDesc(item.ssrc);
       if (ssrc.endpointId == null) {
         synchronized (ssrc) {
           if (ssrc.endpointId == null) ssrc.endpointId = item.cname;
         }
       }
     }
   }
 }
예제 #2
0
 /** {@inheritDoc} */
 public void setEndpoint(long ssrc, String endpointId) {
   SSRCDesc ssrcDesc = getSSRCDesc(ssrc);
   synchronized (ssrcDesc) {
     ssrcDesc.endpointId = endpointId;
   }
 }