mirror of
https://github.com/gabehf/tempus.git
synced 2026-03-13 01:20:27 -07:00
Preparation to music streaming - Picking from Gelli
This commit is contained in:
parent
a28ad27288
commit
820f783d01
18 changed files with 1921 additions and 87 deletions
|
|
@ -0,0 +1,39 @@
|
|||
package com.cappielloantonio.play.service.playback;
|
||||
|
||||
import com.cappielloantonio.play.model.Song;
|
||||
|
||||
public interface Playback {
|
||||
void setDataSource(Song song);
|
||||
|
||||
void queueDataSource(Song song);
|
||||
|
||||
void setCallbacks(PlaybackCallbacks callbacks);
|
||||
|
||||
boolean isReady();
|
||||
|
||||
boolean isPlaying();
|
||||
|
||||
void start();
|
||||
|
||||
void pause();
|
||||
|
||||
void stop();
|
||||
|
||||
int getProgress();
|
||||
|
||||
int getDuration();
|
||||
|
||||
void setProgress(int progress);
|
||||
|
||||
void setVolume(int volume);
|
||||
|
||||
int getVolume();
|
||||
|
||||
interface PlaybackCallbacks {
|
||||
void onTrackStarted();
|
||||
|
||||
void onTrackWentToNext();
|
||||
|
||||
void onTrackEnded();
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue