ptpInit

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 gstnet.ptp_clock.PtpClock.new_ with default parameters if it wasn't called before.

bool
ptpInit
(
ulong clockId
,
string[] interfaces = null
)

Parameters

clockId ulong

PTP clock id of this process' clock or GST_PTP_CLOCK_ID_NONE

interfaces string[]

network interfaces to run the clock on

Return Value

Type: bool

true if the GStreamer PTP clock subsystem could be initialized.