From a9302d3e541d463fa802eca4b864bf24f50bdaf9 Mon Sep 17 00:00:00 2001 From: zlzw <583819556@qq.com> Date: Thu, 22 Sep 2022 15:25:48 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4FaceUnity=E7=9A=84=E6=97=A5?= =?UTF-8?q?=E5=BF=97=E8=BE=93=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/yunbao/faceunity/FaceManager.java | 18 +++--------------- .../com/yunbao/faceunity/utils/FURenderer.java | 4 ++-- 2 files changed, 5 insertions(+), 17 deletions(-) diff --git a/FaceUnity/src/main/java/com/yunbao/faceunity/FaceManager.java b/FaceUnity/src/main/java/com/yunbao/faceunity/FaceManager.java index e81d12597..9c31a0e86 100644 --- a/FaceUnity/src/main/java/com/yunbao/faceunity/FaceManager.java +++ b/FaceUnity/src/main/java/com/yunbao/faceunity/FaceManager.java @@ -60,20 +60,8 @@ public class FaceManager implements SensorEventListener { } FaceUnityData.mApplication = context; OkHttpUtils.getInstance().init(context, false); - FURenderManager.setCoreDebug(FULogger.LogLevel.OFF); - FURenderManager.setKitDebug(FULogger.LogLevel.OFF); - FURenderManager.registerFURender(context, Authpack.A(), new OperateCallback() { - @Override - public void onSuccess(int i, @NonNull String s) { - isInit = true; - } - - @Override - public void onFail(int i, @NonNull String s) { - - } - }); - + FURenderer.getInstance().setup(context); + isInit=true; } private FURenderer mFURenderer; @@ -82,7 +70,7 @@ public class FaceManager implements SensorEventListener { * 配置美颜SDK */ public void initFURender(Context context) { - FURenderer.getInstance().setup(context); + mFURenderer = FURenderer.getInstance(); mFURenderer.setInputTextureType(FUInputTextureEnum.FU_ADM_FLAG_COMMON_TEXTURE); mFURenderer.setCameraFacing(CameraFacingEnum.CAMERA_FRONT); diff --git a/FaceUnity/src/main/java/com/yunbao/faceunity/utils/FURenderer.java b/FaceUnity/src/main/java/com/yunbao/faceunity/utils/FURenderer.java index 313aed9eb..9abb0d32b 100644 --- a/FaceUnity/src/main/java/com/yunbao/faceunity/utils/FURenderer.java +++ b/FaceUnity/src/main/java/com/yunbao/faceunity/utils/FURenderer.java @@ -87,8 +87,8 @@ public class FURenderer extends IFURenderer { */ @Override public void setup(Context context) { - FURenderManager.setKitDebug(FULogger.LogLevel.TRACE); - FURenderManager.setCoreDebug(FULogger.LogLevel.DEBUG); + FURenderManager.setKitDebug(FULogger.LogLevel.OFF); + FURenderManager.setCoreDebug(FULogger.LogLevel.OFF); FURenderManager.registerFURender(context, Authpack.A(), new OperateCallback() { @Override public void onSuccess(int i, @NotNull String s) {