A simple service for playing music in background.
More...
|
void | onCreate () |
|
void | onDestroy () |
|
IBinder | onBind (Intent intent) |
|
int | onStartCommand (Intent intent, int flags, int startId) |
|
void | stop () |
| stop current music play
|
|
void | play () |
| start current music play
|
|
void | pause () |
| pause current music play
|
|
void | seekTo (long pos) |
| Seeks to position.
|
|
void | setMusicUri (Uri uri) |
| change music uri
|
|
int | getDuration () |
| returns the duration of the current track
|
|
int | getCurrentPosition () |
| return the current position in the playing track
|
|
void | removeServiceListener (BackgoundMusicServiceListener listener) |
|
void | addServiceListener (BackgoundMusicServiceListener listener) |
|
|
static final String | URIS = "URIS_PARAM" |
|
A simple service for playing music in background.
- Author
- Tobias Schoene (openbit)
◆ getCurrentPosition()
int de.yaacc.musicplayer.BackgroundMusicService.getCurrentPosition |
( |
| ) |
|
return the current position in the playing track
- Returns
- the position
◆ getDuration()
int de.yaacc.musicplayer.BackgroundMusicService.getDuration |
( |
| ) |
|
returns the duration of the current track
- Returns
- the duration
◆ seekTo()
void de.yaacc.musicplayer.BackgroundMusicService.seekTo |
( |
long |
pos | ) |
|
Seeks to position.
- Parameters
-
◆ setMusicUri()
void de.yaacc.musicplayer.BackgroundMusicService.setMusicUri |
( |
Uri |
uri | ) |
|
change music uri
- Parameters
-
The documentation for this class was generated from the following file:
- /github/workspace/yaacc/src/main/java/de/yaacc/musicplayer/BackgroundMusicService.java