PtpClock
Added in version 1.6.
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 callptp_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 andis_synced()
.Added in version 1.6.
- Parameters:
name – Name of the clock
domain – PTP domain