客户端渲染中的遥测
非常实验性的功能——随时可能出现漏洞和重大更改。
在 GitHub 上跟踪进度 并在 Discord 的 #web-renderer 通道中讨论。
客户端渲染具有遥测功能,它会为使用 @remotion/licensing 包执行的每次渲染发送一个事件。
Remotion 有一个许可证,它对个人和小公司是免费的,但对于大型公司则需要付费许可证,其价格由渲染数量决定。
🌐 Remotion has a license that makes it free for individuals and small companies but requires a paid license for bigger companies, whose price is determined by the amount of renders.
已发送信息
🌐 Sent information
发送以下信息:
🌐 The following information is sent:
- IP地址
- 域名(例如
https://remotion.dev) - 这个渲染是在生产中还是开发中
- 无论这个渲染是视频还是静态图片
不会收集有关渲染视频的内容或元数据的信息,也不会收集任何用户数据。
🌐 No information about the content or metadata of the video rendered, or any user data is collected.
遥测旨在尽可能少地收集数据,同时确保可追责性,并且如果配置了许可证密钥,可以方便公司跟踪其渲染次数。
🌐 The telemetry is designed to collect as little data as possible while ensuring accountability, and if configured with a license key makes it easy for companies to keep track of their render count.
设置许可证密钥
🌐 Setting a license key
如果你符合免费许可条件,则无需注册许可密钥。
通过 "free-license" 到 licenseKey 来禁用控制台中的任何警告,并声明你符合免费许可的条件。
🌐 If you qualify for the free license, you don't need to register for a license key.
Pass "free-license" to licenseKey to disable any warning in the console and declare your eligibility for the free license.
Declare eligibility for the free licenseimport {renderMediaOnWeb } from '@remotion/web-renderer'; awaitrenderMediaOnWeb ({composition ,inputProps : {},licenseKey : 'free-license', });
如果你拥有 Remotion 公司许可或企业许可,请访问 remotion.pro 并从“使用情况”选项卡获取你的许可证密钥。
🌐 If you have a Remotion Company License or Enterprise License, go to remotion.pro and get your license key from the "Usage" tab.
Set a license keyimport {renderMediaOnWeb } from '@remotion/web-renderer'; awaitrenderMediaOnWeb ({composition ,inputProps : {},licenseKey : 'rm_pub_abcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890', });
要跟踪客户端渲染,你应该使用公钥。
你现在可以在同一“使用情况”标签上跟踪你的使用情况。
🌐 For tracking client-side renders, you should use the public key.
You can now track your usage on the same Usage tab.
使用尚未与计费钩子。
你需要定期手动更新渲染次数以反映你的使用情况。