Code Monkey home page Code Monkey logo

hms-audio-demo's Introduction

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.

hms-audio-demo's People

Contributors

mike-mei avatar muronglove avatar tiantian0303 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.