Beauty
Function description
During a call or live broadcast, sometimes it is necessary to achieve natural beauty effects, such as whitening, dermabrasion, big eyes, or stickers, etc. Cloudhub provides the following methods to achieve natural beauty effects.
Before you start, make sure that you have implemented basic real-time audio and video functions in your project. For details, see Start Audio and Video Call or Start Interactive Live Broadcast.
Basic beauty
- The functions include whitening, microdermabrasion and ruddy.
API reference
Android
- Need the corresponding plug-in libbasicbeauty.so.
- Please quote libbasicbeauty.so in the project.
- Please call this method after successfully joining the channel setBeautyEffectOptions
Electron
- Download cloudhub-electron-sdk dependency.
- Please call this method after successfully joining the channel setBeautyEffectOptions
iOS
- Need the corresponding SDK basicbeauty.framework.
- Please quote the SDK in the project.
- Please call this method after successfully joining the channel setBeautyEffectOptions
Advanced beauty
- Before you start, please contact us to help you activate it.
- Features include face-lifting, big eyes, sharpening, and stickers (princess mask, black cat glasses, cartoon boy, cartoon girl, funny baby, Christmas elk, etc.).
- The advanced beauty dynamic library also contains basic beauty functions, so there is no need to integrate additional basic beauty dynamic library files. Still call setBeautyEffectOptions to achieve the basic beauty function.
API reference
Android
- Need the corresponding resource files cloudhubres002 and cloudhubres003, placed in the assets file directory.
- The corresponding plug-ins libvideoeffect.so and effectAAR-release.aar are required.
- Please quote libvideoeffect.so and effectAAR-release.aar in the project.
- Please call this method after successfully joining the channel setVideoeffectOptions
Electron
- Home page configuration
package.json
configuration parameteradvanced_beauty:true
, - Download cloudhub-electron-sdk dependencies
- Please call this method after successfully joining the channel setVideoEffectOptions
iOS
- Need the corresponding SDK effect-sdk.framework and videoeffect.framework.
- Please quote the SDK in the project.
- Please call this method after successfully joining the channel setVideoEffectOptions