aboutsummaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2023-12-12 00:26:05 +0100
committermetamuffin <metamuffin@disroot.org>2023-12-12 00:26:05 +0100
commite8b8edca1a4f486e45f36b30b88e9717bdaef106 (patch)
treec3d782876e3a37b98c85b63ccb75d6dca74280fd /web
parent672db6cdc067864dbdb08aabef5cef36cb4e0a93 (diff)
downloadjellything-e8b8edca1a4f486e45f36b30b88e9717bdaef106.tar
jellything-e8b8edca1a4f486e45f36b30b88e9717bdaef106.tar.bz2
jellything-e8b8edca1a4f486e45f36b30b88e9717bdaef106.tar.zst
adaptive transcode still too aggressive
Diffstat (limited to 'web')
-rw-r--r--web/script/player/profiles.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/web/script/player/profiles.ts b/web/script/player/profiles.ts
index eef28c4..ad965f8 100644
--- a/web/script/player/profiles.ts
+++ b/web/script/player/profiles.ts
@@ -46,8 +46,9 @@ export class ProfileSelector {
const sup_remux = await this.remux_supported(track);
const min_prof = sup_remux ? -1 : 0
const co = profile.value?.order ?? min_prof
- const current_bitrate = profile_byterate(profs[co], 5000 * 1000)
- const next_bitrate = profile_byterate(profs[co - 1], 5000 * 1000)
+ // TODO use actual bitrate as a fallback. the server should supply it.
+ const current_bitrate = profile_byterate(profs[co], 500 * 1000)
+ const next_bitrate = profile_byterate(profs[co - 1], 500 * 1000)
// console.log({ current_bitrate, next_bitrate, co, bandwidth: this.bandwidth.value * 8 });
if (!sup_remux && !profile.value) profile.value = profs[co];
if (current_bitrate > this.bandwidth.value * PROFILE_DOWN_FAC && co + 1 < profs.length) {