NetClientClock

#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.

Constructors

this
this(void* ptr, Flag!"Take" take)
this
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.

Members

Functions

self
NetClientClock self()

Returns this, for use in with statements.

Properties

address
string address [@property getter]
address
string address [@property setter]
bus
gst.bus.Bus bus [@property getter]
bus
gst.bus.Bus bus [@property setter]
gType
GType gType [@property getter]
internalClock
gst.clock.Clock internalClock [@property getter]
minimumUpdateInterval
ulong minimumUpdateInterval [@property getter]
minimumUpdateInterval
ulong minimumUpdateInterval [@property setter]
port
int port [@property getter]
port
int port [@property setter]
qosDscp
int qosDscp [@property getter]
qosDscp
int qosDscp [@property setter]
roundTripLimit
ulong roundTripLimit [@property getter]
roundTripLimit
ulong roundTripLimit [@property setter]

Static functions

getGType
GType getGType()

Inherited Members

From SystemClock

getGType
GType getGType()
gType
GType gType [@property getter]
self
SystemClock self()

Returns this, for use in with statements.

clockType
gst.types.ClockType clockType [@property getter]
clockType
gst.types.ClockType clockType [@property setter]
obtain
gst.clock.Clock obtain()

Get a handle to the default system clock. The refcount of the clock will be increased so you need to unref the clock after usage.

setDefault
void setDefault(gst.clock.Clock newClock)

Sets the default system clock that can be obtained with gst.system_clock.SystemClock.obtain.