PtpClock

Added in version 1.6.

class PtpClock(**properties: Any)

Superclasses: SystemClock, Clock, Object, InitiallyUnowned, Object

Constructors:

PtpClock(**properties)
new(name:str, domain:int) -> Gst.Clock

Constructors

class PtpClock
classmethod new(name: str, domain: int) Clock

Creates a new PTP clock instance that exports the PTP time of the master clock in domain. This clock can be slaved to other clocks as needed.

If ptp_init() was not called before, this will call ptp_init() with default parameters.

This clock only returns valid timestamps after it received the first times from the PTP master clock on the network. Once this happens the GstPtpClock::internal-clock property will become non-NULL. You can check this with wait_for_sync(), the GstClock::synced signal and is_synced().

Added in version 1.6.

Parameters:
  • name – Name of the clock

  • domain – PTP domain

Properties

class PtpClock
props.domain: int
props.grandmaster_clock_id: int
props.internal_clock: Clock
props.master_clock_id: int

Fields

class PtpClock
clock
priv