jlibrtp
Class Participant

java.lang.Object
  extended by jlibrtp.Participant

public class Participant
extends java.lang.Object

A participant represents a peer in an RTPSession. Based on the information stored on these objects, packets are processed and statistics generated for RTCP.


Constructor Summary
Participant(java.lang.String networkAddress, int rtpPort, int rtcpPort)
          Create a basic participant.
 
Method Summary
 void debugPrint()
          Only for debugging purposes
 java.lang.String getCNAME()
          CNAME registered for this participant.
 java.lang.String getEmail()
          EMAIL registered for this participant.
 java.lang.String getLocation()
          LOCATION registered for this participant.
 java.lang.String getNAME()
          NAME registered for this participant.
 java.lang.String getNote()
          NOTE registered for this participant.
 java.lang.String getPhone()
          PHONE registered for this participant.
 java.lang.String getPriv()
          PRIVATE something registered for this participant.
 long getSSRC()
          SSRC for participant, determined through RTCP SDES
 java.lang.String getTool()
          TOOL something registered for this participant.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Participant

public Participant(java.lang.String networkAddress,
                   int rtpPort,
                   int rtcpPort)
Create a basic participant. If this is a unicast session you must provide network address (ipv4 or ipv6) and ports for RTP and RTCP, as well as a cname for this contact. These things should be negotiated through SIP or a similar protocol. jlibrtp will listen for RTCP packets to obtain a matching SSRC for this participant, based on cname.

Parameters:
networkAddress - string representation of network address (ipv4 or ipv6). Use "127.0.0.1" for multicast session.
rtpPort - port on which peer expects RTP packets. Use 0 if this is a sender-only, or this is a multicast session.
rtcpPort - port on which peer expects RTCP packets. Use 0 if this is a sender-only, or this is a multicast session.
Method Detail

getCNAME

public java.lang.String getCNAME()
CNAME registered for this participant.

Returns:
the cname

getNAME

public java.lang.String getNAME()
NAME registered for this participant.

Returns:
the name

getEmail

public java.lang.String getEmail()
EMAIL registered for this participant.

Returns:
the email address

getPhone

public java.lang.String getPhone()
PHONE registered for this participant.

Returns:
the phone number

getLocation

public java.lang.String getLocation()
LOCATION registered for this participant.

Returns:
the location

getNote

public java.lang.String getNote()
NOTE registered for this participant.

Returns:
the note

getPriv

public java.lang.String getPriv()
PRIVATE something registered for this participant.

Returns:
the private-string

getTool

public java.lang.String getTool()
TOOL something registered for this participant.

Returns:
the tool

getSSRC

public long getSSRC()
SSRC for participant, determined through RTCP SDES

Returns:
SSRC (32 bit unsigned integer as long)

debugPrint

public void debugPrint()
Only for debugging purposes