文档管理中心
我的
API参考音频编辑服务Androidcom.huawei.hms.audioeditor.sdkInterface SummaryOnTransformCallBack

OnTransformCallBack

展开

Interface Info

public interface OnTransformCallBack

音频格式转换的回调。

Public Method Summary

展开

Qualifier and Type

Method Name and Description

void

onCancel()

音频格式转换取消回调。

void

onFail(int errorCode, String errorMsg)

音频格式转换失败回调。

void

onProgress(int progress)

音频格式转换进度回调。

void

onSuccess(String outAudioPath)

音频格式转换成功回调。

Public Methods

onCancel

展开

Method

void onCancel()

音频格式转换取消回调。

onFail

展开

Method

void onFail(int errorCode, String errorMsg)

音频格式转换失败回调,接收错误码和错误信息。

Parameters
展开

Name

Description

errorCode

失败错误码。详细信息请参见错误码。

errorMsg

失败错误信息,可根据此信息进行问题定位。

onProgress

展开

Method

void onProgress(int progress)

音频格式转换进度回调,接收转换进度。

Parameters
展开

Name

Description

progress

当前进度。取值范围:[0, 100]。

onSuccess

展开

Method

void onSuccess(String outAudioPath)

音频格式转换成功回调,接收转码成功的音频路径。

Parameters
展开

Name

Description

outAudioPath

返回转码成功音频的路径。