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.NetClientClock
implements a customGst.Clock
that synchronizes its time to a remote time provider such asGstNet.NetTimeProvider
.GstNet.NtpClock
implements aGst.Clock
that 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.NetClientClock
andGstNet.NtpClock
is typically set on aGst.Pipeline
withGst.Pipeline.use_clock
().If you set a
Gst.Bus
on the clock via the “bus” object property, it will sendGst.MessageType.ELEMENT
messages with an attachedGst.Structure
containing statistics about clock accuracy and network traffic.- classmethod new(name, remote_address, remote_port, base_time)[source]¶
- Parameters:
- Returns:
a new
Gst.Clock
that receives a time from the remote clock.- Return type:
Create a new
GstNet.NetClientClock
that will report the time provided by theGstNet.NetTimeProvider
on 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)