diff options
author | Samuel Newman <mozzius@protonmail.com> | 2024-09-11 16:20:20 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-11 16:20:20 +0100 |
commit | b04ecbe54d2cb0581b8b33a46dc07d5d5e978c13 (patch) | |
tree | 90b1cf2a126de5075f8c7b556f63e40853ed9eac /src/view/com/util/post-embeds/VideoEmbedInner/VideoWebControls.tsx | |
parent | db38438549aa878a89ba1fb2198e6454f50367c4 (diff) | |
download | voidsky-b04ecbe54d2cb0581b8b33a46dc07d5d5e978c13.tar.zst |
hls buffering tweaks (#5266)
Diffstat (limited to 'src/view/com/util/post-embeds/VideoEmbedInner/VideoWebControls.tsx')
-rw-r--r-- | src/view/com/util/post-embeds/VideoEmbedInner/VideoWebControls.tsx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/view/com/util/post-embeds/VideoEmbedInner/VideoWebControls.tsx b/src/view/com/util/post-embeds/VideoEmbedInner/VideoWebControls.tsx index 3fd322692..138791e48 100644 --- a/src/view/com/util/post-embeds/VideoEmbedInner/VideoWebControls.tsx +++ b/src/view/com/util/post-embeds/VideoEmbedInner/VideoWebControls.tsx @@ -130,8 +130,12 @@ export function Controls({ 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]) |