PtpClock.this

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 gstnet.global.ptpInit was not called before, this will call gstnet.global.ptpInit 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 gst.clock.Clock.waitForSync, the GstClock::synced signal and gst.clock.Clock.isSynced.

class PtpClock
this
(
string name
,
uint domain
)

Parameters

name string

Name of the clock

domain uint

PTP domain

Return Value

A new #GstClock