You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by pu...@apache.org on 2012/11/06 01:38:28 UTC

[17/25] js commit: fix bugs in CaptureProxy.js

fix bugs in CaptureProxy.js

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/4fde207b
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/tree/4fde207b
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/diff/4fde207b

Branch: refs/heads/master
Commit: 4fde207b3bb6ec617f7fc77f3ae0b7f933a19932
Parents: efc20a1
Author: wangmingfeng <mi...@gmail.com>
Authored: Tue Oct 23 10:55:09 2012 +0800
Committer: wangmingfeng <mi...@gmail.com>
Committed: Tue Oct 23 10:55:09 2012 +0800

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


http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/4fde207b/lib/windows8/plugin/windows8/CaptureProxy.js
----------------------------------------------------------------------
diff --git a/lib/windows8/plugin/windows8/CaptureProxy.js b/lib/windows8/plugin/windows8/CaptureProxy.js
index 8f1970a..f367e68 100644
--- a/lib/windows8/plugin/windows8/CaptureProxy.js
+++ b/lib/windows8/plugin/windows8/CaptureProxy.js
@@ -128,7 +128,7 @@ module.exports = {
     getFormatData: function (successCallback, errorCallback, args) {
         Windows.Storage.StorageFile.getFileFromPathAsync(args[0]).then(
             function (storageFile) {
-                var mediaTypeFlag = String(args[1]).split("/")[0].toLowerCase();
+                var mediaTypeFlag = String(storageFile.contentType).split("/")[0].toLowerCase();
                 if (mediaTypeFlag === "audio") {
                     storageFile.properties.getMusicPropertiesAsync().then(
                         function (audioProperties) {