|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.fmj.media.rtp.RTPParticipant
public class RTPParticipant
Represents an RTP participant
Field Summary | |
---|---|
protected long |
lastReportTime
|
protected java.util.HashMap |
sourceDescriptions
|
Constructor Summary | |
---|---|
RTPParticipant(java.lang.String cName)
Creates a new RTPParticipant |
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.HashMap sourceDescriptions
protected long lastReportTime
Constructor Detail |
---|
public RTPParticipant(java.lang.String cName)
cName
- the RTP CNAME of this participant.Method Detail |
---|
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()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |