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.

Methods
GType _getGType() static nothrow
GType _gType() @property nothrow
NetClientClock self() nothrowReturns `this`, for use in `with` statements.
NetClientClockGidBuilder builder() static nothrowGet builder for [gstnet.net_client_clock.NetClientClock] Returns: New builder object
string address() @property nothrow
void address(string propval) @property nothrow
ulong baseTime() @property nothrow
gst.bus.Bus bus() @property nothrow
void bus(gst.bus.Bus propval) @property nothrow
gst.clock.Clock internalClock() @property nothrow
ulong minimumUpdateInterval() @property nothrow
void minimumUpdateInterval(ulong propval) @property nothrow
int port() @property nothrow
void port(int propval) @property nothrow
int qosDscp() @property nothrow
void qosDscp(int propval) @property nothrow
ulong roundTripLimit() @property nothrow
void roundTripLimit(ulong propval) @property nothrow
Constructors
this(void * ptr, Flag!"Take" take)
this(string name, string remoteAddress, int remotePort, gst.types.ClockTime baseTime)Create a new #GstNetClientClock that will report the time provided by the #GstNetTimeProvider on remote_address and remote_port.

Fluent builder implementation template for gstnet.net_client_clock.NetClientClock

Methods
T address(string propval) nothrow
T baseTime(ulong propval) nothrow
T bus(gst.bus.Bus propval) nothrow
T minimumUpdateInterval(ulong propval) nothrow
T port(int propval) nothrow
T qosDscp(int propval) nothrow
T roundTripLimit(ulong propval) nothrow
Methods
NetClientClock build() nothrowCreate object from builder. Returns: New object