The official client could not show a Voelin stream: its decoder was libwebrtc's NullVideoDecoder. Its log says why. On a machine with a hardware H.264 encoder our offer put H.264 first, with every H.264 variant str0m knows; the client answered H.264 42e01f, then had no decoder for it, because it decodes H.264 only with an OpenH264 library it downloads at start-up, and that download failed (HTTP 403). Its SDP capabilities list H.264 either way. VP8, VP9 and AV1 it always decodes: FFmpeg's decoders, dav1d and libaom are built into it. - The hardware encoder order, the automatic stream codec (`preferred_codec`) and the offer (`offer_codecs`) now put the codecs every client decodes (`decoded_everywhere`: AV1, VP9, VP8) before H.264, HEVC last. A viewer answers with the first codec of the offer it lists, so official clients take one they can decode; H.264 stays offered for peers that want it, and `stream.codec` can still choose it (its description now says what that means for official clients). - A streamer offers H.264 only as it encodes it (Constrained High, packetization mode 1), not str0m's other variants, which let a viewer answer a profile, or packetization mode 0, we never send. Viewers still accept every variant. Tests: `crates/voelin-core/tests/browser_codecs.rs` (VOELIN_INTEROP=1) streams the test pattern through every encoder this machine has, VA-API also from DMA-BUFs, to headless Chromium's libwebrtc: VA-API H.264 and AV1, libvpx VP8 and VP9, x264, SVT-AV1 and libaom all decode at 1280x720. A second test makes the offer a share makes here ([AV1, VP8, H264, H265]) and checks the browser picks and decodes a codec every client decodes. The browser driver now takes playwright-core with a system Chromium (VOELIN_CHROMIUM), which decodes H.264, and the interop tests accept Chromium 152's name for the SRTP cipher. The official client itself could not be run here (its beta needs a myTeamSpeak sign-in on first start). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
59 lines
2.2 KiB
TOML
59 lines
2.2 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"
|
|
dirs = "6"
|
|
futures = "0.3"
|
|
md5 = "0.8"
|
|
# Reading the official clients' settings.db when importing identities.
|
|
rusqlite = { version = "0.40.2", features = ["bundled"] }
|
|
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]
|
|
# `process`: the browser interop test drives Chromium through Node.js.
|
|
tokio = { version = "1", features = ["macros", "net", "process", "rt-multi-thread", "test-util"] }
|
|
|
|
[lints]
|
|
workspace = true
|