Commit Graph
76 Commits
Author SHA1 Message Date
Claude fa9e626c5b flatpak: libclang from the llvm20 SDK extension
The package-flatpak job failed in bindgen (the PipeWire bindings):
the Freedesktop SDK has no libclang. Add the llvm20 extension and point
LIBCLANG_PATH at it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
2026-09-26 20:07:14 +00:00
Claude 0648172336 Packages from every CI platform, Docker builds for local packaging
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
2026-09-26 19:56:57 +00:00
Claude d5244b43ce it-smoke: run the engine's media pipeline test through TS6
media_live needs tsc-core's media-desktop feature, which a lone
`cargo test -p tsc-core` doesn't enable.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
2026-09-26 16:06:49 +00:00
Claude c1eab12633 Merge wip/stream-ui: media pipeline, streams UI, audio settings, push-to-talk
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
2026-09-26 15:51:03 +00:00
Claude 0ce0917459 Merge claude/gifted-lovelace-1crlx2 into wip/stream-ui
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
2026-09-26 15:40:43 +00:00
Claude d36d6102e9 tsc-core: media feature without backends, media-desktop with them
`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
2026-09-26 15:36:51 +00:00
Claude 113bbbdfc4 Merge wip/android: Android app (tsc-android, Gradle project, MediaCodec, CI job)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
2026-09-26 15:28:21 +00:00
Claude 99eae558b8 docs: media pipeline, audio settings and volumes, stream status
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
2026-09-26 15:26:30 +00:00
Claude 0618656c6c docs: screenshots of the stream viewer, share dialog and audio settings
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
2026-09-26 15:25:10 +00:00
Claude d3e20c2780 wip: signing properties in the release docs 2026-09-26 15:24:31 +00:00
Claude f360274483 wip: tsc-ui client volume dialog sized to content, TSC_OPEN=client
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
2026-09-26 15:23:41 +00:00
Claude 1eff869d39 wip: Mute action in the voice notification, shared capture clock 2026-09-26 15:20:20 +00:00
Claude 2b680cf166 wip: tsc-ui builds without the media feature
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
2026-09-26 15:15:28 +00:00
Claude 14d0d81fdf wip: rustfmt, clippy fixes for the Android target 2026-09-26 15:14:04 +00:00
Claude 3e285e8dfc wip: rustfmt
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
2026-09-26 15:13:19 +00:00
Claude 855509d258 wip: tsc-ui TSC_AUTOSHARE development switch
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
2026-09-26 15:09:37 +00:00
Claude 70c6e7a923 wip: tsc-ui settings tabs and About via TSC_OPEN
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
2026-09-26 15:04:05 +00:00
Claude 545002a96e wip: notices for the Skia build in the Android app 2026-09-26 15:00:33 +00:00
Claude c365e2abf3 wip: tsc-ui streams panel, viewer, share dialog, settings, hotkeys
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
2026-09-26 14:54:26 +00:00
Claude 1b95e8b504 wip: Android Gradle project, crash reports, docs, CI job, notices 2026-09-26 14:54:21 +00:00
Claude 47b7e02e81 Merge branch 'claude/gifted-lovelace-1crlx2' into wip/android 2026-09-26 10:31:17 +00:00
Claude 80f8a4dc50 wip: tsc-android engine host, JNI bridge, MediaProjection capture, MediaCodec 2026-09-26 10:31:17 +00:00
Claude 7a571086be Merge claude/gifted-lovelace-1crlx2 into wip/stream-ui
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
2026-09-26 10:30:40 +00:00
Claude 604acfa1ff Merge wip/hardening: notices, crash reports, CI hardening, release docs
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
2026-09-26 10:25:48 +00:00
Claude 1816a6b479 tsc-platform: crash report test independent of path separators
Panic locations use backslashes on Windows, and backtrace symbols need
the PDB files there, so those checks are relaxed or Linux only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
2026-09-26 10:23:37 +00:00
Claude 71b52fab0f Merge branch 'claude/gifted-lovelace-1crlx2' into wip/hardening
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
2026-09-26 10:22:07 +00:00
Claude 2c3726b061 Docs: manual test matrix, release process, security, translations
- 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
2026-09-26 10:21:58 +00:00
Claude 57d6888b46 tsc-platform: TSC_TEST_CRASH to check crash reports in release builds
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
2026-09-26 10:21:58 +00:00
Claude 4add67d89b tsctl: stream real VP8 from capture, decode watched streams
`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
2026-09-26 10:19:47 +00:00
Claude fe7b79940b tsc-core: live test of the media pipeline through a TS6 server
The test pattern goes through Streamer, the engine and the server to a
Viewer, which must decode 60 pictures with the rectangle in place.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
2026-09-26 10:15:46 +00:00
Claude 087bb8e866 CI: notices check, browser interop job, daily advisories; ship notices
- 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
2026-09-26 10:15:39 +00:00
Claude 273df9afd2 Merge claude/gifted-lovelace-1crlx2 into wip/stream-ui
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
2026-09-26 10:14:45 +00:00
Claude af5b202347 tsc-core: audio settings, client and stream volumes, media pipeline
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
2026-09-26 10:14:40 +00:00
Claude 68012eafc2 tsc-platform: opt-in local crash reports
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
2026-09-26 10:12:32 +00:00
Claude ad1155fc90 Third-party notices: cargo-about config, generator, embedded text
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
2026-09-26 10:12:32 +00:00
Claude 99e26152a5 Merge branch 'claude/gifted-lovelace-1crlx2' into wip/android 2026-09-26 10:05:43 +00:00
Claude 0b939118c2 wip: tsc-android crate skeleton 2026-09-26 10:05:43 +00:00
Claude 089e111acc tsc-core: wait for racing stream events together in the live test
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
2026-09-26 10:04:31 +00:00
Claude 0c83716fa1 Merge wip/audio-platform: audio processing, tsc-platform, packaging, CI
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G

