Adding release method to Media object

This commit is contained in:
macdonst
2010-12-23 02:43:11 +08:00
parent 43c72e684c
commit 2504db13d7
2 changed files with 26 additions and 1 deletions
+7
View File
@@ -192,3 +192,10 @@ Media.prototype.stopRecord = function() {
PhoneGap.exec(null, null, "Media", "stopRecordingAudio", [this.id]);
};
/**
* Release the resources.
*/
Media.prototype.release = function() {
PhoneGap.exec(null, null, "Media", "release", [this.id]);
};