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
+7
View File
@@ -155,6 +155,13 @@ Media.prototype.stop = function() {
return PhoneGap.exec(null, null, "Media", "stopPlayingAudio", [this.id]);
};
/**
* Seek or jump to a new time in the track.
*/
Media.prototype.seekTo = function(milliseconds) {
PhoneGap.exec(null, null, "Media", "seekToAudio", [this.id, milliseconds]);
};
/**
* Pause playing audio file.
*/