:right-sidebar: True PtpClock =================================================================== .. currentmodule:: gi.repository.GstNet .. versionadded:: 1.6 .. class:: PtpClock(**properties: ~typing.Any) :no-contents-entry: Superclasses: :class:`~gi.repository.Gst.SystemClock`, :class:`~gi.repository.Gst.Clock`, :class:`~gi.repository.Gst.Object`, :class:`~gi.repository.GObject.InitiallyUnowned`, :class:`~gi.repository.GObject.Object` :Constructors: :: PtpClock(**properties) new(name:str, domain:int) -> Gst.Clock Constructors ------------ .. rst-class:: interim-class .. class:: PtpClock :no-index: .. classmethod:: new(name: str, domain: int) -> ~gi.repository.Gst.Clock 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 :func:`~gi.repository.GstNet.ptp_init` was not called before, this will call :func:`~gi.repository.GstNet.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 :func:`~gi.repository.Gst.Gst.Clock.wait_for_sync`, the GstClock::synced signal and :func:`~gi.repository.Gst.Gst.Clock.is_synced`. .. versionadded:: 1.6 :param name: Name of the clock :param domain: PTP domain Properties ---------- .. rst-class:: interim-class .. class:: PtpClock :no-index: .. attribute:: props.domain :type: int .. attribute:: props.grandmaster_clock_id :type: int .. attribute:: props.internal_clock :type: ~gi.repository.Gst.Clock .. attribute:: props.master_clock_id :type: int Fields ------ .. rst-class:: interim-class .. class:: PtpClock :no-index: .. attribute:: clock .. attribute:: priv