feat: Enhance iOS Safari audio streaming support with optimizations and specific headers
All checks were successful
Build and Push Docker Image / docker (push) Successful in 9s

This commit is contained in:
2025-10-19 23:18:25 +02:00
parent 18d14b097d
commit 70be1e7e39
11 changed files with 137 additions and 1328 deletions

View File

@@ -208,5 +208,11 @@ export class AudioStreamingService {
// The token system already provides security
ctx.response.headers.set('Cache-Control', 'public, max-age=3600');
ctx.response.headers.set('Accept-Ranges', 'bytes');
// iOS Safari specific headers to improve streaming
ctx.response.headers.set('Access-Control-Allow-Origin', '*');
ctx.response.headers.set('Access-Control-Allow-Methods', 'GET, HEAD, OPTIONS');
ctx.response.headers.set('Access-Control-Allow-Headers', 'Range');
ctx.response.headers.set('Access-Control-Expose-Headers', 'Content-Length, Content-Range, Accept-Ranges');
}
}