Skip to content
ActiveDownPublic

About

Discord-style screen and application streaming for stock TeamSpeak 3 on Windows. LiveKit SFU, 1080p, adaptive bitrate, LIVE badges and an in-client viewer. | Стриминг экрана и приложений в стоковом TeamSpeak 3 на Windows: LiveKit, 1080p, адаптивный битрейт, LIVE-бейджи и встроенный просмотр.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

27 Commits

Folders and files

Repository files navigation

TS3Stream

Discord-style screen and application streaming inside stock TeamSpeak 3 on Windows, with LiveKit running next to the untouched TS3 server.

Русская версия

Features

  • Stock TS3 client only: a regular TeamSpeak 3 plugin (API 26, x64) for TS3 3.6.2. Neither the client nor the server binary is patched.
  • Stream toolbar button, enabled only while connected to a TS3 server.
  • One stream per client; starting a second stream is blocked in the UI and in code.
  • 30 / 60 / Auto FPS, selectable 720p / 900p / 1080p / 1440p (default 1080p, no upscaling), and an editable 1000–10000 Kbit/s bitrate dropdown with 4000 Kbit/s default. Resolution, FPS mode and bitrate are saved after stream start and restored across TeamSpeak restarts. Audio, retransmissions and short network bursts are additional; explicit client selection overrides the legacy diagnostic environment setting. Quality settings.
  • 0.3.11 adds saved quality settings, 900p and viewer volume up to 150%. No server update is required over 0.3.10. Release notes.
  • 0.3.10 bundles server cache/reordering fixes and diagnostics in LiveKit 1.13.11-ts3stream.4. Remaining WAN freezes are not claimed fixed. Release notes.
  • Borderless monitor capture on Windows 10 via DXGI when WGC border control is unavailable. Individual-window capture stays on WGC and may still show a border; automatic backend selection needs confirmation on an actual Windows 10 system.
  • Paced, newest-frame-only encoder input and a framerate-priority degradation setting; viewers subscribe only to the selected publisher instead of downloading every stream in the room.
  • WebRTC diagnostics every approximately two seconds: bitrate/FPS, encode/decode time, sender queue/jitter-buffer delay, loss, retransmissions and freezes. See 0.3.8 findings and buffering limitations.
  • Server-side two-second A/V buffering (0.3.9) uses the included LiveKit fork with a shared RTP/RTCP timeline; no extra client PCM delay in this mode. Fresh installers fetch the fork automatically. Configuration, migration and limitations, tests and measurements, reproducible server source/build.
  • Window resize and browser fullscreen continue streaming on the same video track without freezing or reconnecting viewers.
  • Application or system audio via WASAPI process loopback; TeamSpeak audio is excluded and audio fails closed if a second TS3 client appears.
  • One LiveKit room per TS3 channel, red LIVE badges, in-client viewer.
  • Explicit watch actions: client context menu, client info button, LIVE badge popup, or the active streams toolbar menu. Row clicks only select the client.
  • Playback mute and 0–150% volume in every viewer mode, with 100% default and saturating PCM amplification, independent of TeamSpeak voices and outgoing capture.
  • Viewing and publishing are independent: starting a stream does not open the viewer; closing the viewer does not stop the stream.
  • Detach / Embed the viewer into a separate movable window while keeping TeamSpeak available.
  • Fullscreen on the viewer's current monitor, including a detached viewer, with a semi-transparent members bar and large controls.
  • Fullscreen controls auto-hide after three seconds of inactivity and return on mouse/keyboard input; hovering controls or dragging volume keeps them visible.
  • Automatic viewer close when the publisher ends the stream, in embedded, detached and fullscreen modes.
  • Crash-free TS3 shutdown, including while publishing and watching.

Quick install

Linux server (automatic installer)

Requirements:

  • Ubuntu 22.04/24.04 or Debian 12, x86_64;
  • root/sudo;
  • a DNS name, for example stream.example.com, pointing to the server;
  • ports 80/443 open for Let's Encrypt;
  • the stock TS3 server already installed and running — the installer does not modify it.

