作文
一篇作品是你可以表达的东西。它由以下部分组成:
🌐 A composition is something you can render. It consists of:
一个 React 组件id它可以通过渲染一个 <Composition> 组件在 Remotion Studio 中注册。
一个持续时间为 1 帧的合成也称为 <Still>。
🌐 It can be registered in the Remotion Studio by rendering a <Composition> component.
A composition with a duration of 1 frame is also called a <Still>.
在 Remotion Player 中,你不使用 <Composition> 组件,而是将组件和元数据直接传递给 <Player>。
🌐 In the Remotion Player, you don't use the <Composition> component, rather you pass the component and metadata directly to the <Player>.
不要与<Sequence>混淆。
🌐 Not to be confused with <Sequence>.
组合 ID
🌐 Composition ID
你传递给 <Composition> 组件 的 id 属性的字符串。
你需要组合 ID 来引用你想要渲染的内容,例如:npx remotion render src/index <composition-id>。
🌐 The string that you pass as the id prop to the <Composition> component.
You need the composition ID to reference what you would like to render, for example: npx remotion render src/index <composition-id>.
看
🌐 See