# Conflicts:
#	Cargo.lock
2026-09-26 05:17:40 +00:00
Claude ce808a5347 tsc-ui: ignore stream events until the streams panel exists
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
2026-09-26 05:13:30 +00:00
Claude f189370b39 Merge wip/stream-sessions: stream sessions, engine streams, tsctl stream, browser interop
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
2026-09-26 05:09:50 +00:00
Claude 8e1dbc0289 docs: stream sessions, Chromium interop findings, open stream questions
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
2026-09-26 05:08:09 +00:00
Claude 462034df38 tsctl: stream start/list/watch; smoke test streams on TS6
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
2026-09-26 05:07:36 +00:00
Claude fb7f56b55b ci: media dependencies, Windows toolchain, release builds, X11 tests
- 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
2026-09-26 05:07:28 +00:00
Claude a51b295f7d packaging: Flatpak manifest, desktop file, metainfo, NSIS installer
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
2026-09-26 05:07:28 +00:00
Claude 1740d61804 tsc-platform: run the notification test on Linux only
On Windows it would show a real toast from the CI runner.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
2026-09-26 05:07:28 +00:00
Claude 9a485e324f tsc-ui: library target with RunOptions for the mobile apps
The app moves behind `tsc_ui::run(RunOptions)`; tsc-desktop is a thin
binary around it. Mobile apps pass their storage directory as data_dir.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
2026-09-26 05:07:13 +00:00
Claude 294624bdde Merge wip/media: tsc-media frames, codecs and capture
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
2026-09-26 05:03:31 +00:00
Claude e3269e3cc7 M8 (part 2): tsc-media integration tests and docs
- 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
2026-09-26 05:02:38 +00:00
Claude 43879fec40 tsc-core: streams on TeamSpeak 6 sessions
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
2026-09-26 05:02:00 +00:00