Skip to content

Struct VoiceOptions

zaun_client::VoiceOptions · Struct

pub struct VoiceOptions { … }

How a voice session connects.

By default media goes through the host’s TURN relay, and peers see only the relay’s address. The relay sees this device’s address and the encrypted frames. The relay is reached as the host lists it: turn: over UDP or TCP, or turns: over TLS 1.3 with the post-quantum X25519MLKEM768 key exchange (a relay without it is refused).

Also offer peers a direct path to this device’s own address, when the host allows it (ice_policy all or direct). The other participants then learn this device’s IP address, so ask the user first. Off by default: media is relayed, and a join to a host without a relay is refused.

The address the stay’s socket binds to; None takes the address that reaches the TURN server (or, without one, the default route). It is offered to peers only with allow_direct.

Join muted.

Join deafened.

Certificate authorities (DER) to trust for turns: relays besides the Mozilla roots, for a host whose relay has a certificate from a private authority.

Clone, Debug, Default

Full rustdoc page