运行时支持
@remotion/media-parser 可在浏览器、Node.js 和 Bun 中使用。
运行时版本
🌐 Runtime versions
需要以下最低版本:
🌐 The following minimum versions are required:
- Node.js:20.0.0
- Bun 1.0.0
- Chrome 111
- Edge 111
- Safari 16.4
- 火狐 128
特性检测
🌐 Feature detection
使用此方法检查运行时是否支持 parseMedia():
🌐 Use this to check if the runtime supports parseMedia():
const canUseMediaParser = typeof fetch === 'function' && typeof new ArrayBuffer().resize === 'function';WebCodecs 支持
🌐 WebCodecs support
WebCodecs 支持并不依赖于 @remotion/media-parser 本身,但如果你使用它来解码视频和音频,你:
🌐 WebCodecs support is not tied to @remotion/media-parser itself, but if you use it to decode video and audio, you :
- 谷歌浏览器 94
- Edge 94
- Firefox 130
- Safari - 技术预览
warning
Safari确实仅支持视频,但将在2025年晚些时候添加音频支持。最近更新于2025年5月9日。
另请参阅:我可以使用 WebCodecs 吗?
🌐 See also: Can I use WebCodecs?
另请参阅
🌐 See also