11-05 15:44:19.723 11817-11817/com.example.administrator.starcloudlive D/AlivcLivePusher: AlivcLivePusher-->setBeautyOn beautyOn : true
11-05 15:44:19.723 11817-11817/com.example.administrator.starcloudlive D/LivePusherJNI: getPusherHandler 515278367872
11-05 15:44:19.726 11817-11817/com.example.administrator.starcloudlive D/AlivcLivePusher: AlivcLivePusher-->setBeautyWhite white: 96
11-05 15:44:19.726 11817-11817/com.example.administrator.starcloudlive D/LivePusherJNI: getPusherHandler 515278367872
11-05 15:44:19.729 11817-11817/com.example.administrator.starcloudlive D/White: White:96 true
11-05 15:44:19.729 11817-11817/com.example.administrator.starcloudlive D/AlivcLivePusher: AlivcLivePusher-->setBeautyOn beautyOn : true
11-05 15:44:19.730 11817-11817/com.example.administrator.starcloudlive D/LivePusherJNI: getPusherHandler 515278367872
11-05 15:44:19.737 11817-11817/com.example.administrator.starcloudlive D/beautysetting: White:100
11-05 15:44:19.738 11817-11817/com.example.administrator.starcloudlive D/AlivcLivePusher: AlivcLivePusher-->setBeautyOn beautyOn : true
11-05 15:44:19.738 11817-11817/com.example.administrator.starcloudlive D/LivePusherJNI: getPusherHandler 515278367872
11-05 15:44:19.740 11817-11817/com.example.administrator.starcloudlive D/AlivcLivePusher: AlivcLivePusher-->setBeautyWhite white: 100
11-05 15:44:19.740 11817-11817/com.example.administrator.starcloudlive D/LivePusherJNI: getPusherHandler 515278367872
11-05 15:44:19.741 11817-11817/com.example.administrator.starcloudlive D/White: White:100 true
11-05 15:44:19.742 11817-11817/com.example.administrator.starcloudlive D/AlivcLivePusher: AlivcLivePusher-->setBeautyOn beautyOn : true
11-05 15:44:19.743 11817-11817/com.example.administrator.starcloudlive D/LivePusherJNI: getPusherHandler 515278367872
mAlivcLivePusher.setBeautyOn(true);
mAlivcLivePusher.setBeautyWhite(value);// 美白范围0-100
预览,推流,观看都没有效果,Debug信息如上,AlivcLivePusher都成功调用了对应的方法,也没有报错
发现问题了,开发文档里面从上往下看,先说到美颜回调setCustomFilter和人脸识别回调setCustomDetect,后面才提到mAlivcLivePusher.init(mContext, mAlivcLivePushConfig);初始化,没多想,就先setCustomFilter,setCustomDetect了,再init,所以无效
解决:mAlivcLivePusher.init(mContext, mAlivcLivePushConfig);初始化后,才setCustomFilter,setCustomDetect,美颜OK
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。