WIP: Fix play behaviour in track view

- Added wasPlayingRef to preserve playback state across version changes
- Auto-play new waveform if previous version was playing
- Ensure play/pause buttons work correctly after version switch
- Added WebSocket proxy configuration for real-time features

Fixes: Version switching now preserves playback state
Todo: Test edge cases and finalize implementation
This commit is contained in:
Mistral Vibe
2026-03-29 20:37:25 +02:00
parent 02fd556372
commit 1179d9f063
2 changed files with 41 additions and 5 deletions

View File

@@ -31,6 +31,22 @@ server {
proxy_send_timeout 300s;
}
# WebSocket proxy for real-time version room events
location /ws/ {
proxy_pass http://api:8000;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
# WebSocket specific headers
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_read_timeout 60s;
proxy_send_timeout 60s;
}
# SPA routing — all other paths fall back to index.html
location / {
try_files $uri $uri/ /index.html;