//美颜相关 api
api 'com.github.vhall.android.base:vhall-beautify-faceunity:1.1.3'
//美颜demoUI 建议自己按照自己需求实现
api 'com.github.vhall.android.library:vhall-beautify-kit-support:1.1.0'
//项目的gradle新增 美颜api必须添加
allprojects {
repositories {
mavenCentral()
//高级美颜
maven {url 'http://maven.faceunity.com/repository/maven-public/'}
}}
VHBeautifyKit.getInstance().setBeautifyEnable(true)
注意:
//创建视频直播
VHLivePushConfig config = new VHLivePushConfig(param.pixel_type);
//不设置 横屏美颜瘦脸没有效果
config.screenOri = param.screenOri;//横竖屏设置 重要
VHBeautifyKit.getInstance().isBeautifyAuthEnable()