Files
VoelinClient/crates/voelin-stream/src/lib.rs
T
selikhovandClaude Opus 5.5 e7af3bd685 Resolve mDNS host candidates
Browsers and other libwebrtc builds hide their host addresses behind
mDNS names (<uuid>.local) unless they have camera or microphone
permission; the official client may do the same. str0m takes only IP
addresses, so such candidates were dropped (in the SDP silently, trickled
with a debug line), and a LAN connection worked only if the hiding side
happened to start the checks.

Candidates with an mDNS name, in a remote offer or answer or trickled,
are now resolved in the background by a multicast DNS query
(voelin_stream::mdns) and added as plain candidates; ICE takes whichever
pair works. The query goes out from port 5353, shared with the system's
responder, because Chromium's responder ignores queries from other ports
(tried: none answered from an ephemeral port, every one from 5353); where
5353 cannot be shared it goes out from a port of our own.

browser_mdns_candidates_connect runs headless Chromium with the names on
and keeps our candidates from it, so it cannot start the checks: both as
streamer and as viewer the connection comes up and the media flows (with
resolution switched off for a control run it timed out).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 23:21:45 +03:00

42 lines
1.5 KiB
Rust

//! TeamSpeak 6 streams (screen sharing): the signalling commands the server
//! relays, the JSON signal messages, and str0m WebRTC peer connections.
//!
//! Only TeamSpeak 6 servers support streams. Media flows peer to peer; the
//! server only forwards `respondjoinstreamrequest` (the streamer's offer) and
//! `streamsignaling` (answer and ICE candidates).
//!
//! [`Streams`] (module [`session`]) ties it together for one connection: the
//! streams in our channel, our own stream with a peer per viewer, and the
//! streams we watch. [`FrameSource`] is where a streamer's encoded frames come from.
pub mod discovery;
pub mod dtls;
pub mod feedback;
pub mod h264;
pub mod layer;
pub mod mdns;
pub mod peer;
pub mod proto;
pub mod session;
pub mod signal;
pub mod source;
pub mod stun;
pub use discovery::{ClientState, StreamLookup};
pub use dtls::SrtpProfile;
pub use feedback::LayerFeedback;
pub use h264::H264Profile;
pub use layer::{LayerId, LayerSet, LayerSpec};
pub use peer::{
MediaFrame, OfferOptions, Peer, PeerConfig, PeerError, PeerEvent, VideoCodec, VideoFormat,
};
pub use proto::{LeaveReason, StreamInfo, StreamKind, StreamNotification, StreamSetup};
pub use session::{
EndReason, Output, Request, SessionError, StreamDirectory, StreamEvent, StreamerEvent,
StreamerOptions, Streams, ViewerInfo, ViewerState, WatchEvent, WatchState,
};
pub use signal::{Signal, SignalError};
pub use source::{EncodedFrame, FrameSource, SyntheticSource};
pub use str0m::format::Codec;
pub use str0m::media::{Frequency, MediaKind, MediaTime, Rid};