Skip to main content

@remotion/preload

此包提供用于预加载资源的功能。虽然渲染时不需要预加载,但它有助于在 <Player /> 和 Studio 中实现无缝播放。目前,实现了三个函数:

🌐 This package provides functions for preloading assets. While preload is not necessary for rendering, it can help with seamless playback in the <Player /> and in the Studio. Currently, three functions are implemented:

@remotion/preload 的一个替代方案是 prefetch() API。请参阅 @remotion/preload vs prefetch() 来决定哪一个更适合你的使用场景。

🌐 An alternative to @remotion/preload is the prefetch() API. See @remotion/preload vs prefetch() to decide which one is better for your usecase.

安装

🌐 Installation

npx remotion add @remotion/preload