GstNetClientClock
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 gst_net_client_clock_new or gst_ntp_clock_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_use_clock.
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.
GstNetClientClock
GObject ╰──GInitiallyUnowned ╰──GstObject ╰──GstClock ╰──GstSystemClock ╰──GstNetClientClock ╰──GstNtpClock
Opaque GstNetClientClock structure.
Members
clock
(GstSystemClock)
–
Class structure
GstNet.NetClientClockClass
Attributes
parent_class
(Gst.SystemClockClass)
–
GstNet.NetClientClockClass
Attributes
parent_class
(Gst.SystemClockClass)
–
GstNet.NetClientClock
GObject.Object ╰──GObject.InitiallyUnowned ╰──Gst.Object ╰──Gst.Clock ╰──Gst.SystemClock ╰──GstNet.NetClientClock ╰──GstNet.NtpClock
Opaque GstNet.NetClientClock structure.
Members
clock
(Gst.SystemClock)
–
GstNet.NetClientClock
GObject.Object ╰──GObject.InitiallyUnowned ╰──Gst.Object ╰──Gst.Clock ╰──Gst.SystemClock ╰──GstNet.NetClientClock ╰──GstNet.NtpClock
Opaque GstNet.NetClientClock structure.
Members
clock
(Gst.SystemClock)
–
Constructors
gst_net_client_clock_new
GstClock * gst_net_client_clock_new (const gchar * name, const gchar * remote_address, gint remote_port, GstClockTime base_time)
Create a new GstNetClientClock that will report the time provided by the GstNetTimeProvider on remote_address and remote_port.
Parameters:
name
(
[nullable])
–
a name for the clock
remote_address
–
the address or hostname of the remote clock provider
remote_port
–
the port of the remote clock provider
base_time
–
initial time of the clock
a new GstClock that receives a time from the remote clock.
GstNet.NetClientClock.prototype.new
function GstNet.NetClientClock.prototype.new(name: String, remote_address: String, remote_port: Number, base_time: Number): {
// javascript wrapper for 'gst_net_client_clock_new'
}
Create a new GstNet.NetClientClock that will report the time provided by the GstNet.NetTimeProvider on remote_address and remote_port.
Parameters:
a name for the clock
the address or hostname of the remote clock provider
the port of the remote clock provider
initial time of the clock
GstNet.NetClientClock.new
def GstNet.NetClientClock.new (name, remote_address, remote_port, base_time):
#python wrapper for 'gst_net_client_clock_new'
Create a new GstNet.NetClientClock that will report the time provided by the GstNet.NetTimeProvider on remote_address and remote_port.
Parameters:
a name for the clock
the address or hostname of the remote clock provider
the port of the remote clock provider
initial time of the clock
Properties
GstNtpClock
GObject ╰──GInitiallyUnowned ╰──GstObject ╰──GstClock ╰──GstSystemClock ╰──GstNetClientClock ╰──GstNtpClock
Members
clock
(GstSystemClock)
–
Class structure
GstNet.NtpClock
GObject.Object ╰──GObject.InitiallyUnowned ╰──Gst.Object ╰──Gst.Clock ╰──Gst.SystemClock ╰──GstNet.NetClientClock ╰──GstNet.NtpClock
Members
clock
(Gst.SystemClock)
–
GstNet.NtpClock
GObject.Object ╰──GObject.InitiallyUnowned ╰──Gst.Object ╰──Gst.Clock ╰──Gst.SystemClock ╰──GstNet.NetClientClock ╰──GstNet.NtpClock
Members
clock
(Gst.SystemClock)
–
Constructors
gst_ntp_clock_new
GstClock * gst_ntp_clock_new (const gchar * name, const gchar * remote_address, gint remote_port, GstClockTime base_time)
Create a new GstNtpClock that will report the time provided by the NTPv4 server on remote_address and remote_port.
Parameters:
name
(
[nullable])
–
a name for the clock
remote_address
–
the address or hostname of the remote clock provider
remote_port
–
the port of the remote clock provider
base_time
–
initial time of the clock
a new GstClock that receives a time from the remote clock.
Since : 1.6
GstNet.NtpClock.prototype.new
function GstNet.NtpClock.prototype.new(name: String, remote_address: String, remote_port: Number, base_time: Number): {
// javascript wrapper for 'gst_ntp_clock_new'
}
Create a new GstNet.NtpClock that will report the time provided by the NTPv4 server on remote_address and remote_port.
Parameters:
a name for the clock
the address or hostname of the remote clock provider
the port of the remote clock provider
initial time of the clock
Since : 1.6
GstNet.NtpClock.new
def GstNet.NtpClock.new (name, remote_address, remote_port, base_time):
#python wrapper for 'gst_ntp_clock_new'
Create a new GstNet.NtpClock that will report the time provided by the NTPv4 server on remote_address and remote_port.
Parameters:
a name for the clock
the address or hostname of the remote clock provider
the port of the remote clock provider
initial time of the clock
Since : 1.6
Constants
GST_TYPE_NET_CLIENT_CLOCK
#define GST_TYPE_NET_CLIENT_CLOCK \ (gst_net_client_clock_get_type())
GST_TYPE_NTP_CLOCK
#define GST_TYPE_NTP_CLOCK \ (gst_ntp_clock_get_type())
The results of the search are