Download the installer, inspect it, and run it:

curl -fsSL https://raw.githubusercontent.com/ActiveDown/ts3stream/main/deploy/install-linux.sh -o install-linux.sh
less install-linux.sh
sudo bash install-linux.sh

Or run it in one line (download to /tmp, then execute — this works with sudo on all common Linux distributions):

curl -fsSL https://raw.githubusercontent.com/ActiveDown/ts3stream/main/deploy/install-linux.sh -o /tmp/install-linux.sh && sudo bash /tmp/install-linux.sh

The installer prompts for the domain and confirmation, then:

  • installs LiveKit and the ts3stream-control API;
  • installs Caddy and obtains a TLS certificate;
  • creates livekit and ts3stream systemd services;
  • generates the LiveKit API secret and the client shared key;
  • detects the TS3 ServerQuery password, enables UID-verified registration and writes the TS3Stream marker into the server welcome message;
  • if the password is not found, asks for it and offers an automatic reset (with a TS3 restart);
  • adds UFW rules for the streaming ports;
  • prints a ready service.json as a manual fallback.

Non-interactive examples:

# Internet-facing with automatic TLS
sudo bash install-linux.sh --domain stream.example.com --yes

# LAN / test without TLS (IP is allowed here)
sudo bash install-linux.sh --domain 192.168.1.50 --no-caddy --yes

Useful options: --version v0.3.11 to pin the release, --no-firewall, --help.

Fresh installs enable 2000 ms server-side A/V buffering. Use --playout-delay-ms 0 to disable it. Reinstalling preserves the existing mode/delay; explicitly migrate with --buffer-mode server --playout-delay-ms 2000. Migration replaces and restarts LiveKit and control API, interrupting current streams, but does not restart TS3.

If you only have a public IP and no domain:

# Works immediately, but control API/token traffic is HTTP, not HTTPS.
sudo bash install-linux.sh --domain 95.142.44.214 --no-caddy --yes

For TLS without buying a domain, use a free wildcard DNS name that resolves to your IP, for example 95-142-44-214.sslip.io (dots become dashes):

sudo bash install-linux.sh --domain 95-142-44-214.sslip.io --yes

Ports 80 and 443 must be reachable for the Let's Encrypt certificate.

