gstrtp.global

Undocumented in source.

Members

Functions

bufferGetRtpSourceMeta
gstrtp.rtpsource_meta.RTPSourceMeta bufferGetRtpSourceMeta(gst.buffer.Buffer buffer)

Find the #GstRTPSourceMeta on buffer.

rtcpNtpToUnix
ulong rtcpNtpToUnix(ulong ntptime)

Converts an NTP time to UNIX nanoseconds. ntptime can typically be the NTP time of an SR RTCP message and contains, in the upper 32 bits, the number of seconds since 1900 and, in the lower 32 bits, the fractional seconds. The resulting value will be the number of nanoseconds since 1970.

rtcpSdesNameToType
gstrtp.types.RTCPSDESType rtcpSdesNameToType(string name)

Convert name into a GstRTCPSDESType. name is typically a key in a #GstStructure containing SDES items.

rtcpSdesTypeToName
string rtcpSdesTypeToName(gstrtp.types.RTCPSDESType type)

Converts type to the string equivalent. The string is typically used as a key in a #GstStructure containing SDES items.

rtcpUnixToNtp
ulong rtcpUnixToNtp(ulong unixtime)

Converts a UNIX timestamp in nanoseconds to an NTP time. The caller should pass a value with nanoseconds since 1970. The NTP time will, in the upper 32 bits, contain the number of seconds since 1900 and, in the lower 32 bits, the fractional seconds. The resulting value can be used as an ntptime for constructing SR RTCP packets.

rtpGetHeaderExtensionList
gst.element_factory.ElementFactory[] rtpGetHeaderExtensionList()

Retrieve all the factories of the currently registered RTP header extensions. Call gst.element_factory.ElementFactory.create with each factory to create the associated #GstRTPHeaderExtension.

rtpHdrextGetNtp56
bool rtpHdrextGetNtp56(ubyte[] data, ulong ntptime)

Reads the NTP time from the size NTP-56 extension bytes in data and store the result in ntptime.

rtpHdrextGetNtp64
bool rtpHdrextGetNtp64(ubyte[] data, ulong ntptime)

Reads the NTP time from the size NTP-64 extension bytes in data and store the result in ntptime.

rtpHdrextSetNtp56
bool rtpHdrextSetNtp56(void* data, uint size, ulong ntptime)

Writes the NTP time in ntptime to the format required for the NTP-56 header extension. data must hold at least #GST_RTP_HDREXT_NTP_56_SIZE bytes.

rtpHdrextSetNtp64
bool rtpHdrextSetNtp64(void* data, uint size, ulong ntptime)

Writes the NTP time in ntptime to the format required for the NTP-64 header extension. data must hold at least #GST_RTP_HDREXT_NTP_64_SIZE bytes.

rtpSourceMetaApiGetType
gobject.types.GType rtpSourceMetaApiGetType()