From d1355d52fc7b0c64b4fdb72b99e18d48538b042d Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Tue, 29 Oct 2024 15:35:43 +0200 Subject: Fix video quality for short videos (#5996) * remove auto level capping * flush first fragment on loop --- .../util/post-embeds/VideoEmbedInner/web-controls/VideoControls.tsx | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/view/com/util/post-embeds/VideoEmbedInner/web-controls/VideoControls.tsx') diff --git a/src/view/com/util/post-embeds/VideoEmbedInner/web-controls/VideoControls.tsx b/src/view/com/util/post-embeds/VideoEmbedInner/web-controls/VideoControls.tsx index dd0dafc33..acd4d1aae 100644 --- a/src/view/com/util/post-embeds/VideoEmbedInner/web-controls/VideoControls.tsx +++ b/src/view/com/util/post-embeds/VideoEmbedInner/web-controls/VideoControls.tsx @@ -138,13 +138,10 @@ export function Controls({ useEffect(() => { if (!hlsRef.current) return if (focused) { - // auto decide quality based on network conditions - hlsRef.current.autoLevelCapping = -1 // allow 30s of buffering hlsRef.current.config.maxMaxBufferLength = 30 } else { // back to what we initially set - hlsRef.current.autoLevelCapping = 0 hlsRef.current.config.maxMaxBufferLength = 10 } }, [hlsRef, focused]) -- cgit 1.4.1