ptpInitFull
fn
bool ptpInitFull(gst.structure.Structure config)Initialize the GStreamer PTP subsystem and create a PTP ordinary clock in slave-only mode according to the config.
config is a #GstStructure with the following optional fields:
- #guint64
clock-id: The clock ID to use for the local clock. If the
clock-id is not provided or [gstnet.types.PTP_CLOCK_ID_NONE] is provided, a clock id is automatically generated from the MAC address of the first network interface.
- #GStrv
interfaces: The interface names to listen on for PTP packets. If
none are provided then all compatible interfaces will be used.
- #guint
ttl: The TTL to use for multicast packets sent out by GStreamer.
This defaults to 1, i.e. packets will not leave the local network.
This function is automatically called by [gstnet.ptp_clock.PtpClock.new_] with default parameters if it wasn't called before.
Parameters
config | Configuration for initializing the GStreamer PTP subsystem |
Returns
true if the GStreamer PTP clock subsystem could be initialized.