Alsa-nan / hms-audio-demo

HMS audio android sample code encapsulates APIs of the HUAWEI Audio Kit, which focuses on audio playback, audio effects and audio data.

Home Page:https://developer.huawei.com/consumer/en/hms/huawei-audiokit/?ha_source=hms1

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

HMS AudioKit Demo

Table of Contents

Introduction

The sample code encapsulates APIs of HUAWEI Audio Kit for Android with many sample projects for your reference. It provides the following classes:

HwAudioPlayerManager: Controls audio playback (play, pause, skip back, skip next, stop, and drag the progress bar).

HwAudioPlayItem: Audio data class. Audio data includes the album name, artist, whether an audio file is online, and others.

HwAudioQueueManager: Manages audio queues, for example, deletes specified audio from a queue (playlist).

Getting Started

  1. Check Android studio environment. Open a sample project with the file "build.gradle" in Android Studio.

  2. Register as a HUAWEI developer.

  3. Create an app and configure the app information in AppGallery Connect. For details please refer to Configuring App Information in AppGallery Connect

  4. Import the demo into Android Studio (3.0 and later) before building it.

  5. Run the test app on your Android device or an emulator.

Supported Environments

Android SDK:21 and later versions
JDK 1.8.211 and later versions

Result

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

HMS AudioKit Demo is licensed under the Apache License, version 2.0.

About

HMS audio android sample code encapsulates APIs of the HUAWEI Audio Kit, which focuses on audio playback, audio effects and audio data.

https://developer.huawei.com/consumer/en/hms/huawei-audiokit/?ha_source=hms1

License:Apache License 2.0


Languages

Language:Java 100.0%