gstrtp.global

Global functions for gstrtp1 library

Functions 11

fnulong 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,...
fngstrtp.types.RTCPSDESType rtcpSdesNameToType(string name)Convert name into a GstRTCPSDESType. name is typically a key in a #GstStructure containing SDES items.
fnstring 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.
fnulong 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 190...
fngst.element_factory.ElementFactory[] rtpGetHeaderExtensionList()Retrieve all the factories of the currently registered RTP header extensions. Call [gst.elementfactory.ElementFactory.create] with each factory to create the associated #GstRTPHeaderExtension. Ret...
fnbool rtpHdrextGetNtp56(ubyte[] data, out ulong ntptime)Reads the NTP time from the size NTP-56 extension bytes in data and store the result in ntptime.
fnbool rtpHdrextGetNtp64(ubyte[] data, out ulong ntptime)Reads the NTP time from the size NTP-64 extension bytes in data and store the result in ntptime.
fnbool 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 #GSTRTPHDREXTNTP56_SIZE bytes.
fnbool 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 #GSTRTPHDREXTNTP64_SIZE bytes.