# 垫片推流 (/zh-CN/api-reference/rtc/unreal-cpp/video/video-prenpro/image-source)
> For AI agents: see the complete documentation index at [llms.txt](/llms.txt).
## enableVideoImageSource [#enablevideoimagesource]
设置是否开启垫片推流功能。
```cpp
virtual int enableVideoImageSource(bool enable, const ImageTrackOptions& options) = 0;
```
在发布视频流时,你可以调用该方法使用自定义图片来替代当前发布的视频流画面进行推流。
开启该功能后,你可以通过 [ImageTrackOptions](/zh-CN/api-reference/rtc/unreal-cpp/class-imagetrackoptions) 参数自定义垫片图片;在你关闭垫片功能之后,远端用户看到的依旧是当前你发布的视频流画面。
### 调用时机 [#调用时机]
建议在加入频道后调用该方法。
### 调用限制 [#调用限制]
无。
### 参数 [#参数]
是否开启垫片推流:
- `true`:开启垫片推流。
- `false`:(默认)关闭垫片推流。
垫片图片设置,详见 [ImageTrackOptions](/zh-CN/api-reference/rtc/unreal-cpp/class-imagetrackoptions)。
### 返回值 [#返回值]
- 0:方法调用成功。
- < 0:方法调用失败。详见[错误码](/zh-CN/api-reference/rtc/error-code)了解详情和解决建议。
### 所属接口类 [#所属接口类]
- [IRtcEngine](/zh-CN/api-reference/rtc/unreal-cpp/rtc-interface-class#class_irtcengine)