refactor: use blurhash to render background
This commit is contained in:
12 files changed
+205
-164
No files matched your search
@@ -140,8 +140,8 @@ export function VideoPlayer() {
|
||||
s.tracks,
|
||||
]);
|
||||
|
||||
const setBackdrop = useBackdropStore((s) => s.setBackdrop);
|
||||
useEffect(() => setBackdrop("", ""), []);
|
||||
const setBackdrop = useBackdropStore(useShallow((s) => s.setBackdrop));
|
||||
useEffect(() => setBackdrop(""), []);
|
||||
|
||||
const handleReady = async () => {
|
||||
if (api && !isPlayerReady && player.current) {
|
||||
|
||||
Reference in new issue
Block a user