refactor: split music streaming into Hope Music
Rebuild & Deploy / rebuild (push) Successful in 2m7s
Rebuild & Deploy / rebuild (push) Successful in 2m7s
Move the media server, downloader, library volume, and browser player to the standalone hope-media-music product. Keep Hope's music tools as a thin HTTP client of the LAN service on port 8094. Use a stable voice-room player scope instead of ephemeral LiveKit room names. The agent now owns the conversation handshake: fresh reported playback mutes its input, joining pauses music, and the last participant leaving resumes only music it paused. Peer failures remain non-fatal. Also move the voice deploy workflow onto the active Unraid Gitea runner and remove yt-dlp/ffmpeg/media health and volume dependencies from the image.
This commit is contained in:
1 parent
d4ea4fc984
commit
436b3fc8b1
23 files changed
+356
-2518
No files matched your search
+4
-8
@@ -24,10 +24,10 @@ ENV PYTHONUNBUFFERED=1
|
||||
# Fix SSL cert path for the slim base image (ca-certificates installs to /etc/ssl/certs)
|
||||
ENV SSL_CERT_FILE=/etc/ssl/certs/ca-certificates.crt
|
||||
|
||||
# Install LiveKit server binary + supervisord + nginx + ffmpeg (yt-dlp audio
|
||||
# extraction/transcoding for the media player)
|
||||
# Install LiveKit server runtime dependencies, supervisord, and nginx.
|
||||
# Music download/transcode dependencies live in hope-media-music now.
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
curl ca-certificates supervisor nginx libasound2 iproute2 ffmpeg \
|
||||
curl ca-certificates supervisor nginx libasound2 iproute2 \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Download LiveKit server (latest stable)
|
||||
@@ -52,7 +52,7 @@ COPY agent/task_worker.py /opt/voice-agent/task_worker.py
|
||||
COPY agent/dispatch_mcp.py /opt/voice-agent/dispatch_mcp.py
|
||||
COPY agent/media_mcp.py /opt/voice-agent/media_mcp.py
|
||||
|
||||
# Copy web frontend + token endpoint + media server
|
||||
# Copy the voice frontend + token endpoint. Hope Music is a separate service.
|
||||
COPY web/index.html /var/www/voice/
|
||||
COPY web/app.js /var/www/voice/
|
||||
COPY web/style.css /var/www/voice/
|
||||
@@ -60,10 +60,6 @@ COPY web/livekit-client.umd.js /var/www/voice/
|
||||
COPY web/manifest.json /var/www/voice/
|
||||
COPY web/favicon.svg /var/www/voice/
|
||||
COPY web/token_server.py /opt/voice/token_server.py
|
||||
COPY web/media_server.py /opt/voice/media_server.py
|
||||
|
||||
# Permanent media library mount point (bind-mounted from ./media)
|
||||
RUN mkdir -p /data/media/files /data/media/thumbs /data/media/jobs
|
||||
|
||||
# Config files
|
||||
COPY livekit.yaml /etc/livekit.yaml
|
||||
|
||||
Reference in new issue
Block a user