net.sf.fmj.media.rtp
Class RTPReceiveStream

java.lang.Object
  extended by net.sf.fmj.media.rtp.RTPReceiveStream
All Implemented Interfaces:
ReceiveStream, RTPStream

public class RTPReceiveStream
extends java.lang.Object
implements ReceiveStream

Represents a stream received over RTP

Version:
1-1-alpha3
Author:
Andrew G D Rowley, Christian Vincenot

Field Summary
static long INACTIVITY_TIME
           
 
Constructor Summary
RTPReceiveStream(DataSource dataSource, long ssrc)
          Creates a new RTPReceiveStream
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INACTIVITY_TIME

public static final long INACTIVITY_TIME
See Also:
Constant Field Values
Constructor Detail

RTPReceiveStream

public RTPReceiveStream(DataSource dataSource,
                        long ssrc)
Creates a new RTPReceiveStream

Parameters:
dataSource - The datasource of the stream
ssrc - The ssrc of the stream
Method Detail

getSourceReceptionStats

public ReceptionStats getSourceReceptionStats()
Returns the stream's reception stats.

Specified by:
getSourceReceptionStats in interface ReceiveStream
Returns:
the stream's reception stats

getParticipant

public Participant getParticipant()
Returns the participant associated with this stream.

Specified by:
getParticipant in interface RTPStream
Returns:
the participant associated with this stream

getSenderReport

public SenderReport getSenderReport()
Return the last RTCP Sender Report (SR) received.

Specified by:
getSenderReport in interface RTPStream
Returns:
the last RTCP Sender Report (SR) received

getSSRC

public long getSSRC()
Returns the SSRC associated with this stream.

Specified by:
getSSRC in interface RTPStream
Returns:
the SSRC associated with this stream

getDataSource

public DataSource getDataSource()
Returns this stream's datasource.

Specified by:
getDataSource in interface RTPStream
Returns:
this stream's datasource

setParticipant

protected void setParticipant(RTPRemoteParticipant participant)
Sets the participant

Parameters:
participant - The participant to set

setReport

public void setReport(Report lastReport)
Sets the last report received

Parameters:
lastReport - The report

getLastSRReportTime

public long getLastSRReportTime()
Returns the time at which the last SR report was received.

Returns:
the time at which the last SR report was received

getLastSRReportTimestampLSW

public long getLastSRReportTimestampLSW()
Gets the timestamp of the last sr report.

Returns:
the timestamp of the last sr report

getLastSRReportTimestampMSW

public long getLastSRReportTimestampMSW()
Gets the timestamp of the last sr report.

Returns:
the timestamp of the last sr report

checkInactivity

public boolean checkInactivity()