Going live to a broadcast service is the one output that is not a file, and WHIP is the standard that makes it one HTTP request: post the offer, apply the answer, delete the location to stop. str0m already drives WebRTC here, so the session is a thread of its own fed through a bounded channel -- a slow or dead upload drops its own packets instead of stalling an encoder. The session offers only the codec the studio already encodes plus Opus, so the service can never negotiate its way into a second encode. Candidates are one host candidate on the interface that routes to the service, found by connecting a throwaway socket: enough for a service with a public address and for a server on this machine, not enough behind a NAT the service cannot reach back through. STUN and TURN are not here yet. tests/studio_whip.rs is a WHIP server built on str0m in the test: the offer is posted, ICE and DTLS come up, real VP8 and Opus packets arrive, a refusal is reported with the service's own words, and stopping deletes the resource. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
55 lines
2.0 KiB
TOML
55 lines
2.0 KiB
TOML
[package]
|
|
name = "voelin-core"
|
|
version = "0.1.0"
|
|
description = "Client engine: server sessions merging voice, gateway and query sources; the API the UI drives."
|
|
edition.workspace = true
|
|
rust-version.workspace = true
|
|
license.workspace = true
|
|
repository.workspace = true
|
|
publish.workspace = true
|
|
|
|
[features]
|
|
default = ["audio-device"]
|
|
# Capture and play audio through the system's devices.
|
|
audio-device = ["voelin-audio/device"]
|
|
# The `media` module: capture and video codecs for streams, with whatever
|
|
# voelin-media backends are enabled (e.g. MediaCodec and a registered capture
|
|
# source on Android).
|
|
media = ["dep:voelin-media"]
|
|
# `media` with voelin-media's desktop backends: libvpx, OpenH264 loaded at
|
|
# runtime, X11 and PipeWire on Linux. Not for Android (libvpx does not
|
|
# cross-compile there).
|
|
media-desktop = ["media", "voelin-media/default"]
|
|
|
|
[dependencies]
|
|
anyhow = "1"
|
|
base64 = "0.22"
|
|
futures = "0.3"
|
|
md5 = "0.8"
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_json = "1"
|
|
thiserror = "2"
|
|
tokio = { version = "1", features = ["fs", "io-util", "macros", "net", "rt-multi-thread", "sync", "time"] }
|
|
tokio-tungstenite = "0.30"
|
|
toml = "1.1.6"
|
|
tracing = "0.1"
|
|
voelin-audio = { path = "../voelin-audio", default-features = false }
|
|
voelin-gateway-proto = { path = "../voelin-gateway-proto", features = ["client"] }
|
|
voelin-media = { path = "../voelin-media", default-features = false, features = ["str0m", "whip"], optional = true }
|
|
voelin-model = { path = "../voelin-model" }
|
|
voelin-observer = { path = "../voelin-observer" }
|
|
# Paths only (the cache directory).
|
|
voelin-platform = { path = "../voelin-platform", default-features = false }
|
|
voelin-query = { path = "../voelin-query" }
|
|
voelin-store = { path = "../voelin-store" }
|
|
voelin-stream = { path = "../voelin-stream" }
|
|
tsclientlib = { path = "../proto/tsclientlib" }
|
|
tsproto-packets = { path = "../proto/tsproto-packets" }
|
|
tsproto-types = { path = "../proto/tsproto-types" }
|
|
|
|
[dev-dependencies]
|
|
tokio = { version = "1", features = ["macros", "net", "rt-multi-thread", "test-util"] }
|
|
|
|
[lints]
|
|
workspace = true
|