public class RTPReceiveStream extends java.lang.Object implements ReceiveStream
Modifier and Type | Field and Description |
---|---|
static long |
INACTIVITY_TIME |
Constructor and Description |
---|
RTPReceiveStream(DataSource dataSource,
long ssrc)
Creates a new RTPReceiveStream
|
Modifier and Type | Method and Description |
---|---|
boolean |
checkInactivity() |
DataSource |
getDataSource()
Returns this stream's datasource.
|
long |
getLastSRReportTime()
Returns the time at which the last SR report was received.
|
long |
getLastSRReportTimestampLSW()
Gets the timestamp of the last sr report.
|
long |
getLastSRReportTimestampMSW()
Gets the timestamp of the last sr report.
|
Participant |
getParticipant()
Returns the participant associated with this stream.
|
SenderReport |
getSenderReport()
Return the last RTCP Sender Report (SR) received.
|
ReceptionStats |
getSourceReceptionStats()
Returns the stream's reception stats.
|
long |
getSSRC()
Returns the SSRC associated with this stream.
|
protected void |
setParticipant(RTPRemoteParticipant participant)
Sets the participant
|
void |
setReport(Report lastReport)
Sets the last report received
|
public static final long INACTIVITY_TIME
public RTPReceiveStream(DataSource dataSource, long ssrc)
dataSource
- The datasource of the streamssrc
- The ssrc of the streampublic ReceptionStats getSourceReceptionStats()
getSourceReceptionStats
in interface ReceiveStream
public Participant getParticipant()
getParticipant
in interface RTPStream
public SenderReport getSenderReport()
getSenderReport
in interface RTPStream
public long getSSRC()
public DataSource getDataSource()
getDataSource
in interface RTPStream
protected void setParticipant(RTPRemoteParticipant participant)
participant
- The participant to setpublic void setReport(Report lastReport)
lastReport
- The reportpublic long getLastSRReportTime()
public long getLastSRReportTimestampLSW()
public long getLastSRReportTimestampMSW()
public boolean checkInactivity()