Skip to main content

输入属性

输入属性是可以传递给渲染的数据,用于参数化视频。它们可以通过两种方式获得:

🌐 Input props are data that can be passed to a render in order to parametrize the video. They can be obtained in two ways:

Remotion Studio 中,你可以设置 默认属性 作为设计视频的占位数据。如果你的输入属性没有覆盖默认属性,将会使用默认属性。参见:属性如何被解析

🌐 In the Remotion Studio, you can set default props to serve as placeholder data for designing your video. If your input props don't override the default props, the default props will be used. See: How props get resolved

Remotion Player 中,没有默认的属性,但你可以将 inputProps 直接传递给 <Player>

🌐 In the Remotion Player, there are no default props, but you can pass inputProps directly to the <Player>.