Consolidate Douyin→YouTube RTMPS into /live, parallel local service boot, poll-only realtime, slimmer packs/charts, and deprecate youtube-live-win. Co-authored-by: Cursor <cursoragent@cursor.com> |
||
|---|---|---|
| .. | ||
| electron | ||
| runtime/ffmpeg | ||
| scripts | ||
| src | ||
| .gitignore | ||
| index.html | ||
| package-lock.json | ||
| package.json | ||
| postcss.config.js | ||
| README.md | ||
| tailwind.config.js | ||
| tsconfig.electron.json | ||
| tsconfig.json | ||
| vite.config.ts | ||
Windows 桌面客户端(唯一)
本目录是 douyinWEB 唯一 Windows 客户端:本地拉起 PocketBase + FastAPI + youtube-svc,UI 为 Electron + React。
已废弃独立目录
youtube-live-win/。无人直播请用本客户端导航 「无人直播」。
要求
- Windows 10/11 x64
- Node.js 20+
- Python 3.10+(Windows 需
tzdata:npm run ensure-python或pip install -r ../backend/requirements.txt) - PocketBase:
npm run fetch-pocketbase→../pb/pocketbase.exe - FFmpeg:系统 PATH,或
npm run fetch-ffmpeg→runtime/ffmpeg/ youtube-svc:cd ../youtube-svc && npm install(start-desktop.bat会自动装)
开发
cd desktop
npm install
npm run prepare:runtime
npm run electron:dev
或仓库根目录:scripts\start-desktop.bat(自动补齐 PB / ffmpeg / Python / youtube-svc)。
| 服务 | 默认 |
|---|---|
| FastAPI | 127.0.0.1:8014 |
| PocketBase | 127.0.0.1:8090 |
| youtube-svc | 127.0.0.1:8020 |
| Vite UI | 127.0.0.1:5173 |
启动时 关闭 DY_DESKTOP_LIGHT,会自动拉起 monitor / youtube_relay / Shorts 等 worker(Neko 默认关,无需 Docker)。
桌面端默认 轮询模式(不开 SSE),避免 Windows 本机 API 被 EventSource 打满。
功能
- 概览 / 时段 / 场次 / 主播 / 截图 / 事件
- 直播间 / 分组 / YouTube 管理与探测 / Shorts / 黑名单 / 设置
- 无人直播:单频道 Stream Key + 抖音源 → 一键武装 RTMPS 推流
打包
npm run fetch-ffmpeg
npm run pack
产物在 desktop/release/(NSIS + portable)。
无人直播用法
- YouTube Studio → 开始直播(进入收流)
- 客户端打开 无人直播
- 填 Stream Key + 抖音直播间 → 保存 → 一键武装推流