mirror of
https://github.com/streamyfin/streamyfin.git
synced 2025-08-20 18:37:18 +02:00
fix: make sure always max bitrate is selected
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user