Added Media.seekTo(int milliseconds);

This commit is contained in:
kernelsandirs
2011-05-03 21:27:08 -07:00
parent 58ecac335b
commit b94eedaf07
4 changed files with 59 additions and 27 deletions
@@ -233,6 +233,15 @@ public class AudioPlayer implements OnCompletionListener, OnPreparedListener, On
}
}
/**
* Seek or jump to a new time in the track.
*/
public void seekToPlaying(int milliseconds) {
if (this.mPlayer != null) {
this.mPlayer.seekTo(milliseconds);
}
}
/**
* Pause playing.
*/