pub struct SendBuilder { /* private fields */ }
Expand description

Builder struct for Send

Implementations

Create new builder instance

This is the name of the NDI source to create.

This will be the name of the NDI source on the network. For instance, if your network machine name is called “MyMachine” and you specify this parameter as “My Video”, the NDI source on the network would be “MyMachine (My Video)”.

Specify the groups that this NDI sender should place itself into.

Groups are sets of NDI sources. Any source can be part of any number of groups, and groups are comma-separated. For instance “cameras,studio 1,10am show” would place a source in the three groups named.

Specify whether video “clock” themself.

When it is clocked, video frames added will be rate-limited to match the current framerate they are submitted at. In general, if you are submitting video and audio off a single thread you should only clock one of them If you are submitting audio and video of separate threads then having both clocked can be useful. A simplified view of the how works is that, when you submit a frame, it will keep track of the time the next frame would be required at. If you submit a frame before this time, the call will wait until that time. This ensures that, if you sit in a tight loop and render frames as fast as you can go, they will be clocked at the framerate that you desire.

Note that combining clocked video and audio submission combined with asynchronous frame submission (see below) allows you to write very simple loops to render and submit NDI frames.

specify whether audio “clock” themself.

See above in clock_video

Build the Send instance

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.