ptpInit
fn
bool ptpInit(ulong clockId, string[] interfaces = null)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 [gstnet.types.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 [gstnet.ptp_clock.PtpClock.new_] with default parameters if it wasn't called before.
Parameters
clockId | PTP clock id of this process' clock or [gstnet.types.PTP_CLOCK_ID_NONE] |
interfaces | network interfaces to run the clock on |
Returns
true if the GStreamer PTP clock subsystem could be initialized.