Skip to main content

新 <Video> 和 <Audio> 标签

我们正在为 Remotion 制作新的 <Video><Audio> 标签。
我们的目标是为将视频和音频嵌入到你的 Remotion 中创建一个最佳默认设置:

🌐 We are making new <Video> and <Audio> tags for Remotion.
Our goal is to create a new default for embedding videos and audio into your Remotion that is best-in-class:

  • 绝对帧精度
  • fastest
  • 最小数据获取

重命名旧的 <Video><Audio> 标签

🌐 Renaming old <Video> and <Audio> tags

我们希望名为 <Video><Audio> 的标签成为用户的最佳选择,因为用户会首先选择它们。

🌐 We want the tags that are called <Video> and <Audio> to be the best choice for users, because users will reach for those first.

因此,我们正在重命名旧标签:

🌐 Therefore, we are renaming the old tags:

这反映了新的标签是基于 HTML5 的 <video><audio> 标签的事实。

🌐 This reflects the fact that the new tags are based on the HTML5 <video> and <audio> tags.

我正在使用哪个标签?

🌐 Which tag am I using?

旧标签是从 remotion 包导入的,新标签是从 @remotion/media 包导入的。

🌐 The old tags are imported from the remotion package, the new tags are imported from the @remotion/media package.

我们为什么要重命名标签?

🌐 Why are we renaming the tags?

用户和人工智能直观上会首先选择 <Video><Audio>,因为它们最容易找到。由于这个原因,我们希望确保最佳默认选项是最容易找到的那个。

🌐 Users and AIs are intuitively going to reach for <Video> and <Audio> first, because they are the easiest to find.
Because of this, we want to make sure the best default is the one that is easiest to find.

我应该迁移到 @remotion/media 吗?

🌐 Should I migrate to @remotion/media?

目前,我们仍然建议对视频使用 <OffthreadVideo>,对音频使用 <Html5Audio>@remotion/media 仍处于实验阶段,但一旦稳定,我们将推荐它作为默认选项。

🌐 Currently, our recommendation is still to use <OffthreadVideo> for videos and <Html5Audio> for audio.
@remotion/media is still experimental, but once it is stable, we will recommend it as the default.

参见:视频标签比较

🌐 See: Comparison of video tags