diff --git a/api/current.txt b/api/current.txt index 9070dfcf9524b..fb96770cccdff 100644 --- a/api/current.txt +++ b/api/current.txt @@ -22780,7 +22780,7 @@ package android.media { method public void releaseDrm() throws android.media.MediaPlayer.NoDrmSchemeException; method public void reset(); method public void restoreKeys(byte[]) throws android.media.MediaPlayer.NoDrmSchemeException; - method public void seekTo(int, int) throws java.lang.IllegalStateException; + method public void seekTo(long, int); method public void seekTo(int) throws java.lang.IllegalStateException; method public void selectTrack(int) throws java.lang.IllegalStateException; method public void setAudioAttributes(android.media.AudioAttributes) throws java.lang.IllegalArgumentException; diff --git a/api/system-current.txt b/api/system-current.txt index 02aed376d5a07..e0f9fc83bcb02 100644 --- a/api/system-current.txt +++ b/api/system-current.txt @@ -24616,7 +24616,7 @@ package android.media { method public void releaseDrm() throws android.media.MediaPlayer.NoDrmSchemeException; method public void reset(); method public void restoreKeys(byte[]) throws android.media.MediaPlayer.NoDrmSchemeException; - method public void seekTo(int, int) throws java.lang.IllegalStateException; + method public void seekTo(long, int); method public void seekTo(int) throws java.lang.IllegalStateException; method public void selectTrack(int) throws java.lang.IllegalStateException; method public void setAudioAttributes(android.media.AudioAttributes) throws java.lang.IllegalArgumentException; diff --git a/api/test-current.txt b/api/test-current.txt index ea575598cd760..ef4b5cc402831 100644 --- a/api/test-current.txt +++ b/api/test-current.txt @@ -22888,7 +22888,7 @@ package android.media { method public void releaseDrm() throws android.media.MediaPlayer.NoDrmSchemeException; method public void reset(); method public void restoreKeys(byte[]) throws android.media.MediaPlayer.NoDrmSchemeException; - method public void seekTo(int, int) throws java.lang.IllegalStateException; + method public void seekTo(long, int); method public void seekTo(int) throws java.lang.IllegalStateException; method public void selectTrack(int) throws java.lang.IllegalStateException; method public void setAudioAttributes(android.media.AudioAttributes) throws java.lang.IllegalArgumentException; diff --git a/media/java/android/media/MediaPlayer.java b/media/java/android/media/MediaPlayer.java index 293ceea79523c..5cbcceab37fa1 100644 --- a/media/java/android/media/MediaPlayer.java +++ b/media/java/android/media/MediaPlayer.java @@ -140,7 +140,7 @@ import java.util.Vector; * {@link #getVideoWidth()}, {@link #setAudioAttributes(AudioAttributes)}, * {@link #setLooping(boolean)}, * {@link #setVolume(float, float)}, {@link #pause()}, {@link #start()}, - * {@link #stop()}, {@link #seekTo(int, int)}, {@link #prepare()} or + * {@link #stop()}, {@link #seekTo(long, int)}, {@link #prepare()} or * {@link #prepareAsync()} in the Idle state for both cases. If any of these * methods is called right after a MediaPlayer object is constructed, * the user supplied callback method OnErrorListener.onError() won't be @@ -286,9 +286,9 @@ import java.util.Vector; * * *
  • The playback position can be adjusted with a call to - * {@link #seekTo(int, int)}. + * {@link #seekTo(long, int)}. *