PtpClock
Description:
[ CCode ( has_construct_function = false , type = "GstClock*" ) ]
public PtpClock (string name, uint domain)
public PtpClock (string name, uint domain)
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:
GstPtpClock:synced
signal and is_synced.
Parameters:
name |
Name of the clock |
domain |
PTP domain |
Returns:
A new Clock |