Merge pull request #78 from kernelsandirs/master

Added Media.seekTo(int milliseconds);

Merging this code in now and making some notes to enhance the Media class.
This commit is contained in:
macdonst
2011-05-15 19:32:02 -07:00
4 changed files with 60 additions and 27 deletions
+7
View File
@@ -157,6 +157,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.
*/