Image Source

enableVideoImageSource

Sets whether to replace the current video with an image when publishing video streams.

public abstract int enableVideoImageSource(boolean enabled, ImageTrackOptions options);

You can call this method when publishing video streams to replace the current video with a custom image. After enabling this feature, you can use the options parameter to set the image to be used. When the feature is disabled, remote users will see your published video stream.

Timing

Call this method after joining a channel.

Parameters

enabled
Whether to replace the current video with a custom image:
  • true: Replace the current video with a custom image.
  • false: (Default) Do not replace the current video.
options
Image configuration. See ImageTrackOptions.

Return Values

  • 0: Success.
  • < 0: Failure.