fix: make sure always max bitrate is selected

This commit is contained in:
Fredrik Burmester
2024-11-28 10:21:30 +01:00
parent 945d553cae
commit acd14279f4

View File

@@ -50,7 +50,9 @@ export function getDefaultPlaySettings(
)?.Index;
// 4. Get default bitrate
const bitrate = BITRATES[0];
const bitrate = BITRATES.sort(
(a, b) => (b.value || Infinity) - (a.value || Infinity)
)[0];
return {
item,