Commit Graph
91 Commits
Author SHA1 Message Date
Claude 5812fdcbb9 tsgw: in-process tests against a fake ServerQuery server; fix relay race
The hub, observer, relays and sessions now run in tests against a fake
raw ServerQuery server, driven over a real WebSocket by the typed
client: chat with pins, reactions and topics (including the prefix in
TeamSpeak and topic posts from official clients), old clients still
getting chat_event, unknown message types answered without a
disconnect, events with RSVP and reminders, the stream directory
following presence and linking stream events, the activity feed, and
admin settings, permission rules, quotas and rate limits applied live.
An ignored test runs the same flows against a real server and tsgw.

The relay pump subscribed to a rebuilt pool 100 ms after the old one
closed, so channel chat in that gap was lost after a nickname change.
Each pool now gets its own pump, subscribed before it opens a relay.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
2026-09-27 13:56:05 +00:00
Claude 0028981714 tsgw: runtime settings, versioned database, pins, reactions, topics, events, streams, activity
Settings: every key is in one registry with type, default and
description. Values resolve as database (set at runtime) > --set >
TSGW_<KEY> environment > tsgw.toml > default; query login, addresses
and the database path are bootstrap-only. Changes are published on a
watch channel and applied live (relay nickname rebuilds the relay pool,
pinned channels open, retention re-prunes, capabilities are pushed).
SIGHUP or a changed file reloads it; values set at runtime keep
winning and differing keys are logged. ConfigReset falls back.

Database: user_version migrations keep existing data. Messages get
AUTOINCREMENT ids (never reused after pruning), topic ids and
revisions for sync; new tables for reactions, pins, topics, events,
RSVPs, reminder bookkeeping, the stream directory, activity and
settings. WAL with synchronous=NORMAL, cached statements, batched
inserts, an index for every query path (checked with EXPLAIN QUERY
PLAN on 12k messages). Retention 0 keeps forever; pinned messages
are kept.

No built-in caps: history pages are unlimited unless an admin sets
quota.history_page; pins, topics, events, reactions and streams have
quotas that default to none.

Permission rules per action (by server and channel groups) live in the
settings, with TeamSpeak-permission defaults. The stream directory
follows presence (left, stopped streaming, moved) and lists streams
without a registration as detected.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
2026-09-27 13:44:49 +00:00
Claude 08071e7f43 Gateway protocol: pins, reactions, topics, events, streams, activity, admin
The new Voelin UI needs Discord-like features that TeamSpeak does not
have. They run on tsgw, so the protocol grows, additively within v1:

- capabilities in hello (server-wide) and auth_ok (per user, with admin)
- query_history with before/after id and time cursors, optional limit,
  topic filter; sync by revision for new and changed messages
- post (optionally into a topic), pins, reactions with per-user counts,
  topics, scheduled events with RSVP and reminders, the stream directory,
  the activity feed, runtime configuration and permission rules
- history entries carry topic, reactions, pinned flag and revision;
  old clients ignore the extra fields

Old clients never see a new message type: extension pushes need enable
or a subscribe request. New error codes and enums have an unknown
fallback so older clients keep parsing newer gateways.

The optional client feature adds a typed client (request/answer by
envelope id, typed pushes), shared by the app engine and the gateway's
integration tests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
2026-09-27 13:33:11 +00:00
Claude f0f1269812 voelinctl: number layers before the source is built
Layer ids given by position were assigned after the placeholder source was
created, so its frames carried id 65535 and no viewer got video. Found
streaming placeholder layers through the TeamSpeak 6 dev server.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
2026-09-27 08:34:46 +00:00
Claude 7b376b4050 Browser interop checks the SRTP cipher; docs on SRTP, BWE and simulcast
The interop test now reads the transport's getStats() and requires
srtpCipher AES_CM_128_HMAC_SHA1_80 in both directions, and bandwidth
estimates from Chromium's transport-cc feedback. The docs describe the SRTP
profile order, the bandwidth estimation and the simulcast layers of our
stream, and the findings with Chromium 141.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
2026-09-27 03:58:29 +00:00
Claude ede9c3941c Streams: SRTP profile order, bandwidth estimation, simulcast layers
Official TeamSpeak 6 clients use AES_CM_128_HMAC_SHA1_80, while our peers
negotiated AES-256-GCM. PeerConfig::srtp_profiles now sets the order (default
AES_CM_128_HMAC_SHA1_80, then the GCM profiles for peers without it); a
DTLS provider wrapping str0m's dimpl DTLS applies it and records the
negotiated profile. It can be changed at runtime (Streams::set_srtp_profiles,
Command::SetSrtpProfiles) for new connections.

