Reorganized and cleaned up the playback service a bit. Added the ability to fade a song in/out on play/pause.
This commit is contained in:
parent
b32feb38fe
commit
257791eff6
13 changed files with 324 additions and 174 deletions
|
|
@ -1,36 +0,0 @@
|
|||
package com.kabouzeid.gramophone.model;
|
||||
|
||||
/**
|
||||
* @author Karim Abou Zeid (kabouzeid)
|
||||
*/
|
||||
public class MusicRemoteEvent {
|
||||
public static final int PLAY = 0;
|
||||
public static final int PAUSE = 1;
|
||||
public static final int RESUME = 2;
|
||||
public static final int STOP = 3;
|
||||
public static final int NEXT = 4;
|
||||
public static final int PREV = 5;
|
||||
public static final int TRACK_CHANGED = 6;
|
||||
|
||||
public static final int SONG_COMPLETED = 7;
|
||||
public static final int QUEUE_COMPLETED = 8;
|
||||
|
||||
public static final int SERVICE_CONNECTED = 9;
|
||||
public static final int SERVICE_DISCONNECTED = 10;
|
||||
|
||||
public static final int STATE_SAVED = 11;
|
||||
public static final int STATE_RESTORED = 12;
|
||||
|
||||
public static final int SHUFFLE_MODE_CHANGED = 13;
|
||||
public static final int REPEAT_MODE_CHANGED = 14;
|
||||
|
||||
private final int action;
|
||||
|
||||
public MusicRemoteEvent(int action) {
|
||||
this.action = action;
|
||||
}
|
||||
|
||||
public int getAction() {
|
||||
return action;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue