hms-video-editor-demo icon indicating copy to clipboard operation
hms-video-editor-demo copied to clipboard

HUAWEI Video Editor Kit provides full video editing functions like video import/export, editing and rendering. This sample code is used to describe how to integrate the Video Editor Kit SDK.

HUAWEI Video Editor Kit Sample

English | 中文

Table of Contents

  • Introduction
  • Project directory structure
  • Running Procedure
  • Supported environment
  • License

Introduction

Huawei Video Editor Kit (Video Editor Kit) provided by Huawei to quickly build video editing capabilities. It provides two integration modes.

  • Video editor UI SDK, which provides product-level UIs and easy integration.

  • Video editor atomic capability SDK, which provides hundreds of underlying capability interfaces, including multiple AI algorithm capability interfaces, which can be flexibly selected based on service scenarios.

  • Screen recorder demo provide basic usage of screen recording. There are functions demonstrating usage of start/stop recording and setting configuration.

Both modes provide one-stop video editing capabilities, such as import, editing, rendering, export, and media resource management. These two modes provide high-performance, easy-to-use, and highly compatible interfaces, helping you easily build applications.

Project directory structure

|-- com.huawei.videoeditorkit.videoeditdemo
	|--sdkdemo  atomic capability SDK demo
	|--uidemo   UI SDk demo
	|--screenrecorddemo  Screen Recorder SDK Demo 

Running Procedure

  • Clone the code base to the local host.

  • If you haven't already registered as a developer, register and create an app on AppGalleryConnect.

  • Obtain the agconnect-services.json file from HUAWEI Developers.

  • Place the agconnect-services.json file in the root directory of the demo.

  • If you need to use cloud-side service capabilities, you need to use the api_key value in agconnect-services.json to call MediaApplication.getInstance().setApiKey(String apiKey) during application initialization.

  • Compile and run on an Android device or emulator.

Note:

The package name in this project cannot be used to apply for agconnect-services.json. You can use a customized package name to apply for agconnect-services.json. You only need to change applicationId in application-level build.gradle to the same package name as the applied agconnect-services.json to experience Video Editor Kit services.

Supported Environment

Android SDK 21 or later and JDK 1.8 or later are recommended.

Question or issues

If you want to evaluate more about HMS Core, r/HMSCore on Reddit is for you to keep up with latest news about HMS Core, and to exchange insights with other developers.

If you have questions about how to use HMS samples, try the following options:

  • Stack Overflow is the best place for any programming questions. Be sure to tag your question with huawei-mobile-services.
  • Huawei Developer Forum HMS Core Module is great for general questions, or seeking recommendations and opinions.

If you run into a bug in our samples, please submit an issue to the Repository. Even better you can submit a Pull Request with a fix.

License

This sample code has obtained Apache 2.0 license.