sew-call-client 0.9.6

Sew's native voice engine: LiveKit-protocol signalling and reconnect against Sew's media server, str0m transport with TURN over UDP, TCP and TLS (relay-only when asked), MLS call keys with the mandatory E2EE checks over the call credential and the call socket, the device store, and the kessel-audio bridge.
Documentation
//! Video. The engine core never names kessel-video: it moves encoded frames, and [`rtp`] turns
//! them into RTP payloads and back. With `testing` and `video-core`, `FixtureBackend` is a
//! kessel-video backend that replays pre-encoded streams.
//!
//! Receive (built with `video-core`; without it the engine negotiates no video at all): the
//! remote camera and screen tracks of the roster ([`VideoTrack`], `CallEvent::VideoAdded` and
//! friends), each disabled at the media server until the host opens a sink for it
//! ([`crate::Call::video_sink`]); then per track a reorder buffer, the depacketiser, decryption
//! with the publisher's key (LkGcm, no plaintext fallback) and the frames out through
//! [`crate::Call::video_frames`], with keyframe requests rate-limited per track.
//!
//! Publish (built with `video-core`, like receive): the engine takes encoded plaintext frames
//! per simulcast layer ([`publish`]) and does the lease, the signalling, the encryption, the
//! packets, keyframes, dynacast and the rate split ([`alloc`]). The `VideoBridge` (`bridge`)
//! drives any kessel-video frame source (a camera, a screen) and the encoders into it, and
//! hands the in-call self-view its layer.
//!
//! Capture (`video-core`): [`VideoCapture`] over the app's kessel-video backend opens cameras
//! ([`CameraSource`]) and screens ([`ScreenSource`]) for the publish side, lists the screens
//! with PNG thumbnails, runs the OS picker, and runs the pre-join [`Preview`]. One opener holds
//! the camera: the bridge's camera opens through the same `VideoCapture` and takes the camera
//! over from a running preview. Its camera taps ([`VideoCapture::camera_tap`]) hand the camera's
//! raw frames, before any encoder, to a native self-view.

pub(crate) mod alloc;
#[cfg(feature = "video-core")]
mod bridge;
#[cfg(feature = "video-core")]
mod camera_tap;
#[cfg(feature = "video-core")]
mod capture;
pub(crate) mod codec_pref;
// Its users: the RTP round trips (test + testing, in Sew's tree: `sew_fixtures`) and
// FixtureBackend (testing + video-core).
#[cfg(all(
    feature = "testing",
    any(all(test, sew_fixtures), feature = "video-core")
))]
mod container;
#[cfg(all(feature = "testing", feature = "video-core"))]
mod fixture;
pub(crate) mod keyframe;
#[cfg(feature = "video-core")]
mod preview;
pub(crate) mod publish;
pub(crate) mod reorder;
pub(crate) mod rtp;
pub(crate) mod size;
pub(crate) mod subscribe;
mod types;

#[cfg(feature = "video-core")]
#[allow(deprecated)]
pub use bridge::{
    CameraRequest, CameraState, CodecPlan, PlannedCodec, SelfViewFrames, SelfViewItem, SourceFeed,
    SourceNote, VideoBridge, choose_codec, choose_codecs,
};
#[cfg(all(
    feature = "video-core",
    not(sew_apple_preview),
    any(test, feature = "testing")
))]
#[doc(hidden)]
pub use camera_tap::FakePreview;
#[cfg(all(feature = "video-core", any(sew_preview_events, test)))]
pub use camera_tap::PreviewHandle;
#[cfg(feature = "video-core")]
pub use camera_tap::{CameraFeed, CameraFrame, CameraTap, CameraTapItem, CameraTapSender};
#[cfg(feature = "video-core")]
pub use capture::{
    CameraSource, Capture, CaptureEnd, CaptureError, CaptureEvent, CaptureKind, CapturePause,
    ScreenChoice, ScreenPick, ScreenSource, THUMBNAIL_MAX_WIDTH, VideoCapture, screen_constraints,
    thumbnail_png,
};
#[cfg(feature = "video-core")]
pub use codec_pref::h264_encode_detection;
pub use codec_pref::{
    CodecPreferenceReason, H264Detection, VideoCodecPreference, effective_publish_codec,
    effective_publish_codec_under_policy,
};
#[cfg(all(feature = "testing", feature = "video-core"))]
pub use fixture::{FixtureBackend, FixtureError, FixtureH264, FixtureOptions};
#[cfg(feature = "video-core")]
pub use preview::{
    LocalFrame, PREVIEW_BITRATE_BPS, PREVIEW_FPS, PREVIEW_HEIGHT, PREVIEW_QUEUE, PREVIEW_WIDTH,
    Preview, PreviewFrames, PreviewItem, preview_codec,
};
pub use publish::{
    BackupSpec, EncodedVideo, LayerRate, LayerSpec, LocalVideo, VideoCaps, VideoControl,
    VideoError, VideoPublication, VideoPublish, VideoSendStats, VideoSender, plan_layers,
    plan_screen_layers,
};
pub use subscribe::{VideoFrameStream, VideoSink};
pub use types::{
    VideoCodec, VideoFrame, VideoLayerInfo, VideoPause, VideoRecvItem, VideoSinkSpec, VideoSource,
    VideoTrack, VideoTrackView,
};