:right-sidebar: True NetTimeProvider =================================================================== .. currentmodule:: gi.repository.GstNet .. class:: NetTimeProvider(**properties: ~typing.Any) :no-contents-entry: Superclasses: :class:`~gi.repository.Gst.Object`, :class:`~gi.repository.GObject.InitiallyUnowned`, :class:`~gi.repository.GObject.Object` Implemented Interfaces: :class:`~gi.repository.Gio.Initable` This object exposes the time of a :obj:`~gi.repository.Gst.Clock` on the network. A :obj:`~gi.repository.GstNet.NetTimeProvider` is created with :func:`~gi.repository.GstNet.NetTimeProvider.new` which takes a :obj:`~gi.repository.Gst.Clock`\, an address and a port number as arguments. After creating the object, a client clock such as :obj:`~gi.repository.GstNet.NetClientClock` can query the exposed clock over the network for its values. The :obj:`~gi.repository.GstNet.NetTimeProvider` typically wraps the clock used by a :obj:`~gi.repository.Gst.Pipeline`\. Constructors ------------ .. rst-class:: interim-class .. class:: NetTimeProvider :no-index: .. classmethod:: new(clock: ~gi.repository.Gst.Clock, address: str | None, port: int) -> ~gi.repository.GstNet.NetTimeProvider | None Allows network clients to get the current time of ``clock``\. :param clock: a :obj:`~gi.repository.Gst.Clock` to export over the network :param address: an address to bind on as a dotted quad (xxx.xxx.xxx.xxx), IPv6 address, or NULL to bind to all addresses :param port: a port to bind on, or 0 to let the kernel choose Properties ---------- .. rst-class:: interim-class .. class:: NetTimeProvider :no-index: .. attribute:: props.active :type: bool The type of the None singleton. .. attribute:: props.address :type: str The type of the None singleton. .. attribute:: props.clock :type: ~gi.repository.Gst.Clock The type of the None singleton. .. attribute:: props.port :type: int The type of the None singleton. .. attribute:: props.qos_dscp :type: int The type of the None singleton. Fields ------ .. rst-class:: interim-class .. class:: NetTimeProvider :no-index: .. attribute:: parent .. attribute:: priv