From ff88fe276e0b75705d0e29f51130e70a247d3947 Mon Sep 17 00:00:00 2001 From: shrimbly Date: Sat, 21 Feb 2026 22:56:47 +1300 Subject: [PATCH] fix: convert video data URLs to blob URLs for playback performance MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Data URLs force Chrome to re-parse base64 on each access. With autoPlay loop, this happens continuously and can freeze the main thread on systems with weak GPUs that fall back to software video decoding. Add useVideoBlobUrl hook that converts data URLs to blob URLs via fetch->blob->createObjectURL. Returns the data URL immediately as fallback to avoid flicker, then swaps to blob URL once ready (~50ms). Properly revokes blob URLs on input change and unmount. Applied to all 6