You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by de...@apache.org on 2012/05/30 22:37:00 UTC

webworks commit: [CB-847] Recognize .MP4 as video recording extension.

Updated Branches:
  refs/heads/master be6edd699 -> 67a0d6fdc


[CB-847] Recognize .MP4 as video recording extension.

Prior to OS 7 video recordings were always saved as .3GP extension. OS 7 introduced a high resolution recording which is saved as .MP4. Code needs updated to recognize new extension.


Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-blackberry-webworks/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-blackberry-webworks/commit/67a0d6fd
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-blackberry-webworks/tree/67a0d6fd
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-blackberry-webworks/diff/67a0d6fd

Branch: refs/heads/master
Commit: 67a0d6fdceb39c12fa6f7de8b97f18e1f6ae7eb0
Parents: be6edd6
Author: Drew Walters <de...@apache.org>
Authored: Wed May 30 15:35:27 2012 -0500
Committer: Drew Walters <de...@apache.org>
Committed: Wed May 30 15:35:27 2012 -0500

----------------------------------------------------------------------
 .../cordova/capture/VideoCaptureListener.java      |    3 +++
 javascript/cordova.playbook.js                     |    4 ++--
 2 files changed, 5 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-blackberry-webworks/blob/67a0d6fd/framework/ext/src/org/apache/cordova/capture/VideoCaptureListener.java
----------------------------------------------------------------------
diff --git a/framework/ext/src/org/apache/cordova/capture/VideoCaptureListener.java b/framework/ext/src/org/apache/cordova/capture/VideoCaptureListener.java
index f63d6bf..361b7ee 100644
--- a/framework/ext/src/org/apache/cordova/capture/VideoCaptureListener.java
+++ b/framework/ext/src/org/apache/cordova/capture/VideoCaptureListener.java
@@ -80,6 +80,9 @@ class VideoCaptureListener implements FileSystemJournalListener {
                 // if it has a video recording extension, store it until
                 // it is renamed, indicating it has finished being written to
                 int index = path.indexOf(".3GP");
+                if (index == -1) {
+                    index = path.indexOf(".MP4");
+                }
                 if (index != -1) {
                     newFilePath = path.substring(0, index + 4);
                 }

http://git-wip-us.apache.org/repos/asf/incubator-cordova-blackberry-webworks/blob/67a0d6fd/javascript/cordova.playbook.js
----------------------------------------------------------------------
diff --git a/javascript/cordova.playbook.js b/javascript/cordova.playbook.js
index 70b3533..9a35ccf 100644
--- a/javascript/cordova.playbook.js
+++ b/javascript/cordova.playbook.js
@@ -4534,7 +4534,7 @@ var webworks = require('cordova/plugin/webworks/manager'),
                             "name" : blackberry.system.model,
                             "uuid" : blackberry.identity.PIN,
                             "platform" : "PlayBook",
-                            "cordova" : "1.7.0rc1"
+                            "cordova" : "1.8.0rc1"
                         }
                 };
             }
@@ -5164,4 +5164,4 @@ window.cordova = require('cordova');
 // file: lib/scripts/bootstrap-playbook.js
 require('cordova/channel').onNativeReady.fire();
 
-})();
\ No newline at end of file
+})();