【FAQ】Video Editing Service Frequently Asked Questions and Answers

Q1 Problem description

1. When accessing stickers and other materials, what should I do if the prompt "Network is abnormal, please try again"?

2. When using the AI ​​ability, it prompts "errorCode: 20124 errorMsg: Method not Allowed"?

solution

Please do the following checks:

1. Check whether the authentication information has been set in the code. If it is not set, it can be set through api_key or Access Token. For details, please refer to the " 1. Setting App Authentication Information" section .

2. Check whether the video editing service switch is turned on. If it is not enabled, you can choose to enable it in the "Developer Alliance" or "AppGallery Connect". For details, please refer to the " Enabling Related Services " section. After it is enabled, it will be affected by cache and so on, and it will take a while to take effect.

3. Check whether the signature certificate fingerprint information of the application is consistent with the signature certificate fingerprint configuration of the application in AppGallery Connect. If it is inconsistent or not configured, you can configure it according to the "Configuring the signature certificate fingerprint" section. Affected by the cache, the newly configured signature It takes a while for the certificate to take effect.

4. Check whether the material data has been arranged, please refer to the chapter "Arranging Materials" .

5. When using the "dynamic picture, one-click smile" function in the AI ​​ability, you need to complete the relevant function application. For details, please refer to the " Function Application and Quota Adjustment " chapter.

6. If the problem persists, please provide your detailed log and AppId.

Q2 Problem Description

When obtaining resource data such as stickers and templates, the column name displays 101 or blank.

solution

Please do the following and try again:

1. Clear column information in the console;

2. Initialize the column;

3. Uninstall the application and reinstall it for testing.

Console path:

Log in to the AppGallery Connect website, click "My Projects", select your project to enter, and select "Video Editing Services" -> "App Content Operations" -> "Column Arrangement" under "Growth" in the left navigation bar.

Q3 Problem description

When using the AI ​​algorithm-specific filter in the Atomic Ability SDK, the callback cannot be received and the following information is printed on the console:

E/HVEExclusiveFilter: Failed resolution of: Lcom/huawei/hms/videoeditor/ai/imageedit/AIImageEditAnalyzerSetting$Factory;

Cause Analysis

When using the exclusive filter AI ability, you need to add the dependency of the corresponding ability, if not added, this error will be prompted.

solution

According to the Integrating HMS Core SDK guide, integrate the exclusive filter dependency.

Exclusive filter dependencies:

// 专属滤镜
    implementation 'com.huawei.hms:video-editor-ai-common:1.9.0.300'
    implementation 'com.huawei.hms:video-editor-ai-imageedit:1.3.0.300'
    implementation 'com.huawei.hms:video-editor-ai-imageedit-model:1.3.0.300'

Please click on the link to view related guidelines .

Q4 Problem Description

Using the Atomic Ability SDK, after adding the video file to the swimlane, when the getSize and getPosition methods are called, the values ​​cannot be obtained and null is returned.

Cause Analysis

When the get method is called, the resource location has not been calculated yet.

solution

After adding video files to the swimlane, you can use the HuaweiVideoEditor#seekTimeLine method to trigger resource position calculation. seekTimeLine is an asynchronous operation, and Size and Position can be obtained or set in the callback.

The following examples are for reference:

// 在添加资源之前,需要指定预览窗口
HuaweiVideoEditor.setDisplay(videoContentLayout);

To specify the preview window, refer to the guide [ Initialize the HuaweiVideoEditor operating environment ].

// 向视频泳道中添加资源
HVEVideoAsset mHveVideoAsset= hveVideoLane.appendVideoAsset(sourceFile.getAbsolutePath());
mEditor.seekTimeLine(0, new HuaweiVideoEditor.SeekCallback() {
    @Override
    public void onSeekFinished() {
        Log.d(TAG, "onSeekFinished: size:" + mHveVideoAsset.getSize() + ", position: " + mHveVideoAsset.getPosition());    }
});

Learn more details>>

Visit the official website of Video Editing Service Alliance

Obtain video editing service development guidance documents

Visit the official website of HMS Core Alliance

Obtain the HMS Core development guidance document

Follow us and learn about the latest technical information of HMS Core for the first time~

{{o.name}}
{{m.name}}

Guess you like

Origin my.oschina.net/HMSCore/blog/8816287