GstNet.NetClientClock¶
| Subclasses: | GstNet.NtpClock | 
|---|
Methods¶
| Inherited: | Gst.SystemClock (2), Gst.Clock (32), Gst.Object (27), GObject.Object (37) | 
|---|---|
| Structs: | GObject.ObjectClass (5) | 
| class | new(name, remote_address, remote_port, base_time) | 
Virtual Methods¶
| Inherited: | Gst.Clock (6), Gst.Object (1), GObject.Object (7) | 
|---|
Properties¶
| Inherited: | Gst.SystemClock (1), Gst.Clock (3), Gst.Object (2) | 
|---|
| Name | Type | Flags | Short Description | 
|---|---|---|---|
| address | str | r/w/c | The IP address of the machine providing a time server | 
| base-time | int | r/w/co | Initial time that is reported before synchronization | 
| bus | Gst.Bus | r/w | A Gst.Buson which to send clock status information | 
| internal-clock | Gst.Clock | r | Internal clock that directly slaved to the remote clock | 
| minimum-update-interval | int | r/w | Minimum polling interval for packets, in nanoseconds(0 = no limit) | 
| port | int | r/w/c | The port on which the remote server is listening | 
| qos-dscp | int | r/w | Quality of Service, differentiated services code point (-1 default) | 
| round-trip-limit | int | r/w | Maximum tolerable round-trip interval for packets, in nanoseconds (0 = no limit) | 
Signals¶
| Inherited: | Gst.Clock (1), Gst.Object (1), GObject.Object (1) | 
|---|
Fields¶
| Inherited: | Gst.Clock (1), Gst.Object (1), GObject.Object (1) | 
|---|
| Name | Type | Access | Description | 
|---|---|---|---|
| clock | Gst.SystemClock | r | 
Class Details¶
- 
class GstNet.NetClientClock(**kwargs)¶
- Bases: - Gst.SystemClock- Abstract: - No - Structure: - GstNet.NetClientClockClass- GstNet.NetClientClockimplements a custom- Gst.Clockthat synchronizes its time to a remote time provider such as- GstNet.NetTimeProvider.- GstNet.NtpClockimplements a- Gst.Clockthat synchronizes its time to a remote NTPv4 server.- A new clock is created with - GstNet.NetClientClock.new() or- GstNet.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.NetClientClockand- GstNet.NtpClockis typically set on a- Gst.Pipelinewith- Gst.Pipeline.use_clock().- If you set a - Gst.Buson the clock via the “bus” object property, it will send- Gst.MessageType.ELEMENTmessages with an attached- Gst.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 the- GstNet.NetTimeProvideron remote_address and remote_port.
 
- 
classmethod 
Property Details¶
- 
GstNet.NetClientClock.props.address¶
- Name: - address- Type: - str- Default Value: - '127.0.0.1'- Flags: - READABLE,- WRITABLE,- CONSTRUCT- The IP address of the machine providing a time server 
- 
GstNet.NetClientClock.props.base_time¶
- Name: - base-time- Type: - int- Default Value: - 0- Flags: - READABLE,- WRITABLE,- CONSTRUCT_ONLY- Initial time that is reported before synchronization 
- 
GstNet.NetClientClock.props.bus¶
- Name: - bus- Type: - Gst.Bus- Default Value: - None- Flags: - READABLE,- WRITABLE- A - Gst.Buson which to send clock status information
- 
GstNet.NetClientClock.props.internal_clock¶
- Name: - internal-clock- Type: - Gst.Clock- Default Value: - None- Flags: - READABLE- Internal clock that directly slaved to the remote clock 
- 
GstNet.NetClientClock.props.minimum_update_interval¶
- Name: - minimum-update-interval- Type: - int- Default Value: - 50000000- Flags: - READABLE,- WRITABLE- Minimum polling interval for packets, in nanoseconds(0 = no limit) 
- 
GstNet.NetClientClock.props.port¶
- Name: - port- Type: - int- Default Value: - 5637- Flags: - READABLE,- WRITABLE,- CONSTRUCT- The port on which the remote server is listening