gstnet.net_client_clock
Module for [NetClientClock] class
Types 3
#GstNetClientClock implements a custom #GstClock that synchronizes its time to a remote time provider such as #GstNetTimeProvider. #GstNtpClock implements a #GstClock that synchronizes its time to a remote NTPv4 server.
A new clock is created with [gstnet.net_client_clock.NetClientClock.new_] or [gstnet.ntp_clock.NtpClock.new_], which takes the address and port of the remote time provider along with a name and an initial time.
This clock will poll the time provider and will update its calibration parameters based on the local and remote observations.
The "round-trip" property limits the maximum round trip packets can take.
Various parameters of the clock can be configured with the parent #GstClock "timeout", "window-size" and "window-threshold" object properties.
A #GstNetClientClock and #GstNtpClock is typically set on a #GstPipeline with [gst.pipeline.Pipeline.useClock].
If you set a #GstBus on the clock via the "bus" object property, it will send @GST_MESSAGE_ELEMENT messages with an attached #GstStructure containing statistics about clock accuracy and network traffic.
NetClientClock self()Returns `this`, for use in `with` statements.NetClientClockGidBuilder builder()Get builder for [gstnet.netclientclock.NetClientClock] Returns: New builder objectstring address() @propertyvoid address(string propval) @propertyulong baseTime() @propertygst.bus.Bus bus() @propertyvoid bus(gst.bus.Bus propval) @propertygst.clock.Clock internalClock() @propertyulong minimumUpdateInterval() @propertyvoid minimumUpdateInterval(ulong propval) @propertyint port() @propertyvoid port(int propval) @propertyint qosDscp() @propertyvoid qosDscp(int propval) @propertyulong roundTripLimit() @propertyvoid roundTripLimit(ulong propval) @propertythis(string name, string remoteAddress, int remotePort, gst.types.ClockTime baseTime)Create a new #GstNetClientClock that will report the time provided by the #GstNetTimeProvider on remoteaddress and remoteport.T address(string propval)T baseTime(ulong propval)T bus(gst.bus.Bus propval)T minimumUpdateInterval(ulong propval)T port(int propval)T qosDscp(int propval)T roundTripLimit(ulong propval)Fluent builder for [gstnet.net_client_clock.NetClientClock]