From ffbc010d7bd7503bbfcfb8889f66b4565486dd71 Mon Sep 17 00:00:00 2001 From: kernelsandirs Date: Wed, 4 May 2011 11:51:26 -0700 Subject: [PATCH] Added Media.seekTo(int milliseconds); --- framework/assets/js/media.js | 2 +- framework/src/com/phonegap/AudioHandler.java | 1 + framework/src/com/phonegap/AudioPlayer.java | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/framework/assets/js/media.js b/framework/assets/js/media.js index de077cd9..c16a8d71 100755 --- a/framework/assets/js/media.js +++ b/framework/assets/js/media.js @@ -156,7 +156,7 @@ Media.prototype.stop = function() { }; /** - * Seek or jump to a new time in the track. + * Seek or jump to a new time in the track.. */ Media.prototype.seekTo = function(milliseconds) { PhoneGap.exec(null, null, "Media", "seekToAudio", [this.id, milliseconds]); diff --git a/framework/src/com/phonegap/AudioHandler.java b/framework/src/com/phonegap/AudioHandler.java index e8cb59f5..cd16b1b9 100755 --- a/framework/src/com/phonegap/AudioHandler.java +++ b/framework/src/com/phonegap/AudioHandler.java @@ -186,6 +186,7 @@ public class AudioHandler extends Plugin { /** * Seek to a location. + * * * @param id The id of the audio player * @param miliseconds int: number of milliseconds to skip 1000 = 1 second diff --git a/framework/src/com/phonegap/AudioPlayer.java b/framework/src/com/phonegap/AudioPlayer.java index ddf23cfb..f0b3da14 100755 --- a/framework/src/com/phonegap/AudioPlayer.java +++ b/framework/src/com/phonegap/AudioPlayer.java @@ -238,7 +238,7 @@ public class AudioPlayer implements OnCompletionListener, OnPreparedListener, On */ public void seekToPlaying(int milliseconds) { if (this.mPlayer != null) { - this.mPlayer.seekTo(milliseconds); + this.mPlayer.seekTo(milliseconds); } }