Giter Site home page Giter Site logo

bemusic's Introduction

BeMusic

It is a local music player, show you how to use MediaPlayer to make a simple MusicPlayer.

代码解析参见blog.md

Play Store地址:

BePlayer

Getting Start

你只需要关心的就是PlayManager这个类,这个类中,已经有了对播放状态对生命周期的维护,同时包括了对AudioFocus,ACTION_AUDIO_BECOMING_NOISY,锁屏等。具体见下图:

####实例化PlayManager

PlayManager.getInstance (context);

####几个重要的方法

public void dispatch(final Song song);
public void dispatch();
public void setRule (@NonNull Rule rule);
public void next();
public void previous ();
public void pause ();
public void seekTo (int position);

bemusic's People

Contributors

boybeak 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.