Android Open Source - MusicPlayer Playable






From Project

Back to project page MusicPlayer.

License

The source code is released under:

MIT License

If you think the Android project MusicPlayer listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.dsvoronin.musicplayer;
//from   www. j  ava  2  s. co  m
import android.os.Parcelable;

/**
 * An interface for song model
 */
public interface Playable extends Parcelable {

    /**
     * some id to identify song in list
     */
    public int getId();

    /**
     * song name to be displayed in notification. Like "Artist - Title"
     */
    public String getName();

    /**
     * must be valid link to audio file in web
     */
    public String getUrl();

    /**
     * track duration in seconds if available
     */
    public int getDurationSec();

}




Java Source Code List

com.dsvoronin.musicplayer.AbstractSongPicker.java
com.dsvoronin.musicplayer.DefaultSongPicker.java
com.dsvoronin.musicplayer.InitState.java
com.dsvoronin.musicplayer.MusicPlayerService.java
com.dsvoronin.musicplayer.OnPlaybackStartEvent.java
com.dsvoronin.musicplayer.OnPlaybackStopEvent.java
com.dsvoronin.musicplayer.PausedState.java
com.dsvoronin.musicplayer.Playable.java
com.dsvoronin.musicplayer.PlayerState.java
com.dsvoronin.musicplayer.PlayingState.java
com.dsvoronin.musicplayer.PrepareState.java
com.dsvoronin.musicplayer.ReadyState.java
com.dsvoronin.musicplayer.ShuffleSongPicker.java
com.dsvoronin.musicplayer.SongPicker.java