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

Constructor Summary
RTPReceiveStream(DataSource dataSource, long ssrc)
          Creates a new RTPReceiveStream
 
Method Summary
 DataSource getDataSource()
           
 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()
           
 SenderReport getSenderReport()
           
 ReceptionStats getSourceReceptionStats()
           
 long getSSRC()
           
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
 

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()
Specified by:
getSourceReceptionStats in interface ReceiveStream

getParticipant

public Participant getParticipant()
Specified by:
getParticipant in interface RTPStream

getSenderReport

public SenderReport getSenderReport()
Specified by:
getSenderReport in interface RTPStream

getSSRC

public long getSSRC()
Specified by:
getSSRC in interface RTPStream

getDataSource

public DataSource getDataSource()
Specified by:
getDataSource in interface RTPStream

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


getLastSRReportTimestampLSW

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


getLastSRReportTimestampMSW

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