Class VideoRtpSender
Base class for classes that need to send encoded video frames using RTP.
Inherited Members
Namespace: SipLib.Video
Assembly: SipLib.dll
Syntax
public class VideoRtpSender
Constructors
| Edit this page View SourceVideoRtpSender(int, uint, RtpSendDelegate)
Constructor
Declaration
public VideoRtpSender(int payloadType, uint frameRate, RtpSendDelegate sender)
Parameters
Type | Name | Description |
---|---|---|
int | payloadType | The negotiated RTP packet payload type |
uint | frameRate | The frame rate in frames per second. |
RtpSendDelegate | sender | Delegate function to use to send RTP packets |
Fields
| Edit this page View SourceMAX_RTP_PAYLOAD
The maximum RTP packet payload size to send
Declaration
protected const int MAX_RTP_PAYLOAD = 1200
Field Value
Type | Description |
---|---|
int |
PayloadType
The RTP packet payload type field.
Declaration
protected int PayloadType
Field Value
Type | Description |
---|---|
int |
RtpSender
Function to call to send the RTP packet.
Declaration
protected RtpSendDelegate RtpSender
Field Value
Type | Description |
---|---|
RtpSendDelegate |
SSRC
The RTP packet SSRC field. This is randomly generated by this base class.
Declaration
protected uint SSRC
Field Value
Type | Description |
---|---|
uint |
SequenceNumber
The RTP packet sequence number
Declaration
protected ushort SequenceNumber
Field Value
Type | Description |
---|---|
ushort |
Timestamp
The RTP packet Timestamp field
Declaration
protected uint Timestamp
Field Value
Type | Description |
---|---|
uint |
TimestampIncrement
The amount to increment the Timestamp field when a full frame's worth of RTP packets have been sent.
Declaration
protected uint TimestampIncrement
Field Value
Type | Description |
---|---|
uint |
Methods
| Edit this page View SourceSendEncodedFrame(byte[])
Derived classes must override this method to send the encoded video frame in RTP packets. The packetization algorithm depends upon the video encoder type.
Declaration
public virtual void SendEncodedFrame(byte[] encodedFrame)
Parameters
Type | Name | Description |
---|---|---|
byte[] | encodedFrame | The encoded video frame to send. |
SendRtpPacket(byte[], bool)
Sends a single RTP packet
Declaration
protected void SendRtpPacket(byte[] payload, bool markerBit)
Parameters
Type | Name | Description |
---|---|---|
byte[] | payload | |
bool | markerBit |