Files
bsky-social-app/src/view/com/composer/videos/VideoTranscodeBackdrop.web.tsx
T
Spence Pope c753c94969 Process videos on web with WebCodecs (#10955)
Co-authored-by: Samuel Newman <mozzius@protonmail.com>
2026-06-23 11:33:23 -04:00

27 lines
493 B
TypeScript

import {atoms as a, flatten} from '#/alf'
export function clearThumbnailCache() {
// no-op on web
}
export function VideoTranscodeBackdrop({uri}: {uri: string}) {
return (
<video
src={uri}
style={flatten([
a.absolute,
a.inset_0,
a.h_full,
a.w_full,
{
objectFit: 'cover',
filter: 'blur(15px)',
transform: 'scale(1.1)', // hide blur edges
},
])}
muted
playsInline
/>
)
}