FreeDNS (https://freedns.afraid.org/) also works: create a free subdomain with an A record pointing to your public IP, verify it with dig +short yourname.mooo.com, then pass that hostname as --domain. A single certificate is fine; shared FreeDNS domains are subject to the usual Let's Encrypt rate limits. Do not enable a proxy/CDN in front of the A record unless you also proxy WebSocket and UDP media.

After installation:

systemctl status livekit ts3stream-control caddy
curl https://stream.example.com/api/health

Detailed manual steps and troubleshooting: docs/install-linux.en.md.
Windows server: docs/install-windows.en.md.

Windows server

Run PowerShell as Administrator and start the installer:

powershell -NoProfile -ExecutionPolicy Bypass -Command "iwr https://raw.githubusercontent.com/ActiveDown/ts3stream/main/deploy/install-ts3stream.ps1 -OutFile $env:TEMP\install-ts3stream.ps1; & $env:TEMP\install-ts3stream.ps1"

The installer:

  • downloads LiveKit, the control API and (optionally) Caddy;
  • writes livekit.yaml, start-*.cmd, service.json;
  • detects the TS3 ServerQuery password, enables UID-verified registration and writes the welcome marker;
  • adds Windows Firewall rules;
  • registers startup tasks for LiveKit, control API and Caddy;
  • starts the services and checks /api/health;
  • copies service.json into the local TS3 client profile when present.

For LAN/IP without TLS:

powershell -NoProfile -ExecutionPolicy Bypass -Command "iwr https://raw.githubusercontent.com/ActiveDown/ts3stream/main/deploy/install-ts3stream.ps1 -OutFile $env:TEMP\install-ts3stream.ps1; & $env:TEMP\install-ts3stream.ps1 -Domain 192.168.1.50 -NoTls -Yes"

Useful options: -Domain, -NoTls, -NoServices, -SkipFirewall, -Version v0.3.11.

Fresh installs enable 2000 ms server buffering. Existing settings are preserved; explicitly migrate with -BufferMode server -PlayoutDelayMs 2000. Plugin 0.3.9 is recommended for new diagnostics and bounded device staging.

The stock TS3 server is installed separately; the installer only checks that it is running. Detailed manual guide: docs/install-windows.en.md.

Windows client

  1. Close TeamSpeak 3.
  2. Install ts3stream-0.3.11.ts3_plugin with the TeamSpeak Package Installer.
  3. Start TS3 and connect to the server.

No manual config is normally needed: the plugin reads the [ts3stream]...[/ts3stream] marker from the TS3 welcome message, calls /api/register, verifies your TS3 UID through ServerQuery and saves service.json automatically.

If auto-configuration is unavailable (no ServerQuery password was detected), create %APPDATA%\TS3Client\plugins\ts3stream\service.json manually:

{
  "controlUrl": "https://stream.example.com",
  "clientKey": "PASTE_CLIENT_KEY"
}

Then press Stream.

How it works

TS3 client + plugin ──HTTPS/WSS──▶ Caddy ──▶ LiveKit (SFU) + control API
        │                              │
        └── WebRTC media (UDP/TCP) ────▶ LiveKit
  • The plugin asks the control API for a JWT, joins the LiveKit room of its TS3 channel, and publishes the screen + audio tracks.
  • The control API holds the LiveKit secret, issues tokens, and keeps a 15-second TTL registry of active streams for LIVE badges.
  • Viewers get a subscribe-only token and filter the selected participant by identity.
  • TS3 server ports (9987/UDP, 10011/TCP, 30033/TCP) are untouched.

Build from source (developers)

Requirements: Windows 10 2004+, Visual Studio 2022 Build Tools (MSVC 14.4x), Windows SDK, Qt 5.15.2 msvc2019_64, CMake, Ninja, Go 1.22+.

The build scripts expect a portable toolchain:

%USERPROFILE%\ts3stream-toolchain\
  msvc\
  winsdk\
  Qt\5.15.2\msvc2019_64\
  cmake\...\bin\cmake.exe
  ninja\ninja.exe

Set TS3STREAM_TOOLCHAIN to override the path.

powershell -File tools\setup-livekit.ps1
powershell -File plugin\build.ps1
powershell -File tools\package.ps1

The result is dist\ts3stream-<version>.ts3_plugin.

Repository layout

plugin/   C++ TS3 plugin (Qt 5.15.2, LiveKit C++ SDK, WGC, WASAPI)
service/  Go control API (tokens, live registry)
deploy/   Linux installer, systemd, LiveKit YAML, Caddy
tools/    build/package/setup scripts and test tools
docs/     Linux/Windows installation, architecture, audio

Limitations

  • Windows x64 and TS3 3.6.2 only.
  • The Linux installer supports x86_64 Debian/Ubuntu; other distributions need the manual guide.
  • TURN/TLS is optional and requires a separate certificate; see the Linux guide.
  • System audio requires exactly one running TS3 client; otherwise audio fails closed.
  • Hardware H.264 encoding depends on the GPU driver; the SDK can fall back to software.

License

MIT for the original code. TeamSpeak 3 SDK headers remain property of TeamSpeak Systems GmbH. LiveKit is Apache-2.0; Qt is LGPL-3.0. See NOTICE.

About

Discord-style screen and application streaming for stock TeamSpeak 3 on Windows. LiveKit SFU, 1080p, adaptive bitrate, LIVE badges and an in-client viewer. | Стриминг экрана и приложений в стоковом TeamSpeak 3 на Windows: LiveKit, 1080p, адаптивный битрейт, LIVE-бейджи и встроенный просмотр.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages