about summary refs log tree commit diff
path: root/src/view/com/util/post-embeds/VideoEmbedInner/web-controls/VideoControls.tsx
diff options
context:
space:
mode:
authorSamuel Newman <mozzius@protonmail.com>2024-10-29 15:35:43 +0200
committerGitHub <noreply@github.com>2024-10-29 13:35:43 +0000
commitd1355d52fc7b0c64b4fdb72b99e18d48538b042d (patch)
treeb7f62799e903683261febce5035600ec124f91fc /src/view/com/util/post-embeds/VideoEmbedInner/web-controls/VideoControls.tsx
parent80c5f23da274adb9270a024e7f0e84e09b8f575e (diff)
downloadvoidsky-d1355d52fc7b0c64b4fdb72b99e18d48538b042d.tar.zst
Fix video quality for short videos (#5996)
* remove auto level capping

* flush first fragment on loop
Diffstat (limited to 'src/view/com/util/post-embeds/VideoEmbedInner/web-controls/VideoControls.tsx')
-rw-r--r--src/view/com/util/post-embeds/VideoEmbedInner/web-controls/VideoControls.tsx3
1 files changed, 0 insertions, 3 deletions
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])