|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.fmj.media.rtp.RTPSendStream
public class RTPSendStream
Represnts an RTP sending stream
| Constructor Summary | |
|---|---|
RTPSendStream(long ssrc,
DataSource dataSource,
OutputDataStream rtpDataStream,
int index,
RTPLocalParticipant participant,
int format,
double clockRate,
RTPSessionMgr rtpMgr)
Creates a new RTPSendStream |
|
| Method Summary | |
|---|---|
void |
addSourceDescription(SourceDescription sdes)
Adds a source description to this send stream |
void |
close()
Closes this RTP stream. |
double |
getClockRate()
Returns the clockRate used for sampling. |
DataSource |
getDataSource()
Returns the source sending data to this stream. |
long |
getInitialSendTime()
Returns the last time a packet was sent. |
long |
getInitialTimestamp()
Returns the initial timestamp base. |
long |
getLastSendTime()
Returns the last time a packet was sent. |
long |
getLastTimestamp()
Returns the last timestamp of a packet sent. |
Participant |
getParticipant()
Returns the participant associated with this RTP stream. |
int |
getSdesSize()
Returns the number of bytes of sdes that this participant requires |
SenderReport |
getSenderReport()
Returns the last RTCP SR. |
java.util.Vector |
getSourceDescription()
Returns the source description for this source |
TransmissionStats |
getSourceTransmissionStats()
Returns the datasource transmission stats. |
long |
getSSRC()
Returns the SSRC used in this stream. |
int |
setBitRate(int bitRate)
Set the birate of this stream's samples. |
void |
setSourceDescription(SourceDescription[] sourceDesc)
Add an RTP Source Description (SDES) refering to this stream. |
void |
start()
Starts this RTP stream. |
void |
stop()
Stops this RTP stream. |
void |
transferData(PushBufferStream stream)
Method used to transfer data to the RTP stream. |
void |
transferData(PushSourceStream stream)
Method used to transfer data to the RTP stream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RTPSendStream(long ssrc,
DataSource dataSource,
OutputDataStream rtpDataStream,
int index,
RTPLocalParticipant participant,
int format,
double clockRate,
RTPSessionMgr rtpMgr)
index - the index of the stream in the datasource's stream tableparticipant - the participant at the other end of this streamformat - the format used in this streamclockRate - the encoding clockratertpMgr - the RTP session managerssrc - The ssrc of the streamdataSource - The datasource of the streamrtpDataStream - The rtp output| Method Detail |
|---|
public void addSourceDescription(SourceDescription sdes)
sdes - The description to addpublic void setSourceDescription(SourceDescription[] sourceDesc)
setSourceDescription in interface SendStreamsourceDesc - an RTP Source Description (SDES) refering to this streampublic void close()
close in interface SendStream
public void stop()
throws java.io.IOException
stop in interface SendStreamjava.io.IOException - I/O Exception
public void start()
throws java.io.IOException
start in interface SendStreamjava.io.IOException - I/O Exceptionpublic int setBitRate(int bitRate)
setBitRate in interface SendStreambitRate - the bitrate used
public TransmissionStats getSourceTransmissionStats()
getSourceTransmissionStats in interface SendStreampublic Participant getParticipant()
getParticipant in interface RTPStreampublic SenderReport getSenderReport()
getSenderReport in interface RTPStreampublic long getSSRC()
getSSRC in interface RTPStreampublic DataSource getDataSource()
getDataSource in interface RTPStreampublic void transferData(PushSourceStream stream)
transferData in interface SourceTransferHandlerstream - stream used to read data frompublic void transferData(PushBufferStream stream)
transferData in interface BufferTransferHandlerstream - stream to read data frompublic java.util.Vector getSourceDescription()
public int getSdesSize()
public long getLastSendTime()
public long getInitialSendTime()
public long getLastTimestamp()
public long getInitialTimestamp()
public double getClockRate()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||