Skip to content

boybeak/BeMusic

Repository files navigation

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);

About

A local music player

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages