fix contentType in MediaFile

Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/commit/cad36e69
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/tree/cad36e69
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/diff/cad36e69

Branch: refs/heads/master
Commit: cad36e697de7d71a2d653bc4657ac62e1ae43551
Parents: 6d00b04
Author: wangmingfeng <mingfengwan...@gmail.com>
Authored: Tue Sep 25 08:26:52 2012 +0800
Committer: wangmingfeng <mingfengwan...@gmail.com>
Committed: Tue Sep 25 08:26:52 2012 +0800

----------------------------------------------------------------------
 lib/windows8/plugin/windows8/MediaFile.js |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/cad36e69/lib/windows8/plugin/windows8/MediaFile.js
----------------------------------------------------------------------
diff --git a/lib/windows8/plugin/windows8/MediaFile.js 
b/lib/windows8/plugin/windows8/MediaFile.js
index cebf396..4096275 100644
--- a/lib/windows8/plugin/windows8/MediaFile.js
+++ b/lib/windows8/plugin/windows8/MediaFile.js
@@ -4,9 +4,9 @@ var CaptureError = require('cordova/plugin/CaptureError');
 module.exports = { // merges with common
 
     getFormatData: function (successCallback, errorCallback, args) {
-        Windows.Storage.StorageFile.getFileFromPathAsync(this.fullPath).then(
+        Windows.Storage.StorageFile.getFileFromPathAsync(args[0]).then(
             function (storageFile) {
-                var mediaTypeFlag = 
String(contentType).split("/")[0].toLowerCase();
+                var mediaTypeFlag = 
String(args[1]).split("/")[0].toLowerCase();
                 if (mediaTypeFlag === "audio") {
                     storageFile.properties.getMusicPropertiesAsync().then(
                         function (audioProperties) {

Reply via email to