public class RTPParticipant extends java.lang.Object implements Participant
Modifier and Type | Field and Description |
---|---|
protected long |
lastReportTime |
protected java.util.HashMap |
sourceDescriptions |
Constructor and Description |
---|
RTPParticipant(java.lang.String cName)
Creates a new RTPParticipant
|
Modifier and Type | Method and Description |
---|---|
void |
addReport(Report report)
Adds an RTCP Report for this participant
|
protected void |
addSourceDescription(SourceDescription sdes)
Adds a source description item to the participant
|
protected void |
addStream(RTPStream stream)
Adds a stream to the participant
|
java.lang.String |
getCNAME()
Returns this participant's RTP CNAME.
|
long |
getLastReportTime()
Returns this participant's last report time, which is the last time he's sent us a report.
|
java.util.Vector |
getReports()
Returns the reports associated with this participant.
|
int |
getSdesSize()
Returns the number of bytes of sdes that this participant requires.
|
java.util.Vector |
getSourceDescription()
Returns the sources descriptions (SDES) associated with this participant.
|
java.util.Vector |
getStreams()
Returns the streams associated with this participant.
|
boolean |
isActive()
Returns true if the participant is active
|
protected void |
removeStream(RTPStream stream)
Removes the specified stream from this participant's associated streams list.
|
protected void |
setActive(boolean active)
Sets the participant active or inactive
|
protected java.util.HashMap sourceDescriptions
protected long lastReportTime
public RTPParticipant(java.lang.String cName)
cName
- the RTP CNAME of this participant.public java.util.Vector getStreams()
getStreams
in interface Participant
public java.util.Vector getReports()
getReports
in interface Participant
public java.lang.String getCNAME()
getCNAME
in interface Participant
public java.util.Vector getSourceDescription()
getSourceDescription
in interface Participant
public boolean isActive()
protected void setActive(boolean active)
active
- Activity of the participant, true if activeprotected void addStream(RTPStream stream)
stream
- stream to associate with this participantprotected void removeStream(RTPStream stream)
stream
- the stream to eraseprotected void addSourceDescription(SourceDescription sdes)
sdes
- The SDES item to addpublic int getSdesSize()
public void addReport(Report report)
report
- The report to addpublic long getLastReportTime()