# 垫片推流 (/zh-CN/api-reference/rtc/cpp-all-platforms/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; ``` 你可以调用该方法,在发布视频流时用自定义图片替代当前的视频画面。启用该功能后,可通过 `options` 参数设置用于替代的视频图片。若关闭该功能,远端用户将看到你发布的原始视频画面。 ### 调用时机 [#调用时机] 请在加入频道后调用该方法。 ### 参数 [#参数] 是否用自定义图片替代当前视频画面: - true:用自定义图片替代当前视频画面。 - false:(默认)不替代当前视频画面。 图片配置,详见 [ImageTrackOptions](/zh-CN/api-reference/rtc/cpp-all-platforms/class-imagetrackoptions)。 ### 返回值 [#返回值] - 0:方法调用成功。 - < 0:方法调用失败。详见[错误码](/zh-CN/api-reference/rtc/error-code)了解详情和解决建议。 ### 所属接口类 [#所属接口类] - [IRtcEngine](/zh-CN/api-reference/rtc/cpp-all-platforms/rtc-interface-class#class_irtcengine)