Synchronized viewing, theater, live streaming, video, long-distance relationship
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Go to file
zijiren dd6428ebca
feat(livestream): add WebRTC ingest and playback (#454)
## Summary

- add WHIP publishing and WHEP playback backed by the xiu StreamHub
- support external WHEP live proxy sources and expose WebRTC playback
through the live/RTMP provider APIs
- relay RTP and WebRTC session lifecycle across cluster nodes with
generation and lease fencing
- add WebRTC configuration, environment variables, CLI output, Helm
values, OpenAPI definitions, and bilingual documentation
- keep frame and RTP relay liveness deadlines independent so a stalled
path triggers relay recovery

## Validation

- `cargo fmt --all -- --check`
- `cargo clippy -p synctv-livestream --all-targets -- -D warnings`
- `cargo test -p synctv-livestream` (239 passed, 20 ignored)
- `git diff --check`
4 weeks ago
.cargo refactor(metrics): centralize registry and lifecycle tracking (#446) 4 weeks ago
.config chore: replace synctv-org backend with SyncTV v1.0.0 2 months ago
.github feat(livestream): add WebRTC ingest and playback (#454) 4 weeks ago
.sqlx feat(admin): add async chat moderation cleanup (#445) 4 weeks ago
docs feat(livestream): add WebRTC ingest and playback (#454) 4 weeks ago
helm/synctv feat(livestream): add WebRTC ingest and playback (#454) 4 weeks ago
migrations feat(admin): add async chat moderation cleanup (#445) 4 weeks ago
scripts refactor(metrics): centralize registry and lifecycle tracking (#446) 4 weeks ago
synctv feat(livestream): add WebRTC ingest and playback (#454) 4 weeks ago
synctv-adapter feat(livestream): add WebRTC ingest and playback (#454) 4 weeks ago
synctv-api feat(admin): add async chat moderation cleanup (#445) 4 weeks ago
synctv-api-common feat(livestream): add WebRTC ingest and playback (#454) 4 weeks ago
synctv-api-grpc refactor(metrics): centralize registry and lifecycle tracking (#446) 4 weeks ago
synctv-api-http feat(livestream): add WebRTC ingest and playback (#454) 4 weeks ago
synctv-cluster refactor(metrics): centralize registry and lifecycle tracking (#446) 4 weeks ago
synctv-common feat(livestream): add WebRTC ingest and playback (#454) 4 weeks ago
synctv-core feat(livestream): add WebRTC ingest and playback (#454) 4 weeks ago
synctv-livestream feat(livestream): add WebRTC ingest and playback (#454) 4 weeks ago
synctv-management feat(livestream): add WebRTC ingest and playback (#454) 4 weeks ago
synctv-media-providers fix(emby): tolerate hidden browse ancestors (#443) 1 month ago
synctv-proto feat(livestream): add WebRTC ingest and playback (#454) 4 weeks ago
synctv-proto-build feat(web): add client-aware playback and reproducible UI (#433) 1 month ago
synctv-proto-main refactor: remove low-value thin wrappers (#426) 1 month ago
synctv-proto-playback-provider feat(playlist): add browse access controls (#423) 1 month ago
synctv-proto-providers refactor: remove low-value thin wrappers (#426) 1 month ago
synctv-proxy fix(proxy): preserve seek range requests after inconclusive HEAD (#437) 1 month ago
synctv-realtime refactor: remove low-value thin wrappers (#426) 1 month ago
synctv-web-ui feat(web): support runtime UI assets (#440) 1 month ago
synctv-xiu feat(livestream): add WebRTC ingest and playback (#454) 4 weeks ago
.dockerignore feat(web): add client-aware playback and reproducible UI (#433) 1 month ago
.env.postgres.example chore: replace synctv-org backend with SyncTV v1.0.0 2 months ago
.env.redis.example chore: replace synctv-org backend with SyncTV v1.0.0 2 months ago
.env.synctv.example feat(web): support runtime UI assets (#440) 1 month ago
.gitattributes feat: add recoverable resource deletion lifecycle (#394) 2 months ago
.gitignore feat(web): add client-aware playback and reproducible UI (#433) 1 month ago
CONTRIBUTING.md chore: replace synctv-org backend with SyncTV v1.0.0 2 months ago
Cargo.lock feat(livestream): add WebRTC ingest and playback (#454) 4 weeks ago
Cargo.toml feat(livestream): add WebRTC ingest and playback (#454) 4 weeks ago
Dockerfile refactor(metrics): centralize registry and lifecycle tracking (#446) 4 weeks ago
LICENSE chore: replace synctv-org backend with SyncTV v1.0.0 2 months ago
Makefile refactor(metrics): centralize registry and lifecycle tracking (#446) 4 weeks ago
README.md feat(livestream): add WebRTC ingest and playback (#454) 4 weeks ago
README.zh-CN.md feat(livestream): add WebRTC ingest and playback (#454) 4 weeks ago
SECURITY.md chore: replace synctv-org backend with SyncTV v1.0.0 2 months ago
deny.toml chore: replace synctv-org backend with SyncTV v1.0.0 2 months ago
docker-compose.dev.yml fix(bilibili): restore subtitles and dynamic live danmaku (#415) 1 month ago
docker-compose.yml fix(webrtc): use public STUN by default (#427) 1 month ago
rust-toolchain.toml refactor(metrics): centralize registry and lifecycle tracking (#446) 4 weeks ago
synctv.example.yaml feat(livestream): add WebRTC ingest and playback (#454) 4 weeks ago

README.md

SyncTV

SyncTV

简体中文 · Website

Rust Tokio Axum gRPC PostgreSQL Redis Docker Helm Kubernetes OpenAPI Astro Starlight License

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.

SyncTV synchronized room playback

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.
  • WHIP and RTMP publishing with WHEP, HLS, and HTTP-FLV playback.
  • External WHEP, RTSP, RTMP, and HTTP-FLV pull with cross-node live relay.
  • 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.

SyncTV contributors

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.