Skip to content

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

License

Notifications You must be signed in to change notification settings

HMS-Core/hms-audio-demo

Repository files navigation

Audio Kit

Table of Contents

Introduction

AudioKit Android sample code encapsulates APIs of the HUAWEI Audio Kit. It provides many sample programs for your reference or usage. The following describes packages of Android sample code.

HwAudioPlayerManager:Manages playback operations such as play, pause, skip back, skip next, stop, and drag the progress bar. HwAudioPlayItem:An audio data class. The data includes the album name, artist, whether an audio is online, and others. HwAudioQueueManager:Manages audio queues, for example, deletes a specified audio from a queue (playlist).

Getting Started

  1. Check whether the Android studio development environment is ready. Open the sample code project directory with file "build.gradle" in Android Studio. Run TestApp on your divice or simulator which have installed latest Huawei Mobile Service(HMS).
  2. Register a HUAWEI account.
  3. Create an app and configure the app information in AppGallery Connect. See details: HUAWEI Audio Service Development Preparation
  4. To build this demo, please first import the demo in the Android Studio (3.x+).
  5. Run the sample on your Android device or emulator.

Supported Environments

Android SDK Version >= 19 and JDK version >= 1.8 is recommended.

Result

License

AudioKitDemo is licensed under the [Apache License, version 2.0](http://www.apache.org/licenses/LICENSE-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.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages