|
|
This class implements an RTCP sender based on TimedThread.
|
Default constructor. You have to initialize RTPSender by calling init(...) later!
|
Constructor for new RTCPSender. The new sender's thread has to be started by calling start()!
Parameters:
ssrc | SSRC. |
senderSocket | Socket to write data to. |
receiver | RTPReceiver for reports to send. |
bandwidth | RTCP Bandwidth (see RFC 1889). |
~ |
Destructor.
void |
Initialize new RTCPSender. The new sender's thread has to be started by calling start()!
Parameters:
ssrc | SSRC. |
senderSocket | Socket to write data to. |
receiver | RTPReceiver for reports to send. |
bandwidth | RTCP Bandwidth (see RFC 1889). |
integer |
Send RTCP APP message.
Parameters:
name | RTCP APP name. |
data | RTCP APP data. |
dataLength | RTCP APP data length. |
Returns: Bytes sent.
integer |
Send RTCP BYE message.
Returns: Bytes sent.
integer |
Send RTCP receiver report from the SourceStateInfo given in the constructor.
Returns: Bytes sent.
integer |
Send RTCP SDES message from the list given by addSDESItem().
Returns: Bytes sent.
bool |
Add SDES item to SDES item list. If a SDES item with the same type already exists in the list, the new item replaces the old item.
Parameters:
type | SDES item type. |
data | SDES item data. |
length | SDES item data length. |
Returns: true, if item has been added; false, if not.
void |
Remove SDES item from SDES item list.
Parameters:
type | SDES item type to be removed. |
See also: addSDESItem, sendSDES