提交工单
咨询集成、功能及报价等问题
ZEGO provides basic face beautification features such as skin tone enhancement, skin smoothing, cheek blusher, and image sharpening, which are commonly used in video calls and live streaming scenarios, making you look the way you want.
You can enable the basic face beautification features based on your needs and set the intensity as wanted.
The following table lists the browsers that support the face beautification feature:
Browser | Supported version |
---|---|
Chrome | 65 or later |
Firefox | 70 or later |
Safari | 12 ~ 14 and 15.2 or later |
Edge | 80 or later |
Mobile browser | Not supported |
Before you begin, make sure:
setEffectsBeauty
method to enable the face beautification.ZegoEffectsBeautyParam
class to set the intensity as needed.The value range for the four features is [0, 100], and the default value is 50. As this value gets larger, the intensity gets stronger.
startPublishingStream
method after the face beautification feature is enabled.MediaStream
, and the effects won't be affected when you call the useVideoDevice
and replaceTrack
methods.zg.setEffectsBeauty(localStream,false)
method to disable it when you are done using it.destroyStream
method. To just disable the face beautification, call the zg.setEffectsBeauty(localStream,false)
method.// After calling the createZegoStream method, you need to wait for the ZEGO server to return the local stream object before any further operation.
const localStream = await this.zg.createZegoStream();
const enable = true;
// Enable the face beautification.
await zg.setEffectsBeauty(
localStream,
enable,
{
sharpenIntensity: 50,
whitenIntensity: 50,
rosyIntensity: 50,
smoothIntensity: 50
}
)
// Start the stream publishing.
zg.startPublishingStream("stream1", localStream);
// Disable the face beautification.
await zg.setEffectsBeauty(localStream, false);