|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IPlayer
The player service command packet.
| Nested Class Summary | |
|---|---|
static class |
IPlayer.Stub
Local-side IPC implementation stub class. |
| Method Summary | |
|---|---|
int |
getPlaybackState()
Returns the playback state. |
int |
getPosition()
Returns current position in millis of the playback. |
void |
pause()
Pauses the player, or resumes playback if the player was paused. |
void |
play(String file,
int origin,
int initialSeekMillis)
Plays given file. |
boolean |
seek(int position)
Seeks to given position. |
void |
stop()
Stops playback. |
| Methods inherited from interface android.os.IInterface |
|---|
asBinder |
| Method Detail |
|---|
void pause()
throws RemoteException
RemoteException
void play(String file,
int origin,
int initialSeekMillis)
throws RemoteException
file - Absolute file name which to play.origin - the origin, ordinal of the TrackOriginEnum enum.initialSeekMills - start playback here. Ignored when the stream is not
seekable.
RemoteException
void stop()
throws RemoteException
RemoteException
boolean seek(int position)
throws RemoteException
position - Seek to this position in milliseconds.
RemoteException
int getPlaybackState()
throws RemoteException
RemoteException
int getPosition()
throws RemoteException
RemoteException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||