enableAlphaChannelVideoEncoder method
Future<void>
enableAlphaChannelVideoEncoder(
- bool enable,
- ZegoAlphaLayoutType alphaLayout, {
- ZegoPublishChannel? channel,
Enable video encoder alpha channel support.
Available since: 3.4.0 Description: Enable the alpha channel support of the video encoder on the stream publishing end, and encode the split video body for streaming. Use cases: Scenes where the object in the video needs to be separated from the background, such as mixed reality, multi-person interaction scenes, and so on. When to call: After creating the engine. Note: This function is only available in ZegoExpressVideo SDK!
enableEnable video encoder alpha channel support, off by default.alphaLayoutSpecify the layout position of the alpha channel data.channelPublish stream channel.
Implementation
Future<void> enableAlphaChannelVideoEncoder(
bool enable, ZegoAlphaLayoutType alphaLayout,
{ZegoPublishChannel? channel}) async {
return await ZegoExpressImpl.instance
.enableAlphaChannelVideoEncoder(enable, alphaLayout, channel: channel);
}