## Summary - preserve room membership and owned resources across global bans while blocking browsing and playback until unban - clean up member-owned media and dynamic playlists on leave, kick, and account deletion while preserving ordinary shared playlists - enforce lifecycle checks for playback, history, dynamic browsing, direct IDs, backend generation, publish keys, RTMP, and historical dynamic ancestors - serialize playback transitions with ban and lifecycle cleanup transactions and emit realtime outbox events atomically ## Verification - `make fmt-check` - `make clippy-check` - `make nextest-default` (5238 passed, 1596 skipped) - 15 targeted ignored Testcontainers lifecycle/concurrency tests passed - `make sqlx-prepare` with only changed offline query cache entries retained |
1 month ago | |
|---|---|---|
| .cargo | 2 months ago | |
| .config | 2 months ago | |
| .github | 2 months ago | |
| .sqlx | 1 month ago | |
| docs | 1 month ago | |
| helm/synctv | 1 month ago | |
| migrations | 1 month ago | |
| scripts | 1 month ago | |
| synctv | 1 month ago | |
| synctv-adapter | 1 month ago | |
| synctv-api | 1 month ago | |
| synctv-api-common | 1 month ago | |
| synctv-api-grpc | 1 month ago | |
| synctv-api-http | 1 month ago | |
| synctv-cluster | 2 months ago | |
| synctv-common | 2 months ago | |
| synctv-core | 1 month ago | |
| synctv-livestream | 2 months ago | |
| synctv-management | 1 month ago | |
| synctv-media-providers | 1 month ago | |
| synctv-proto | 1 month ago | |
| synctv-proto-build | 1 month ago | |
| synctv-proto-main | 2 months ago | |
| synctv-proto-playback-provider | 1 month ago | |
| synctv-proto-providers | 1 month ago | |
| synctv-proxy | 1 month ago | |
| synctv-realtime | 1 month ago | |
| synctv-xiu | 1 month ago | |
| .dockerignore | 2 months ago | |
| .env.postgres.example | 2 months ago | |
| .env.redis.example | 2 months ago | |
| .env.synctv.example | 2 months ago | |
| .gitattributes | 2 months ago | |
| .gitignore | 1 month ago | |
| CONTRIBUTING.md | 2 months ago | |
| Cargo.lock | 1 month ago | |
| Cargo.toml | 1 month ago | |
| Dockerfile | 2 months ago | |
| LICENSE | 2 months ago | |
| Makefile | 1 month ago | |
| README.md | 1 month ago | |
| README.zh-CN.md | 1 month ago | |
| SECURITY.md | 2 months ago | |
| deny.toml | 2 months ago | |
| docker-compose.dev.yml | 1 month ago | |
| docker-compose.yml | 1 month ago | |
| rust-toolchain.toml | 2 months ago | |
| synctv.example.yaml | 2 months ago | |
README.md
SyncTV
SyncTV is a Rust implementation of a real-time synchronized video watching platform with media provider integration, livestreaming, HTTP/gRPC APIs, and Kubernetes-ready horizontal scaling.
Highlights
- Synchronized room playback with real-time state updates.
- Media providers for Bilibili, Twitch, YouTube, Douyin, TikTok, Huya, Douyu, AcFun, CCTV, Alist, Cloudreve, Emby/Jellyfin, FNOS, QNAP, Synology, Nextcloud, Seafile, TrueNAS, direct URLs, and livestream sources.
- RTMP push/pull, HLS, and HTTP-FLV livestream support.
- RTSP external pull with TCP/UDP transport and live HLS/HTTP-FLV remuxing.
- HTTP REST, public gRPC, WebSocket, management gRPC, metrics, RTMP, and STUN runtime surfaces.
- PostgreSQL-backed durable storage with optional Redis shared state, cache, rate limiting, and cluster coordination.
- Docker Compose and Helm deployment templates.
- Built-in management CLI and optional OpenAPI/Swagger UI.
- Astro Starlight documentation site with English and Simplified Chinese content.
Discussion and Contributors
Join the SyncTV Telegram discussion to talk with users and contributors about deployment, operations, media providers, client development, and the product roadmap.
Quick Start
Development environment from a full repository checkout:
# Starts PostgreSQL and Redis, then runs SyncTV locally with development settings.
make dev-serve
# Starts optional media/auth/storage dependencies too.
make dev-stack
# Runs real CLI/curl provider smoke tests through the Makefile dev startup path.
make dev-smoke
Production Compose uses generated PostgreSQL, Redis, and application secrets:
# Requires Docker Compose and openssl.
make compose-init
# Edit SYNCTV_BOOTSTRAP_ROOT_PASSWORD in .env.synctv before starting.
make compose-up
Validate configuration:
cargo +nightly run -p synctv --bin synctv -- config validate
Optional migration preflight. The server also runs embedded SQLx migrations automatically during startup:
cargo +nightly run -p synctv --bin synctv -- db migrate
Start locally:
cargo +nightly run -p synctv --bin synctv -- serve
Documentation
Read the complete documentation at docs.syncs.tv.
Download the native client from the client downloads guide or SyncTV App releases. Store builds are distributed through the supported app stores.
License
MIT. See LICENSE.