GstNet.NetTimeProvider

g GObject.GInterface GObject.GInterface Gio.Initable Gio.Initable GObject.GInterface->Gio.Initable GObject.InitiallyUnowned GObject.InitiallyUnowned Gst.Object Gst.Object GObject.InitiallyUnowned->Gst.Object GObject.Object GObject.Object GObject.Object->GObject.InitiallyUnowned GstNet.NetTimeProvider GstNet.NetTimeProvider Gio.Initable->GstNet.NetTimeProvider Gst.Object->GstNet.NetTimeProvider

Subclasses:

None

Methods

Inherited:

Gst.Object (27), GObject.Object (37), Gio.Initable (2)

Structs:

GObject.ObjectClass (5)

class

new (clock, address, port)

Virtual Methods

Inherited:

Gst.Object (1), GObject.Object (7), Gio.Initable (1)

Properties

Inherited:

Gst.Object (2)

Name

Type

Flags

Short Description

active

bool

r/w

True if the clock will respond to queries over the network

address

str

r/w/co

The address to bind on, as a dotted quad (x.x.x.x)

clock

Gst.Clock

r/w/co

The clock to export over the network

port

int

r/w/co

The port to receive the packets from, 0=allocate

qos-dscp

int

r/w

Quality of Service, differentiated services code point (-1 default)

Signals

Inherited:

Gst.Object (1), GObject.Object (1)

Fields

Inherited:

Gst.Object (1), GObject.Object (1)

Name

Type

Access

Description

parent

Gst.Object

r

Class Details

class GstNet.NetTimeProvider(**kwargs)
Bases:

Gst.Object, Gio.Initable

Abstract:

No

Structure:

GstNet.NetTimeProviderClass

This object exposes the time of a Gst.Clock on the network.

A GstNet.NetTimeProvider is created with GstNet.NetTimeProvider.new() which takes a Gst.Clock, an address and a port number as arguments.

After creating the object, a client clock such as GstNet.NetClientClock can query the exposed clock over the network for its values.

The GstNet.NetTimeProvider typically wraps the clock used by a Gst.Pipeline.

classmethod new(clock, address, port)[source]
Parameters:
  • clock (Gst.Clock) – a Gst.Clock to export over the network

  • address (str or None) – an address to bind on as a dotted quad (xxx.xxx.xxx.xxx), IPv6 address, or None to bind to all addresses

  • port (int) – a port to bind on, or 0 to let the kernel choose

Returns:

the new GstNet.NetTimeProvider, or None on error

Return type:

GstNet.NetTimeProvider or None

Allows network clients to get the current time of clock.

Property Details

GstNet.NetTimeProvider.props.active
Name:

active

Type:

bool

Default Value:

True

Flags:

READABLE, WRITABLE

True if the clock will respond to queries over the network

GstNet.NetTimeProvider.props.address
Name:

address

Type:

str

Default Value:

'0.0.0.0'

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

The address to bind on, as a dotted quad (x.x.x.x)

GstNet.NetTimeProvider.props.clock
Name:

clock

Type:

Gst.Clock

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

The clock to export over the network

GstNet.NetTimeProvider.props.port
Name:

port

Type:

int

Default Value:

5637

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

The port to receive the packets from, 0=allocate

GstNet.NetTimeProvider.props.qos_dscp
Name:

qos-dscp

Type:

int

Default Value:

-1

Flags:

READABLE, WRITABLE

Quality of Service, differentiated services code point (-1 default)