personal web client for Bluesky
typescript solidjs bluesky atcute

fix: round to nearest 1mbps

mary.my.id cc1f32fe f4012a98

verified
Changed files
+2 -1
src
components
embeds
+2 -1
src/components/embeds/players/video-player.tsx
··· 75 75 Hls.Events.FRAG_LOADED, 76 76 throttleTrailing(() => { 77 77 if (currentAccount && !Number.isNaN(hls.bandwidthEstimate)) { 78 - currentAccount.preferences.ui.videoBwEstimate = Math.round(hls.bandwidthEstimate); 78 + currentAccount.preferences.ui.videoBwEstimate = 79 + Math.round(hls.bandwidthEstimate / 1_000_000) * 1_000_000; 79 80 } 80 81 }, 5_000), 81 82 );