EpMedia icon indicating copy to clipboard operation
EpMedia copied to clipboard

EpEditor.exec()之类的事件监听回调onFailure()能否增加一个参数log

Open wuxinggege008 opened this issue 5 years ago • 1 comments

EpEditor.execCmd(cmd, 0, new OnEditorListener() { @Override public void onSuccess() { //Log.i("裁剪视频", " 成功!"); Logger.i(TAG + "裁剪视频 成功!"); createVideoJpeg(outputVideoPath);

            try {
                createVideoGif();
            } catch (Exception e) {
                Logger.i(TAG + "合成视频失败...");
                e.printStackTrace();
                failed(Constants.VideoFail.Fail4);
                try {
                    sendErrorInfoToBackService("合成视频失败:状态码 " + Constants.VideoFail.Fail4 + "\n" + e.getMessage().toString());
                } catch (Exception e1) {
                    e1.printStackTrace();
                }
            }
        }

        @Override
        public void onFailure() {
            Logger.e(TAG + "裁剪视频: 失败!");
            //Log.i("裁剪视频", " 失败!");
            failed(Constants.VideoFail.Fail5);
            try {
                sendErrorInfoToBackService("视频裁剪失败:状态码 " + Constants.VideoFail.Fail5);
            } catch (Exception e1) {
                e1.printStackTrace();
            }
        }

        @Override
        public void onProgress(float progress) {
            Logger.i(TAG + "裁剪视频: 进度 " + (progress * 100) + " %");
            //Log.i("裁剪视频", " 进度 " + (progress * 100) + " %");
            progress(progress * 100);
        }
    });

目前代码中只能根据操作来定位问题,但发出去的版本无法看到日志,定位问题很困难,具体也不知道是什么错误 不知道大佬能不能增加这个log

wuxinggege008 avatar Mar 21 '19 02:03 wuxinggege008

还有就是通过命令去获取文件的信息没法返回

bean-liu avatar Aug 21 '19 10:08 bean-liu