RealtimeKit 的水印功能允许您在录制中包含一张图片作为水印。要添加水印,请在 Start Recording API 的 video_config 中配置以下参数。
| 参数 | 说明 |
|---|---|
| URL | 指定水印图片的 URL |
| Position | 指定水印的位置,您可以灵活选择左上 (left top)、右上 (right top)、左下 (left bottom) 或右下 (right bottom)。默认位置为左上 (left top)。 |
| Size | 指定水印的高度和宽度(以像素为单位)。 |
{
"video_config": {
"watermark": {
"url": "https://test.io/images/client-logos-6.webp",
"position": "left top",
"size": {
"height": 20,
"width": 100
}
}
}
}