Spaces:
Sleeping
Sleeping
File size: 983 Bytes
5f248ee 519e0f2 5f248ee b2d9ad7 5f248ee |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 |
import React from 'react';
import { TransitionImplementationProps } from 'remotion-transition-series/lib/components/Transition';
import { OffthreadVideo, Video, staticFile } from 'remotion'
import { z } from "zod";
export const VideoSplash:
React.FC<z.infer<typeof VideoSplashSchema>> = (props) => {
let {
file,
durationInFrames,
} = props
return (
<div
style={{
width: '100%',
height: '100%',
position: 'absolute',
left: 0,
top: 0,
right: 0,
bottom: 0,
}}
>
<Video {...props} playbackRate={1}
volume={0} style={{
position: 'absolute',
height: '100%', width: '100%',
}}
src={staticFile((file || 'assets/effects/effect_zipper.webm'))} />
</div>
);
};
export const VideoSplashSchema = z.object({
file: z.string(),
durationInFrames: z.number().optional(),
style: z.any()
}); |