enableAlphaChannelVideoEncoder method
- 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!
enable
Enable video encoder alpha channel support, off by default.alphaLayout
Specify the layout position of the alpha channel data.channel
Publish stream channel.
Implementation
Future<void> enableAlphaChannelVideoEncoder(
bool enable, ZegoAlphaLayoutType alphaLayout,
{ZegoPublishChannel? channel}) async {
return await ZegoExpressImpl.instance
.enableAlphaChannelVideoEncoder(enable, alphaLayout, channel: channel);
}