Streamer peers now run str0m's bandwidth estimation and pacer. Each viewer
gets the simulcast layer its estimate allows (down at once, up after 2 s
above the next layer's minimum plus 20%), switching at a keyframe of the new
layer, which is requested. Keyframe requests and bitrate targets (lowest
estimate of a layer's viewers) are per layer and reach the encoders
lock-free through LayerFeedback (StreamSink::take_layer_keyframes,
layer_bitrate). Peers that negotiate RID simulcast (PeerConfig::simulcast,
for SFUs/WHIP) get every layer with its RID. Layers can change while live.

voelinctl stream start takes --layer, --simulcast, --srtp and --placeholder
(layered synthetic frames without an encoder) and prints each viewer's
layer, estimate and SRTP profile.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
2026-09-27 03:56:35 +00:00
Claude 8bb060167b dimpl: configurable SRTP profile order
A DTLS 1.2 server in dimpl picks AES-256-GCM whenever the client offers it,
and there is no setting. Our str0m peers are the DTLS server for official
TeamSpeak 6 viewers, which offer all profiles, so our streams used GCM while
official streams use AES_CM_128_HMAC_SHA1_80.

ConfigBuilder::srtp_profiles sets the profiles in order of preference: the
server picks the first of them the client offered, clients offer them in
that order and reject a server that picks another. Unset, everything is as
upstream. VOELIN-PATCH.md describes the patch and how to drop it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
2026-09-26 23:36:41 +00:00
Claude d1c4424789 Vendor dimpl 0.7.4 unmodified and patch it in from third_party
str0m's DTLS stack (dimpl) hard-codes the SRTP profile a DTLS server picks
(AES-256-GCM first), with no way to configure it. Official TeamSpeak 6
clients use AES_CM_128_HMAC_SHA1_80, so we need to patch dimpl. This commit
only vendors the crate as published and routes crates.io's dimpl to it;
the change follows separately so it can be reviewed and dropped on its own.

third_party is excluded from the workspace so dimpl's dev-dependencies and
tests stay out of our builds, and own-crates.sh skips it like crates/proto.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
2026-09-26 23:27:21 +00:00
Claude fd36372243 Encoded frames say whether they are keyframes; StreamSink gets the layer methods
Viewers switch simulcast layers on a keyframe of the new layer, so the
stream sessions need to know which frames are keyframes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
2026-09-26 23:15:42 +00:00
Claude 8b826da63d voelin-stream: simulcast layer types and the layer seam between capture and streams
LayerSpec describes one encoding (size or scale, fps cap, bitrate range,
minimum estimate, RID); LayerSet is a growable set of layers. Encoded
frames carry their layer, FrameSource and MediaSink gain per-layer
keyframe requests and bitrate targets, and StreamerOptions and
StreamerConfig take the layer list. Behaviour is unchanged: one layer, 0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
2026-09-26 23:14:05 +00:00
Claude b49ce78b15 docs/android.md: the app runs on Waydroid with the EGL workaround
Confirmed on Waydroid with the debug APK from f7ada91.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
2026-09-26 22:20:26 +00:00
Claude 4f2efe401a Point repository links at Faumaray/Voelin
The GitHub repository was renamed from teamspeak_client_rs to Voelin
(old URLs redirect): Cargo metadata, SECURITY.md, the AppStream
homepage and bug tracker, the tsgw unit's Documentation= and the .deb
Homepage.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
2026-09-26 22:17:08 +00:00
Claude ede6901d5e CI: fast checks only; packages are built by a release workflow
ci.yml (pushes to main, PRs) now runs only the quick checks: fmt +
clippy, the Linux tests (Xvfb), clippy for Windows (MSVC) and for
Android, cargo-deny, the notices check, and the TS3/TS6 smoke and
browser interop tests. It skips documentation-only changes (except
THIRD_PARTY_NOTICES.md, which is compiled in) and can be called by
other workflows.

The new release.yml builds the packages: on a v* tag it runs the same
checks (through ci.yml) plus the Windows tests and every package job
(Linux .tar.gz/.deb for the app and tsgw, Windows zip + installer,
Flatpak, Android APKs, the tsgw image) and attaches them with
SHA256SUMS to a draft release; run by hand it only uploads the
packages as artifacts. docker.yml runs on tags and by hand instead of
on PRs, pushes and weekly.

scripts/own-crates.sh also recognizes crates/proto with Windows path
separators, so Windows clippy covers our crates only (checked locally
with clippy for x86_64-pc-windows-gnu: clean). Docs follow.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
2026-09-26 22:14:25 +00:00
Claude f7ada91fcd android: keep EGL extension slots for Skia (the UI did not start on Waydroid)
On Waydroid the app ended right after start: "Could not create Skia Direct
Context from GL interface", after libEGL logged "no more slots for
eglGetProcAddress". Android's libEGL gives every GL function without a
built-in entry point one of 256 extension slots on its first lookup.
Slint's Skia OpenGL surface loads glow's whole function table (desktop GL
included) before Skia assembles its interface; Mesa returns an entry point
for every name, so the slots run out, Skia gets NULL for
glTextureBarrierNV (advertised through GL_NV_texture_barrier) and refuses
the interface.

Look up the 83 extension functions Skia's GLES interface can use (Skia
m153's GrGLAssembleGLESInterfaceAutogen.cpp) once per process before Slint
creates its surface, so they get slots first; glow's desktop-only lookups
are the ones that fail. Vendor drivers return NULL for desktop-only names
and were not affected. docs/android.md explains it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
2026-09-26 21:21:42 +00:00
Claude e050148a32 Rename the project to Voelin; packages hold only the app, tsgw is a Linux server package
The product is Voelin (app id io.github.faumaray.Voelin), everywhere:
- crates tsc-* -> voelin-* (and voelin-fuzz), the desktop binary
  tsc-desktop -> voelin, the development CLI tsctl -> voelinctl;
- the Android app: applicationId, Kotlin package io.github.faumaray.voelin,
  VoelinApp, libvoelin_android.so (JNI class names follow);
- TSC_* environment variables -> VOELIN_*, Gradle properties tsc.* ->
  voelin.*, signing secrets VOELIN_SIGNING_*;
- the data/config/cache/state folder tsc -> voelin, the keyring service,
  thread names, the dev compose project;
- desktop file, metainfo, icon, Flatpak manifest, NSIS installer, docs.
The gateway keeps its name: bin tsgw (crate voelin-gateway), TSGW_* env
vars, the tsgw.v1+json protocol, the tsgw image. The window title and the
About page show "Voelin <version>" from voelin_platform::APP_NAME.

Packages (scripts/package.sh): the app only (voelin, voelin.exe, APKs,
Flatpak). voelinctl is a development tool and in no package. tsgw is for
servers and now its own Linux package, tsgw_<v>_amd64.deb and
tsgw-<v>-linux-x86_64.tar.gz, with a sandboxed systemd unit
(packaging/linux/tsgw.service; /etc/tsgw config, /var/lib/tsgw state) and
dependencies of its own (no GUI libraries). docs/gateway-admin.md has an
Install section.

Fixes:
- package-windows: makensis on Windows found no file through "D:/a/..."
  paths; pass Windows paths (cygpath -w).
- StartupWMClass is the app id, which the app sets as its X11 WM_CLASS
  (it was the binary name, so desktops could not match the window).
- Gradle wrapper download timeout 10 s -> 60 s (slow proxies).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
2026-09-26 21:11:17 +00:00
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