[ CCode ( cname = "gst_ptp_init" ) ]
[ Version ( since = "1.6" ) ]
public bool ptp_init (uint64 clock_id, string[]? interfaces)
Initialize the GStreamer PTP subsystem and create a PTP ordinary clock in slave-only mode for all domains on the given interfaces
with the given clock_id
.
If clock_id
is gst_ptp_clock_id_none, a clock id is automatically generated from the MAC
address of the first network interface.
This function is automatically called by PtpClock with default parameters if it wasn't called before.
clock_id |
PTP clock id of this process' clock or gst_ptp_clock_id_none |
interfaces |
network interfaces to run the clock on |
true if the GStreamer PTP clock subsystem could be initialized. |