gstrtp.rtpbase_payload

Module for [RTPBasePayload] class

Types 3

Provides a base class for RTP payloaders

Methods
GType _gType() @property
RTPBasePayload self()Returns `this`, for use in `with` statements.
RTPBasePayloadGidBuilder builder()Get builder for [gstrtp.rtpbase_payload.RTPBasePayload] Returns: New builder object
bool autoHeaderExtension() @propertyGet `autoHeaderExtension` property. Returns: If enabled, the payloader will automatically try to enable all the RTP header extensions provided in the src caps, saving the application the need to ha...
void autoHeaderExtension(bool propval) @propertySet `autoHeaderExtension` property. Params: propval = If enabled, the payloader will automatically try to enable all the RTP header extensions provided in the src caps, saving the application the n...
long maxPtime() @property
void maxPtime(long propval) @property
long minPtime() @propertyGet `minPtime` property. Returns: Minimum duration of the packet data in ns (can't go above MTU)
void minPtime(long propval) @propertySet `minPtime` property. Params: propval = Minimum duration of the packet data in ns (can't go above MTU)
uint mtu() @property
void mtu(uint propval) @property
bool onvifNoRateControl() @propertyGet `onvifNoRateControl` property. Returns: Make the payloader timestamp packets according to the Rate-Control=no behaviour specified in the ONVIF replay spec.
void onvifNoRateControl(bool propval) @propertySet `onvifNoRateControl` property. Params: propval = Make the payloader timestamp packets according to the Rate-Control=no behaviour specified in the ONVIF replay spec.
bool perfectRtptime() @propertyGet `perfectRtptime` property. Returns: Try to use the offset fields to generate perfect RTP timestamps. When this option is disabled, RTP timestamps are generated from GSTBUFFERPTS of each payload...
void perfectRtptime(bool propval) @propertySet `perfectRtptime` property. Params: propval = Try to use the offset fields to generate perfect RTP timestamps. When this option is disabled, RTP timestamps are generated from GSTBUFFERPTS of eac...
uint pt() @property
void pt(uint propval) @property
long ptimeMultiple() @propertyGet `ptimeMultiple` property. Returns: Force buffers to be multiples of this duration in ns (0 disables)
void ptimeMultiple(long propval) @propertySet `ptimeMultiple` property. Params: propval = Force buffers to be multiples of this duration in ns (0 disables)
bool scaleRtptime() @propertyGet `scaleRtptime` property. Returns: Make the RTP packets' timestamps be scaled with the segment's rate (corresponding to RTSP speed parameter). Disabling this property means the timestamps will n...
void scaleRtptime(bool propval) @propertySet `scaleRtptime` property. Params: propval = Make the RTP packets' timestamps be scaled with the segment's rate (corresponding to RTSP speed parameter). Disabling this property means the timestam...
uint seqnum() @property
int seqnumOffset() @property
void seqnumOffset(int propval) @property
bool sourceInfo() @propertyGet `sourceInfo` property. Returns: Enable writing the CSRC field in allocated RTP header based on RTP source information found in the input buffer's #GstRTPSourceMeta.
void sourceInfo(bool propval) @propertySet `sourceInfo` property. Params: propval = Enable writing the CSRC field in allocated RTP header based on RTP source information found in the input buffer's #GstRTPSourceMeta.
uint ssrc() @property
void ssrc(uint propval) @property
gst.structure.Structure stats() @propertyGet `stats` property. Returns: Various payloader statistics retrieved atomically (and are therefore synchroized with each other), these can be used e.g. to generate an RTP-Info header. This propert...
uint timestamp() @property
uint timestampOffset() @property
void timestampOffset(uint propval) @property
gst.buffer.Buffer allocateOutputBuffer(uint payloadLen, ubyte padLen, ubyte csrcCount)Allocate a new #GstBuffer with enough data to hold an RTP packet with minimum csrccount CSRCs, a payload length of payloadlen and padding of pad_len. If payload has #GstRTPBasePayload:source-info t...
uint getSourceCount(gst.buffer.Buffer buffer)Count the total number of RTP sources found in the meta of buffer, which will be automically added by [gstrtp.rtpbase_payload.RTPBasePayload.allocateOutputBuffer]. If #GstRTPBasePayload:source-info...
bool isFilled(uint size, gst.types.ClockTime duration)Check if the packet with size and duration would exceed the configured maximum size.
bool isSourceInfoEnabled()Queries whether the payloader will add contributing sources (CSRCs) to the RTP header from #GstRTPSourceMeta. Returns: true if source-info is enabled.
gst.types.FlowReturn push(gst.buffer.Buffer buffer)Push buffer to the peer element of the payloader. The SSRC, payload type, seqnum and timestamp of the RTP buffer will be updated first.
gst.types.FlowReturn pushList(gst.buffer_list.BufferList list)Push list to the peer element of the payloader. The SSRC, payload type, seqnum and timestamp of the RTP buffer will be updated first.
void setOptions(string media, bool dynamic, string encodingName, uint clockRate)Set the rtp options of the payloader. These options will be set in the caps of the payloader. Subclasses must call this method before calling [gstrtp.rtpbasepayload.RTPBasePayload.push] or [gstrtp....
bool setOutcapsStructure(gst.structure.Structure s = null)Configure the output caps with the optional fields.
void setSourceInfoEnabled(bool enable)Enable or disable adding contributing sources to RTP packets from #GstRTPSourceMeta.
gulong connectAddExtension(T)(T callback, Flag!"After" after = No.After) if (isCallable!T && is(ReturnType!T == void) && (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] : gstrtp.rtpheader_extension.RTPHeaderExtension))) && (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] : gstrtp.rtpbase_payload.RTPBasePayload))) && Parameters!T.length < 3)Connect to `AddExtension` signal.
gulong connectClearExtensions(T)(T callback, Flag!"After" after = No.After) if (isCallable!T && is(ReturnType!T == void) && (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] : gstrtp.rtpbase_payload.RTPBasePayload))) && Parameters!T.length < 2)Connect to `ClearExtensions` signal.
gulong connectRequestExtension(T)(T callback, Flag!"After" after = No.After) if (isCallable!T && is(ReturnType!T : gstrtp.rtpheader_extension.RTPHeaderExtension) && (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] == uint))) && (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] == string))) && (Parameters!T.length < 3 || (ParameterStorageClassTuple!T[2] == ParameterStorageClass.none && is(Parameters!T[2] : gstrtp.rtpbase_payload.RTPBasePayload))) && Parameters!T.length < 4)Connect to `RequestExtension` signal.
Constructors
this(void * ptr, Flag!"Take" take)
Methods
T autoHeaderExtension(bool propval)Set `autoHeaderExtension` property. Params: propval = If enabled, the payloader will automatically try to enable all the RTP header extensions provided in the src caps, saving the application the n...
T maxPtime(long propval)
T minPtime(long propval)Set `minPtime` property. Params: propval = Minimum duration of the packet data in ns (can't go above MTU) Returns: Builder instance for fluent chaining
T mtu(uint propval)
T onvifNoRateControl(bool propval)Set `onvifNoRateControl` property. Params: propval = Make the payloader timestamp packets according to the Rate-Control=no behaviour specified in the ONVIF replay spec. Returns: Builder instance fo...
T perfectRtptime(bool propval)Set `perfectRtptime` property. Params: propval = Try to use the offset fields to generate perfect RTP timestamps. When this option is disabled, RTP timestamps are generated from GSTBUFFERPTS of eac...
T pt(uint propval)
T ptimeMultiple(long propval)Set `ptimeMultiple` property. Params: propval = Force buffers to be multiples of this duration in ns (0 disables) Returns: Builder instance for fluent chaining
T scaleRtptime(bool propval)Set `scaleRtptime` property. Params: propval = Make the RTP packets' timestamps be scaled with the segment's rate (corresponding to RTSP speed parameter). Disabling this property means the timestam...
T seqnumOffset(int propval)
T sourceInfo(bool propval)Set `sourceInfo` property. Params: propval = Enable writing the CSRC field in allocated RTP header based on RTP source information found in the input buffer's #GstRTPSourceMeta. Returns: Builder in...
T ssrc(uint propval)
T timestampOffset(uint propval)

Fluent builder for [gstrtp.rtpbase_payload.RTPBasePayload]