GstNet.NetClientClock¶
- Subclasses:
Methods¶
- Inherited:
Gst.SystemClock (2), Gst.Clock (32), Gst.Object (27), GObject.Object (37)
- Structs:
class |
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
r/w/c |
The IP address of the machine providing a time server |
||
r/w/co |
Initial time that is reported before synchronization |
||
r/w |
A |
||
r |
Internal clock that directly slaved to the remote clock |
||
r/w |
Minimum polling interval for packets, in nanoseconds(0 = no limit) |
||
r/w/c |
The port on which the remote server is listening |
||
r/w |
Quality of Service, differentiated services code point (-1 default) |
||
r/w |
Maximum tolerable round-trip interval for packets, in nanoseconds (0 = no limit) |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
|---|---|---|---|
clock |
r |
Class Details¶
- class GstNet.NetClientClock(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
GstNet.NetClientClockimplements a customGst.Clockthat synchronizes its time to a remote time provider such asGstNet.NetTimeProvider.GstNet.NtpClockimplements aGst.Clockthat synchronizes its time to a remote NTPv4 server.A new clock is created with
GstNet.NetClientClock.new() orGstNet.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
Gst.Clock“timeout”, “window-size” and “window-threshold” object properties.A
GstNet.NetClientClockandGstNet.NtpClockis typically set on aGst.PipelinewithGst.Pipeline.use_clock().If you set a
Gst.Buson the clock via the “bus” object property, it will sendGst.MessageType.ELEMENTmessages with an attachedGst.Structurecontaining statistics about clock accuracy and network traffic.- classmethod new(name, remote_address, remote_port, base_time)[source]¶
- Parameters:
- Returns:
a new
Gst.Clockthat receives a time from the remote clock.- Return type:
Create a new
GstNet.NetClientClockthat will report the time provided by theGstNet.NetTimeProvideron remote_address and remote_port.
Property Details¶
- GstNet.NetClientClock.props.address¶
-
The IP address of the machine providing a time server
- GstNet.NetClientClock.props.base_time¶
- Name:
base-time- Type:
- Default Value:
0- Flags:
Initial time that is reported before synchronization
- GstNet.NetClientClock.props.internal_clock¶
-
Internal clock that directly slaved to the remote clock
- GstNet.NetClientClock.props.minimum_update_interval¶
-
Minimum polling interval for packets, in nanoseconds(0 = no limit)
- GstNet.NetClientClock.props.port¶
-
The port on which the remote server is listening
- GstNet.NetClientClock.props.qos_dscp¶
-
Quality of Service, differentiated services code point (-1 default)