@remotion/player
使用 Remotion Player,您可以在任何 React 应用中嵌入 Remotion 视频,并在运行时自定义视频内容。
模板
以下模板包括 Player 和 Lambda 渲染,并是构建视频应用的良好起点:
API
指南
Installation
Install the Player into your project
Examples
Code samples for various scenarios
Sizing
Setting the size of the Player
Autoplay
Dealing with browser autoplay policies
Display time
Write a custom component for displaying the current time
Preloading assets
Make assets ready to play when they appear in the video
Best practices
Checklist of correct implementation
Buffer state
Pause the Player while assets are loading
Avoiding flickers
Troubleshooting for flickers due to unloaded assets
Premounting
Mount components earlier to allow them to load
演示
播放视频,然后调整视频下方的参数。
Enter your name:
Select your favorite color: