Struct gstreamer_net::NetClientClock[]

pub struct NetClientClock(_, _);

NetClientClock implements a custom gst::Clock that synchronizes its time to a remote time provider such as NetTimeProvider. NtpClock implements a gst::Clock that synchronizes its time to a remote NTPv4 server.

A new clock is created with NetClientClock::new or NtpClock::new, which takes the address and port of the remote time provider along with a name and an initial time.

This clock will poll the time provider and will update its calibration parameters based on the local and remote observations.

The "round-trip" property limits the maximum round trip packets can take.

Various parameters of the clock can be configured with the parent gst::Clock "timeout", "window-size" and "window-threshold" object properties.

A NetClientClock and NtpClock is typically set on a gst::Pipeline with gst::Pipeline::use_clock.

If you set a gst::Bus on the clock via the "bus" object property, it will send gst::MessageType::Element messages with an attached gst::Structure containing statistics about clock accuracy and network traffic.

Implements

gst::ClockExt, gst::ObjectExt, glib::object::ObjectExt

Methods

impl NetClientClock
[src]

impl NetClientClock
[src]

Create a new GstNetClientInternalClock that will report the time provided by the NetTimeProvider on remote_address and remote_port.

name

a name for the clock

remote_address

the address or hostname of the remote clock provider

remote_port

the port of the remote clock provider

base_time

initial time of the clock

Returns

a new gst::Clock that receives a time from the remote clock.

Trait Implementations

impl Clone for NetClientClock

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Hash for NetClientClock

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl Ord for NetClientClock

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

impl StaticType for NetClientClock

Returns the type identifier of Self.

impl<T: IsA<Object>> PartialEq<T> for NetClientClock

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for NetClientClock

impl<T: IsA<Object>> PartialOrd<T> for NetClientClock

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Debug for NetClientClock

Formats the value using the given formatter. Read more

impl IsA<Clock> for NetClientClock

impl IsA<Object> for NetClientClock

impl IsA<Object> for NetClientClock

impl Send for NetClientClock
[src]

impl Sync for NetClientClock
[src]

impl IsA<NetClientClock> for NtpClock