scripts/package.sh turns release builds into the packages CI uploads and
the Docker builds produce: Linux .tar.gz and .deb (dependencies from
dpkg-shlibdeps), Windows .zip and NSIS installer, renamed Android APKs,
each with a SHA256SUMS file.
CI (ci.yml): package-linux, package-windows (installer now required),
package-flatpak (bundle from packaging/flatpak, cargo sources generated
in the job), package-gateway-image (docker save of tsgw) and the Android
job (debug APKs for arm64-v8a and x86_64, a signed release APK when the
signing secrets exist) each upload an artifact. A v* tag also attaches
everything to a draft GitHub release.
docker/{linux,windows,android}.Dockerfile with scripts/docker-build.sh
build the same packages locally into dist/<platform>/: Ubuntu 24.04,
a mingw-w64 cross build with a static libvpx pinned by commit, and the
Android SDK/NDK/cargo-ndk CI uses. Proxy settings and an optional CA
certificate are passed through. docker.yml runs them weekly and when
they change. docs/building.md describes both ways.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
Brings the Android app. tsc-ui keeps its RunOptions (secrets, hosted
engine) and safe-area padding; it asks tsc-core for media-desktop on
desktop and media on Android, OpenH264 only on desktop, hotkey backends
only on desktop. A window with a hosted engine leaves its sessions open
on exit.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
`media` uses whatever tsc-media backends are enabled (MediaCodec and a
registered capture source on Android); `media-desktop` adds tsc-media's
default backends (libvpx, OpenH264, X11, PipeWire). The default features
no longer include media, so crates that depend on tsc-core with defaults
do not pull libvpx into Android builds.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
docs/media.md describes tsc-core's media module and what was tested,
docs/audio.md the settings, level meter, client and stream volumes and
global push-to-talk, the protocol notes the confirmed finding that the
server does not announce running streams to clients that connect later.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
Taken under Xvfb against the TeamSpeak 6 dev server: the viewer shows a
tsctl test-pattern stream decoded by the app; in the live share dialog a
tsctl viewer watches the app's stream.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
- docs/testing/manual-matrix.md: the checks CI cannot run (streams with the
official TS6 client, global push-to-talk, echo cancellation over an hour,
hotplug, Android background voice and streams, installers) per platform,
with result, date and version columns.
- docs/release.md: versioning, changelog, notices, signing (Authenticode
with Azure Trusted Signing or a certificate, Flathub, Android keystore
outside the repository) and the release checklist.
- docs/i18n.md: @tr, slint-tr-extractor, .po files under
crates/tsc-ui/lang, bundled translations and language selection.
- SECURITY.md: reporting, what the client and the gateway store, what
stream peers see.
- CHANGELOG.md with an Unreleased section.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
crash::test_crash_if_requested() panics when TSC_TEST_CRASH is set, for
the manual test matrix. A test runs it in a child process and finds the
report afterwards, as the app would on its next start.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
`stream start` captures through tsc-core's Streamer: `--synthetic` (or
`--source synthetic`) is the moving test pattern with a tone, `--source
x11[:N]`, `screen[:N]`, `window:<id>` or `portal` capture the desktop,
`--bitrate` sets the encoder and setupstream. `stream watch` decodes the
video, counts decoded pictures for `--expect-frames` and can save the
last one with `--save-frame out.png`. Offers carry the codec we encode
and answers accept what we decode.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
- notices: scripts/notices.sh --check with the pinned cargo-about fails
when THIRD_PARTY_NOTICES.md does not match Cargo.lock.
- browser-interop: TSC_INTEROP=1 tsc-stream browser_interop test against
headless Chromium (Playwright 1.56.1); continue-on-error, since it
depends on a browser download.
- smoke: timeout, and the logs in dev/.state are uploaded on failure.
- audit.yml: cargo-deny advisories every day, not only on pushes.
- Release artifacts, the Flatpak and the NSIS installer include
THIRD_PARTY_NOTICES.md.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
Audio: sessions start their audio thread with the engine's AudioSettings
(SetAudioSettings, engine-wide), SetClientVolume / SetClientMuted reach
the mixer, clients that leave are forgotten, and the audio thread reports
the microphone level (InputLevel, also from TestMicrophone without a
session). Audio of watched streams plays through the mixer under a
made-up client id with its own volume (SetStreamVolume).
Media (feature `media`, default): Streamer captures a screen and system
audio, encodes VP8 (the offered codec) at the setup's bitrate and Opus,
honours keyframe requests and feeds a StreamSink or, as EncodedSource, a
FrameSource. VideoPipeline / Viewer decode watched streams on their own
thread, skip to keyframes after losses and ask for them. A test streams
the test pattern through two stream tasks and loopback peers and checks
the rectangle in the decoded pictures.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
crash::install(dir, enabled) sets a panic hook (once, chained to the
previous one) that writes a plain-text report per panic while enabled:
time, version, OS/distribution/session, thread, message, location and a
backtrace. The newest 10 are kept; nothing is uploaded. pending_reports()
and clear() let the UI offer to open the folder or delete the reports.
The default directory is <state dir>/crash-reports.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
about.toml mirrors deny.toml's allowed licenses and limits the graph to the
shipped targets (Linux, Windows, Android) without build and dev
dependencies. Clarifications pin the license files cargo-about misses or
mangles: Slint's LicenseRef text, the bundled libopus, AWS-LC's combined
notice and OpenH264's single license. about.hbs adds the Slint, OpenH264,
tsclientlib and libvpx notices by hand.
scripts/notices.sh regenerates THIRD_PARTY_NOTICES.md with a pinned
cargo-about (0.9.2) and fails on any warning; --check diffs against the
committed file. tsc_platform::notices::text() embeds it for the About page.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
The viewer's StreamsChanged often arrives before the streamer's Live state,
and wait_for dropped it while waiting for Live, so the test timed out in CI
(and 5 of 8 local runs). Wait for such pairs in one loop: live + listed,
watching + viewer connected, ended + gone from the list.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
tsctl connect <addr> stream [--loopback|--stun X|--no-stun]
start --synthetic [--name] [--auto-accept] [--seconds N] [--fps]
[--frame-size] [--no-audio]
Streams SyntheticSource frames through tsc-stream's sessions.
Without --auto-accept, join requests are answered on stdin
(accept/deny/kick <clid>, stop). frame_source() is the seam for
real capture and encoders.
list Streams announced in our channel, plus clients whose
client_is_streaming is set but whose stream id we were not told.
watch [--id] [--streamer-nick] [--expect-frames N] [--timeout S]
Joins the matching stream (or the first one); exits 0 once N video
frames arrived.
it-smoke.sh (TS6 only): a viewer waits for a uniquely named streamer,
which then streams 10 s of synthetic VP8 + Opus over loopback; also runs
the engine's stream_live test.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
- system-deps composite action shared by all jobs: apt packages for
audio, UI, libvpx/dav1d, PipeWire/SPA, libclang and Xvfb on Linux; NASM
(aws-lc-sys) and libvpx from vcpkg (x64-windows-static-md, binary cache
keyed on the vcpkg revision) on Windows, exporting VPX_LIB_DIR,
VPX_INCLUDE_DIR, VPX_VERSION and VPX_STATIC for libvpx-native-sys
- Linux tests run under xvfb-run with TSC_X11_TEST_DISPLAY set, so X11
capture and the XInput2 hotkey test run
- release-build job: cargo build --release -p tsc-ui on Linux and
Windows, uploads the binary (plus desktop files, or the NSIS installer
when NSIS is on the runner)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
Neutral placeholder app id io.github.faumaray.TsClient and name "TS Client".
The Flatpak builds offline from generated cargo sources on the 25.08
runtime with portal-based push-to-talk and screen capture, PulseAudio,
PipeWire, notifications and Secret Service access. The Windows README
covers the toolchain (MSVC, CMake, NASM, vcpkg libvpx) and signing.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
- tests/codec_roundtrip.rs: synthetic pattern -> VP8 / VP9 -> decode
(PSNR, rectangle and background colours, forced keyframes, bitrate
change) and capture thread -> encoder -> decoder
- tests/x11_capture.rs: draws windows on a real X server ($DISPLAY, e.g.
Xvfb), checks MIT-SHM and GetImage pixels, window listing, window
capture -> VP8 -> decode colours, and cursor drawing; skipped without
DISPLAY
- tests/openh264.rs: missing-library errors; with TSC_OPENH264_LIB a full
H.264 roundtrip incl. SPS profile checks (High 100, Baseline 66); an
ignored test downloads Cisco's binary and runs the roundtrip
- OpenH264: allow frame skipping so rate control holds the bitrate, no
adaptive quantisation / background detection for screen content
- docs/media.md: API, backends, features, build requirements, licenses
(OpenH264 runtime download and attribution), verification status
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
A stream task per voice connection runs tsc-stream's Streams: the voice
task forwards stream notifications and command failures to it and sends
its requests on the connection. It starts only when the server flavor has
the streams capability; stream commands elsewhere give an Error event.
Commands: StartStream{setup, auto_accept}, StopStream, AcceptViewer,
KickViewer, SendStreamFrame, WatchStream, LeaveStream,
RequestStreamKeyframe.
Events: StreamsChanged, StreamState (Starting / Live{id, sink} /
Ended), StreamViewerRequest, StreamViewers, StreamKeyframeRequest,
WatchState (Requested / Connecting / Connected / Ended).
Encoded frames of our stream go in through the StreamSink handed out
with StreamState::Live (or SendStreamFrame); received frames of watched
streams come on their own bus, Engine::subscribe_frames, to keep the
event bus light. VoiceOptions::stream_peer sets the peer network config.
Tests: two stream tasks through a fake relay server (unit), and a
TSC_LIVE test with two engine sessions streaming synthetic frames on the
TS6 dev server plus the error on TS3.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G