开发者社区> 问答> 正文

阿里云视频直播sdk美颜无效

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都成功调用了对应的方法,也没有报错

展开
收起
旺崽崽 2018-11-05 16:18:07 6565 0
1 条回答
写回答
取消 提交回答
  • 发现问题了,开发文档里面从上往下看,先说到美颜回调setCustomFilter和人脸识别回调setCustomDetect,后面才提到mAlivcLivePusher.init(mContext, mAlivcLivePushConfig);初始化,没多想,就先setCustomFilter,setCustomDetect了,再init,所以无效
    解决:mAlivcLivePusher.init(mContext, mAlivcLivePushConfig);初始化后,才setCustomFilter,setCustomDetect,美颜OK

    2019-07-17 23:12:04
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
从 SDK 到编解码:视频直播架构解析 立即下载
跨平台的云服务SDK需要什么 立即下载
一个跨平台的云服务SDK需要什么 立即下载