feat: Add default quality setting (#509)

This commit is contained in:
Théo FORTIN
2025-02-12 08:32:26 +01:00
committed by GitHub
parent 74e57bbd88
commit e71d5cc176
5 changed files with 40 additions and 11 deletions

View File

@@ -28,8 +28,8 @@ const useDefaultPlaySettings = (
(x) => x.Type === "Audio"
)?.Index;
// 4. Get default bitrate
const bitrate = BITRATES[0];
// 4. Get default bitrate from settings or fallback to max
const bitrate = settings?.defaultBitrate ?? BITRATES[0];
return {
defaultAudioIndex: