feat(player): stream at the chosen quality + per-track optimize (§6.6)

The Playback quality setting now drives streaming: getStreamUrl appends
?quality= and useAudioPlayer feeds the server-synced streamQuality, so the
backend transcodes on demand (miss → original). Adds an optimizeTrack mutation
and an Optimize action in the metadata editor to warm a track's rendition.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Цвылев Александр Вадимович
2026-07-28 21:22:59 +03:00
parent 9d88d70be0
commit e45ef785cf
6 changed files with 98 additions and 4 deletions
+6
View File
@@ -627,6 +627,12 @@ const ru: Translations = {
empty: 'В этой категории пусто.',
},
metadataEditor: {
optimize: {
title: 'Оптимизировать формат',
hint: 'Перекодировать в компактный Opus + HLS в фоне.',
button: 'Оптимизировать',
enqueued: 'Оптимизация поставлена в очередь — выполнится в фоне.',
},
error: 'Не удалось загрузить трек',
saved: 'Метаданные сохранены.',
saveError: 'Не удалось сохранить метаданные.',