Merge pull request #195 from m00sey/master

Expose Volume control
This commit is contained in:
macdonst
2011-08-17 12:45:09 -07:00
3 changed files with 48 additions and 13 deletions
+7
View File
@@ -155,6 +155,13 @@ Media.prototype.release = function() {
PhoneGap.exec(null, null, "Media", "release", [this.id]);
};
/**
* Adjust the volume.
*/
Media.prototype.setVolume = function(volume) {
PhoneGap.exec(null, null, "Media", "setVolume", [this.id, volume]);
};
/**
* List of media objects.
* PRIVATE