#How to pass fps and duration, to a composition from server side Node.js , just like input props.

3 messages · Page 1 of 1 (latest)

safe sand
#

Example : I want to a pass to composition like this

const composition = await selectComposition({
serveUrl: bundleLocation,
id: compositionId,
inputProps,
});
 
and use like this in my root.tsx :

<Composition
id="FinalVideo"
component ={FinalVideoComposition}
durationInFrames={durationInFrames}
fps={fps}
width={720}
height={1280}
/>

Thank you.

uneven orchid
safe sand
#

thanks again dude imma give this a shot.