You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by sh...@apache.org on 2016/12/08 00:57:13 UTC
[1/8] cordova-plugin-media-capture git commit: CB-11832 Incremented
plugin version.
Repository: cordova-plugin-media-capture
Updated Branches:
refs/heads/1.4.x c5b9cacf9 -> b09b24d71
CB-11832 Incremented plugin version.
Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-media-capture/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-media-capture/commit/14810a2c
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-media-capture/tree/14810a2c
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-media-capture/diff/14810a2c
Branch: refs/heads/1.4.x
Commit: 14810a2c547f79363ecd2cf7ac0bcb59380bc125
Parents: c5b9cac
Author: Steve Gill <st...@gmail.com>
Authored: Fri Sep 9 16:08:04 2016 -0700
Committer: Steve Gill <st...@gmail.com>
Committed: Fri Sep 9 16:08:04 2016 -0700
----------------------------------------------------------------------
package.json | 2 +-
plugin.xml | 2 +-
tests/plugin.xml | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-plugin-media-capture/blob/14810a2c/package.json
----------------------------------------------------------------------
diff --git a/package.json b/package.json
index 819308f..3fc28c8 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "cordova-plugin-media-capture",
- "version": "1.4.0",
+ "version": "1.4.1-dev",
"description": "Cordova Media Capture Plugin",
"cordova": {
"id": "cordova-plugin-media-capture",
http://git-wip-us.apache.org/repos/asf/cordova-plugin-media-capture/blob/14810a2c/plugin.xml
----------------------------------------------------------------------
diff --git a/plugin.xml b/plugin.xml
index 53a9a58..11bb6a9 100644
--- a/plugin.xml
+++ b/plugin.xml
@@ -22,7 +22,7 @@
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:rim="http://www.blackberry.com/ns/widgets"
id="cordova-plugin-media-capture"
- version="1.4.0">
+ version="1.4.1-dev">
<name>Capture</name>
<description>Cordova Media Capture Plugin</description>
http://git-wip-us.apache.org/repos/asf/cordova-plugin-media-capture/blob/14810a2c/tests/plugin.xml
----------------------------------------------------------------------
diff --git a/tests/plugin.xml b/tests/plugin.xml
index c5481b3..c9c2d46 100644
--- a/tests/plugin.xml
+++ b/tests/plugin.xml
@@ -22,7 +22,7 @@
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:rim="http://www.blackberry.com/ns/widgets"
id="cordova-plugin-media-capture-tests"
- version="1.4.0">
+ version="1.4.1-dev">
<name>Cordova Media Capture Plugin Tests</name>
<license>Apache 2.0</license>
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org
[2/8] cordova-plugin-media-capture git commit: CB-11917 - Remove pull request template checklist item: "iCLA has been submitted…"
Posted by sh...@apache.org.
CB-11917 - Remove pull request template checklist item: "iCLA has been submitted\u2026"
This closes #71
Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-media-capture/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-media-capture/commit/21bb35e4
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-media-capture/tree/21bb35e4
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-media-capture/diff/21bb35e4
Branch: refs/heads/1.4.x
Commit: 21bb35e46682978228e827614e078f33e1a2d9be
Parents: 14810a2
Author: Shazron Abdullah <sh...@gmail.com>
Authored: Wed Sep 28 01:32:03 2016 -0700
Committer: Shazron Abdullah <sh...@apache.org>
Committed: Tue Oct 4 21:35:13 2016 -0700
----------------------------------------------------------------------
.github/PULL_REQUEST_TEMPLATE.md | 1 -
1 file changed, 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-plugin-media-capture/blob/21bb35e4/.github/PULL_REQUEST_TEMPLATE.md
----------------------------------------------------------------------
diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md
index 4bd6da9..91582f4 100644
--- a/.github/PULL_REQUEST_TEMPLATE.md
+++ b/.github/PULL_REQUEST_TEMPLATE.md
@@ -17,7 +17,6 @@ Thanks!
### Checklist
-- [ ] [ICLA](http://www.apache.org/licenses/icla.txt) has been signed and submitted to secretary@apache.org.
- [ ] [Reported an issue](http://cordova.apache.org/contribute/issues.html) in the JIRA database
- [ ] Commit message follows the format: "CB-3232: (android) Fix bug with resolving file paths", where CB-xxxx is the JIRA ID & "android" is the platform affected.
- [ ] Added automated test coverage as appropriate for this change.
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org
[4/8] cordova-plugin-media-capture git commit: CB-11996 Added a new
manual test to capture multiple images
Posted by sh...@apache.org.
CB-11996 Added a new manual test to capture multiple images
Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-media-capture/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-media-capture/commit/cd7d40d5
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-media-capture/tree/cd7d40d5
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-media-capture/diff/cd7d40d5
Branch: refs/heads/1.4.x
Commit: cd7d40d5dc80755fb6798b839383cdae73bd01ab
Parents: 108c2ef
Author: Alexander Sorokin <al...@akvelon.com>
Authored: Tue Oct 11 18:53:39 2016 +0300
Committer: Alexander Sorokin <al...@akvelon.com>
Committed: Tue Oct 11 18:53:39 2016 +0300
----------------------------------------------------------------------
tests/tests.js | 42 +++++++++++++++++++++++++++++++++++++++++-
1 file changed, 41 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-plugin-media-capture/blob/cd7d40d5/tests/tests.js
----------------------------------------------------------------------
diff --git a/tests/tests.js b/tests/tests.js
index 7336b8a..c3177f4 100644
--- a/tests/tests.js
+++ b/tests/tests.js
@@ -156,6 +156,30 @@ exports.defineManualTests = function (contentEl, createActionButton) {
document.getElementById('camera_image').src = path;
}
+ function captureImagesWin(mediaFiles) {
+ var path = mediaFiles[0].fullPath;
+ // Necessary since windows doesn't allow file URLs for <img> elements
+ if (cordova.platformId == 'windows' || cordova.platformId == 'windows8' || cordova.platformId === 'browser') {
+ path = mediaFiles[0].localURL;
+ }
+ var path2 = mediaFiles[1].fullPath;
+ // Necessary since windows doesn't allow file URLs for <img> elements
+ if (cordova.platformId == 'windows' || cordova.platformId == 'windows8' || cordova.platformId === 'browser') {
+ path = mediaFiles[1].localURL;
+ }
+ var path3 = mediaFiles[2].fullPath;
+ // Necessary since windows doesn't allow file URLs for <img> elements
+ if (cordova.platformId == 'windows' || cordova.platformId == 'windows8' || cordova.platformId === 'browser') {
+ path = mediaFiles[2].localURL;
+ }
+ log('Image captured: ' + path);
+ log('Image captured: ' + path2);
+ log('Image captured: ' + path3);
+ document.getElementById('camera_image').src = path;
+ document.getElementById('camera_image2').src = path2;
+ document.getElementById('camera_image3').src = path3;
+ }
+
function captureImageFail(e) {
log('Error getting image: ' + e.code);
}
@@ -166,6 +190,12 @@ exports.defineManualTests = function (contentEl, createActionButton) {
navigator.device.capture.captureImage(captureImageWin, captureImageFail, options);
}
+ function getImages() {
+ clearStatus();
+ var options = { limit: 3 };
+ navigator.device.capture.captureImage(captureImagesWin, captureImageFail, options);
+ }
+
function captureVideoWin(mediaFiles) {
var path = mediaFiles[0].fullPath;
log('Video captured: ' + path);
@@ -231,18 +261,24 @@ exports.defineManualTests = function (contentEl, createActionButton) {
function clearStatus() {
document.getElementById('camera_status').innerHTML = '';
document.getElementById('camera_image').src = 'about:blank';
+ document.getElementById('camera_image2').src = 'about:blank';
+ document.getElementById('camera_image3').src = 'about:blank';
}
/******************************************************************************/
contentEl.innerHTML = '<div id="info" style="white-space: pre-wrap">' +
'<b>Status:</b> <div id="camera_status"></div>' +
- 'img: <img width="100" id="camera_image">' +
+ 'img1: <img width="100" id="camera_image">' +
+ 'img2: <img width="100" id="camera_image2">' +
+ 'img3: <img width="100" id="camera_image3">' +
'video: <div id="video_container"></div>' +
'</div><div id="audio"></div>' +
'Expected result: Audio recorder will come up. Press record button to record for 10 seconds. Press Done. Status box will update with audio file and automatically play recording.' +
'<p/> <div id="image"></div>' +
'Expected result: Status box will update with image just taken.' +
+ '<p/> <div id="images"></div>' +
+ 'Expected result: Status box will update with images just taken.' +
'<p/> <div id="video"></div>' +
'Expected result: Record 10 second video. Status box will update with video file that you can play.' +
'<p/> <div id="video_and_resolve"></div>' +
@@ -256,6 +292,10 @@ exports.defineManualTests = function (contentEl, createActionButton) {
getImage();
}, 'image');
+ createActionButton('Capture 3 images', function () {
+ getImages();
+ }, 'images');
+
createActionButton('Capture 10 sec of video', function () {
getVideo();
}, 'video');
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org
[8/8] cordova-plugin-media-capture git commit: CB-12224 Updated
version and RELEASENOTES.md for release 1.4.1
Posted by sh...@apache.org.
CB-12224 Updated version and RELEASENOTES.md for release 1.4.1
Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-media-capture/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-media-capture/commit/b09b24d7
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-media-capture/tree/b09b24d7
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-media-capture/diff/b09b24d7
Branch: refs/heads/1.4.x
Commit: b09b24d71b53937db0351f0e041be18751699a20
Parents: 7e28e9c
Author: Shazron Abdullah <sh...@apache.org>
Authored: Wed Dec 7 16:39:46 2016 -0800
Committer: Shazron Abdullah <sh...@apache.org>
Committed: Wed Dec 7 16:39:46 2016 -0800
----------------------------------------------------------------------
RELEASENOTES.md | 192 ++++++++++++++++++++++++++++++++++++++++++++++++++
package.json | 2 +-
plugin.xml | 2 +-
tests/plugin.xml | 2 +-
4 files changed, 195 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-plugin-media-capture/blob/b09b24d7/RELEASENOTES.md
----------------------------------------------------------------------
diff --git a/RELEASENOTES.md b/RELEASENOTES.md
index 824f431..b2abddd 100644
--- a/RELEASENOTES.md
+++ b/RELEASENOTES.md
@@ -20,6 +20,198 @@
-->
# Release Notes
+### 1.4.1 (Dec 07, 2016)
+* [CB-10701](https://issues.apache.org/jira/browse/CB-10701) [CB-7117](https://issues.apache.org/jira/browse/CB-7117) android: Add manual test to check getting metadata
+* [CB-10489](https://issues.apache.org/jira/browse/CB-10489) Fix for MediaFile.getFormatData / audio recording support
+* [CB-10488](https://issues.apache.org/jira/browse/CB-10488) Fix for MediaFile.getFormatData
+* [CB-11996](https://issues.apache.org/jira/browse/CB-11996) Added a new manual test to capture multiple images
+* [CB-11995](https://issues.apache.org/jira/browse/CB-11995) (android) Do not pass a file URI to the camera
+* [CB-11917](https://issues.apache.org/jira/browse/CB-11917) - Remove pull request template checklist item: "iCLA has been submitted\u2026"
+* [CB-11832](https://issues.apache.org/jira/browse/CB-11832) Incremented plugin version.
+* [CB-11832](https://issues.apache.org/jira/browse/CB-11832) Updated version and RELEASENOTES.md for release 1.4.0
+* Add mandatory iOS 10 privacy description for microphone
+* [CB-11795](https://issues.apache.org/jira/browse/CB-11795) Add 'protective' entry to cordovaDependencies
+* [CB-11821](https://issues.apache.org/jira/browse/CB-11821) (ios) Add mandatory iOS 10 privacy description
+* Plugin uses Android Log class and not Cordova LOG class
+* Add badges for paramedic builds on Jenkins
+* [CB-11396](https://issues.apache.org/jira/browse/CB-11396) - Audio Media Capture Crashes if app stores file on external storage
+* Add pull request template.
+* [CB-11212](https://issues.apache.org/jira/browse/CB-11212) iOS: Explicitly set the bundle for images
+* [CB-10554](https://issues.apache.org/jira/browse/CB-10554) Implementing plugin save/restore API for Android
+* [CB-11165](https://issues.apache.org/jira/browse/CB-11165) removed peer dependency
+* [CB-10996](https://issues.apache.org/jira/browse/CB-10996) Adding front matter to README.md
+* [CB-11091](https://issues.apache.org/jira/browse/CB-11091) Incremented plugin version.
+* Updated version and RELEASENOTES.md for release 1.3.0
+* Replace PermissionHelper.java with cordova-plugin-compat
+* CB-10670, [CB-10994](https://issues.apache.org/jira/browse/CB-10994) android: Marshmallow permissions
+* [CB-10720](https://issues.apache.org/jira/browse/CB-10720) Fixing README for display on Cordova website
+* [CB-10636](https://issues.apache.org/jira/browse/CB-10636) Add JSHint for plugins
+* add JIRA issue tracker link
+* [CB-10690](https://issues.apache.org/jira/browse/CB-10690) windows: fix crash when user cancels/closes photo app
+* chore: edit package.json license to match SPDX id
+* [CB-10368](https://issues.apache.org/jira/browse/CB-10368) Incremented plugin version.
+* [CB-10368](https://issues.apache.org/jira/browse/CB-10368) Updated version and RELEASENOTES.md for release 1.2.0
+* [CB-10100](https://issues.apache.org/jira/browse/CB-10100) updated file dependency to not grab new majors
+* [CB-10035](https://issues.apache.org/jira/browse/CB-10035) Incremented plugin version.
+* [CB-8863](https://issues.apache.org/jira/browse/CB-8863) Fix block usage of self
+* [CB-10035](https://issues.apache.org/jira/browse/CB-10035) linked issues in RELEASENOTES.md
+* [CB-10035](https://issues.apache.org/jira/browse/CB-10035) Updated version and RELEASENOTES.md for release 1.1.0
+* removed r prefix from tags
+* [CB-10035](https://issues.apache.org/jira/browse/CB-10035) Updated RELEASENOTES to be newest to oldest
+* Actually fixing the contribute link.
+* Fixing contribute link.
+* [CB-9249](https://issues.apache.org/jira/browse/CB-9249) Fix iOS warnings in Media Capture plugin Part 2
+* [CB-9249](https://issues.apache.org/jira/browse/CB-9249) Fix iOS warnings in Media Capture plugin
+* Document the quality property in Android quirks
+* Add CaptureVideoOption for quality
+* Remove TravisCI integration
+* [CB-9192](https://issues.apache.org/jira/browse/CB-9192) Incremented plugin version.
+* [CB-9202](https://issues.apache.org/jira/browse/CB-9202) updated repo url to github mirror in package.json
+* [CB-9192](https://issues.apache.org/jira/browse/CB-9192) Updated version and RELEASENOTES.md for release 1.0.1
+* [CB-9128](https://issues.apache.org/jira/browse/CB-9128) cordova-plugin-media-capture documentation translation: cordova-plugin-media-capture
+* fix npm md issue
+* [CB-8858](https://issues.apache.org/jira/browse/CB-8858) Incremented plugin version.
+* [CB-8858](https://issues.apache.org/jira/browse/CB-8858) Updated version in package.json for release 1.0.0
+* Revert "CB-8858 Incremented plugin version."
+* [CB-8858](https://issues.apache.org/jira/browse/CB-8858) Incremented plugin version.
+* [CB-8858](https://issues.apache.org/jira/browse/CB-8858) Updated version and RELEASENOTES.md for release 1.0.0
+* [CB-8746](https://issues.apache.org/jira/browse/CB-8746) bumped version of file dependency
+* [CB-8746](https://issues.apache.org/jira/browse/CB-8746) gave plugin major version bump
+* [CB-8747](https://issues.apache.org/jira/browse/CB-8747) updated dependency, added peer dependency
+* [CB-8683](https://issues.apache.org/jira/browse/CB-8683) changed plugin-id to pacakge-name
+* [CB-8653](https://issues.apache.org/jira/browse/CB-8653) properly updated translated docs to use new id
+* [CB-8653](https://issues.apache.org/jira/browse/CB-8653) updated translated docs to use new id
+* Use TRAVIS_BUILD_DIR, install paramedic by npm
+* docs: added Windows to supported platforms
+* [CB-8687](https://issues.apache.org/jira/browse/CB-8687) consolidate manifest targets
+* [CB-7963](https://issues.apache.org/jira/browse/CB-7963) Adds support for browser platform
+* [CB-8653](https://issues.apache.org/jira/browse/CB-8653) Updated Readme
+* [CB-8659](https://issues.apache.org/jira/browse/CB-8659) ios: 4.0.x Compatibility: Remove use of initWebView method
+* [CB-8571](https://issues.apache.org/jira/browse/CB-8571) Integrate TravisCI
+* [CB-8438](https://issues.apache.org/jira/browse/CB-8438) cordova-plugin-media-capture documentation translation: cordova-plugin-media-capture
+* [CB-8538](https://issues.apache.org/jira/browse/CB-8538) Added package.json file
+* [CB-8429](https://issues.apache.org/jira/browse/CB-8429) Incremented plugin version.
+* [CB-8429](https://issues.apache.org/jira/browse/CB-8429) Updated version and RELEASENOTES.md for release 0.3.6
+* ios: Use inline copies of deprecated CDV_IsIpad and CDV_IsIphone5
+* [CB-8351](https://issues.apache.org/jira/browse/CB-8351) ios: Stop using (newly) deprecated CDVJSON.h
+* [CB-8351](https://issues.apache.org/jira/browse/CB-8351) Use argumentForIndex rather than NSArray extension
+* [CB-7977](https://issues.apache.org/jira/browse/CB-7977) Mention deviceready in plugin docs
+* [CB-8110](https://issues.apache.org/jira/browse/CB-8110) Incremented plugin version.
+* [CB-8110](https://issues.apache.org/jira/browse/CB-8110) Updated version and RELEASENOTES.md for release 0.3.5
+* [CB-7597](https://issues.apache.org/jira/browse/CB-7597) - Localizable.strings for Media Capture are in the default template, it should be in the plugin
+* [CB-7700](https://issues.apache.org/jira/browse/CB-7700) cordova-plugin-media-capture documentation translation: cordova-plugin-media-capture
+* Incremented plugin version.
+* Updated version and RELEASENOTES.md for release 0.3.4
+* [CB-7453](https://issues.apache.org/jira/browse/CB-7453) Adds fallback to m4a audio format when mp3 recording fails.
+* [CB-7429](https://issues.apache.org/jira/browse/CB-7429) Fixes image capture manual tests on windows
+* [CB-7429](https://issues.apache.org/jira/browse/CB-7429) Move windows8 and windows Proxies into one file
+* [CB-7429](https://issues.apache.org/jira/browse/CB-7429) Adds media capture support for windows
+* [CB-7571](https://issues.apache.org/jira/browse/CB-7571) Bump version of nested plugin to match parent plugin
+* [CB-7571](https://issues.apache.org/jira/browse/CB-7571) Incremented plugin version.
+* [CB-7571](https://issues.apache.org/jira/browse/CB-7571) Updated version and RELEASENOTES.md for release 0.3.3
+* Renamed test dir, added nested plugin.xml
+* [CB-7244](https://issues.apache.org/jira/browse/CB-7244) Incremented plugin version.
+* [CB-7244](https://issues.apache.org/jira/browse/CB-7244) Updated version and RELEASENOTES.md for release 0.3.2
+* ubuntu: fix compler warnings
+* ubuntu: support qt 5.2
+* added documentation for manual tests
+* [CB-6959](https://issues.apache.org/jira/browse/CB-6959) Added manual tests
+* CB-6127lisa7cordova-plugin-consolecordova-plugin-media-capture documentation translation: cordova-plugin-media-capture
+* [CB-6978](https://issues.apache.org/jira/browse/CB-6978) captureImage() function fails in Android
+* documentation translation: cordova-plugin-media-capture
+* Lisa testing pulling in plugins for plugin: cordova-plugin-media-capture
+* Lisa testing pulling in plugins for plugin: cordova-plugin-media-capture
+* Lisa testing pulling in plugins for plugin: cordova-plugin-media-capture
+* Lisa testing pulling in plugins for plugin: cordova-plugin-media-capture
+* [CB-6959](https://issues.apache.org/jira/browse/CB-6959) Port capture tests to plugin-test-framework
+* [CB-6890](https://issues.apache.org/jira/browse/CB-6890) Fix pluginManager access for 4.0.x branch
+* [CB-6877](https://issues.apache.org/jira/browse/CB-6877) Incremented plugin version.
+* [CB-6877](https://issues.apache.org/jira/browse/CB-6877) Updated version and RELEASENOTES.md for release 0.3.1
+* Added translations to documentation. Github close #14
+* Remove deprecated symbols for iOS < 6
+* Fixes captureTasks UI URIs
+* [CB-6808](https://issues.apache.org/jira/browse/CB-6808) Add license
+* [CB-6706](https://issues.apache.org/jira/browse/CB-6706) Relax dependency on file plugin
+* [CB-6491](https://issues.apache.org/jira/browse/CB-6491) add CONTRIBUTING.md
+* [CB-6452](https://issues.apache.org/jira/browse/CB-6452) Incremented plugin version on dev branch.
+* [CB-6452](https://issues.apache.org/jira/browse/CB-6452) Updated version and RELEASENOTES.md for release 0.3.0
+* [CB-6460](https://issues.apache.org/jira/browse/CB-6460) Update license headers
+* [CB-6152](https://issues.apache.org/jira/browse/CB-6152) Make mediafile compatible with file plugin
+* [CB-6385](https://issues.apache.org/jira/browse/CB-6385) Specify file plugin dependency version
+* [CB-6212](https://issues.apache.org/jira/browse/CB-6212) iOS: fix warnings compiled under arm64 64-bit
+* [CB-6016](https://issues.apache.org/jira/browse/CB-6016) [BlackBerry10] Add audio capture capability
+* [CB-6212](https://issues.apache.org/jira/browse/CB-6212) iOS: fix warnings compiled under arm64 64-bit
+* Add rim xml namespaces declaration
+* Add NOTICE file
+* fixed cordova cli add capture plugin not work wp
+* fixed cordova cli add capture plugin not work wp
+* [CB-6114](https://issues.apache.org/jira/browse/CB-6114) Updated version and RELEASENOTES.md for release 0.2.8
+* Add NOTICE file
+* [CB-6114](https://issues.apache.org/jira/browse/CB-6114) Incremented plugin version on dev branch.
+* [CB-6114](https://issues.apache.org/jira/browse/CB-6114) Updated version and RELEASENOTES.md for release 0.2.8
+* [CB-5202](https://issues.apache.org/jira/browse/CB-5202) fix from lubogospod
+* [CB-5980](https://issues.apache.org/jira/browse/CB-5980) Incremented plugin version on dev branch.
+* [CB-5980](https://issues.apache.org/jira/browse/CB-5980) Updated version and RELEASENOTES.md for release 0.2.7
+* [ubuntu] request audio/camera/microphone permission
+* [ubuntu] add missing file
+* Delete stale test/ directory
+* [CB-6422](https://issues.apache.org/jira/browse/CB-6422) [windows8] use cordova/exec/proxy
+* fixed cordova cli add capture plugin not work wp
+* fixed cordova cli add capture plugin not work wp
+* [CB-5685](https://issues.apache.org/jira/browse/CB-5685) [BlackBerry10] Add access_shared permission
+* [CB-5719](https://issues.apache.org/jira/browse/CB-5719) Incremented plugin version on dev branch.
+* [CB-5719](https://issues.apache.org/jira/browse/CB-5719) Updated version and RELEASENOTES.md for release 0.2.6
+* [CB-5658](https://issues.apache.org/jira/browse/CB-5658) Update license comment formatting of doc/index.md
+* [CB-5658](https://issues.apache.org/jira/browse/CB-5658) Add doc.index.md for Media Capture plugin
+* [CB-5658](https://issues.apache.org/jira/browse/CB-5658) Delete stale snapshot of plugin docs
+* [CB-5569](https://issues.apache.org/jira/browse/CB-5569) Windows8. MediaFile constructor does not exist
+* [CB-5517](https://issues.apache.org/jira/browse/CB-5517) Fix the audio capture IO exception by putting it in a runnable
+* [CB-5565](https://issues.apache.org/jira/browse/CB-5565) Incremented plugin version on dev branch.
+* [CB-5565](https://issues.apache.org/jira/browse/CB-5565) Updated version and RELEASENOTES.md for release 0.2.5
+* add ubuntu platform
+* Added amazon-fireos platform. Change to use amazon-fireos as a platform if user agent string contains 'cordova-amazon-fireos'
+* [CB-5291](https://issues.apache.org/jira/browse/CB-5291) - ios - Media Capture Audio - status bar issues under iOS 7
+* [CB-5275](https://issues.apache.org/jira/browse/CB-5275) CaptureImage and CaptureVideo have runnables and CaptureVideo works on 4.2. Still doesn't work for 4.3
+* [CB-5188](https://issues.apache.org/jira/browse/CB-5188)
+* [CB-5188](https://issues.apache.org/jira/browse/CB-5188) Updated version and RELEASENOTES.md for release 0.2.4
+* [CB-5199](https://issues.apache.org/jira/browse/CB-5199) - ios - Media Capture - UI issues under iOS 7
+* [CB-5128](https://issues.apache.org/jira/browse/CB-5128) added repo + issue tag to plugin.xml for media capture plugin
+* [CB-5010](https://issues.apache.org/jira/browse/CB-5010) Incremented plugin version on dev branch.
+* [CB-5010](https://issues.apache.org/jira/browse/CB-5010) Updated version and RELEASENOTES.md for release 0.2.3
+* [CB-4720](https://issues.apache.org/jira/browse/CB-4720) fixed incorrect feature tag in plugin.xml for wp
+* [CB-4915](https://issues.apache.org/jira/browse/CB-4915) Incremented plugin version on dev branch.
+* [CB-4915](https://issues.apache.org/jira/browse/CB-4915) Updated version and RELEASENOTES.md for release 0.2.2
+* [CB-4889](https://issues.apache.org/jira/browse/CB-4889) bumping&resetting version
+* [windows8] commandProxy was moved
+* [windows8] commandProxy was moved
+* [CB-4889](https://issues.apache.org/jira/browse/CB-4889)
+* [CB-4889](https://issues.apache.org/jira/browse/CB-4889) renaming org.apache.cordova.core.media-capture to org.apache.cordova.media-capture and updating dependency
+* Rename CHANGELOG.md -> RELEASENOTES.md
+* [CB-4847](https://issues.apache.org/jira/browse/CB-4847) iOS 7 microphone access requires user permission - if denied, CDVCapture, CDVSound does not handle it properly
+* [CB-4826](https://issues.apache.org/jira/browse/CB-4826) Fix warning using UITextAlignmentCenter
+* [CB-4826](https://issues.apache.org/jira/browse/CB-4826) Fix XCode 5 capture plugin warnings
+* [CB-4488](https://issues.apache.org/jira/browse/CB-4488) - added manual capture test
+* [CB-4764](https://issues.apache.org/jira/browse/CB-4764) Remove reference to DirectoryManager from Capture.java
+* [CB-4763](https://issues.apache.org/jira/browse/CB-4763) Use own version of FileHelper.
+* [CB-4752](https://issues.apache.org/jira/browse/CB-4752) Incremented plugin version on dev branch.
+* Revert "[CB-4848] Fix Xcode 5 semantic issues for Media Capture plugin"
+* Revert "[CB-4847] iOS 7 microphone access requires user permission - if denied, CDVCapture, CDVSound does not handle it properly"
+* [CB-4847](https://issues.apache.org/jira/browse/CB-4847) iOS 7 microphone access requires user permission - if denied, CDVCapture, CDVSound does not handle it properly
+* [CB-4848](https://issues.apache.org/jira/browse/CB-4848) Fix Xcode 5 semantic issues for Media Capture plugin
+* Add empty CHANGELOG.md
+* [CB-4595](https://issues.apache.org/jira/browse/CB-4595) updated version
+* [CB-4417](https://issues.apache.org/jira/browse/CB-4417) Move cordova-plugin-media-capture to its own Java package.
+* updated readme, namespace and name tag
+* [plugin.xml] adding android namespace
+* [plugin.xml] standardizing license + meta
+* [license] adding apache license file
+* [CB-4471](https://issues.apache.org/jira/browse/CB-4471) Mitigating Android 4.3 errors where it's not passing the data for video. Strange behaviour introduced with 4.3
+* [CB-4392](https://issues.apache.org/jira/browse/CB-4392) Remove bad subdirectory reference from plugin.xml
+* [Windows8][CB-4447] Added Windows8 support
+* updating plugin.xml with registry data
+* [CB-4366](https://issues.apache.org/jira/browse/CB-4366) Explicit MobileCoreServices.framework dependency should be specified for some core plugins
+* [CB-4368](https://issues.apache.org/jira/browse/CB-4368) Explicit CoreGraphics.framework dependency should be specified for some core plugins
+
### 1.4.0 (Sep 08, 2016)
* Add mandatory **iOS 10** privacy description for microphone
* [CB-11795](https://issues.apache.org/jira/browse/CB-11795) Add 'protective' entry to cordovaDependencies
http://git-wip-us.apache.org/repos/asf/cordova-plugin-media-capture/blob/b09b24d7/package.json
----------------------------------------------------------------------
diff --git a/package.json b/package.json
index 3fc28c8..9558409 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "cordova-plugin-media-capture",
- "version": "1.4.1-dev",
+ "version": "1.4.1",
"description": "Cordova Media Capture Plugin",
"cordova": {
"id": "cordova-plugin-media-capture",
http://git-wip-us.apache.org/repos/asf/cordova-plugin-media-capture/blob/b09b24d7/plugin.xml
----------------------------------------------------------------------
diff --git a/plugin.xml b/plugin.xml
index 11bb6a9..c0c62c6 100644
--- a/plugin.xml
+++ b/plugin.xml
@@ -22,7 +22,7 @@
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:rim="http://www.blackberry.com/ns/widgets"
id="cordova-plugin-media-capture"
- version="1.4.1-dev">
+ version="1.4.1">
<name>Capture</name>
<description>Cordova Media Capture Plugin</description>
http://git-wip-us.apache.org/repos/asf/cordova-plugin-media-capture/blob/b09b24d7/tests/plugin.xml
----------------------------------------------------------------------
diff --git a/tests/plugin.xml b/tests/plugin.xml
index c9c2d46..3f591c7 100644
--- a/tests/plugin.xml
+++ b/tests/plugin.xml
@@ -22,7 +22,7 @@
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:rim="http://www.blackberry.com/ns/widgets"
id="cordova-plugin-media-capture-tests"
- version="1.4.1-dev">
+ version="1.4.1">
<name>Cordova Media Capture Plugin Tests</name>
<license>Apache 2.0</license>
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org
[5/8] cordova-plugin-media-capture git commit: CB-10488 Fix for
MediaFile.getFormatData
Posted by sh...@apache.org.
CB-10488 Fix for MediaFile.getFormatData
Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-media-capture/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-media-capture/commit/ab8b6330
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-media-capture/tree/ab8b6330
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-media-capture/diff/ab8b6330
Branch: refs/heads/1.4.x
Commit: ab8b63308c1df274b7c98f816ee7f41fcec98313
Parents: cd7d40d
Author: TanaseButcaru <co...@butcaru.com>
Authored: Mon Feb 1 00:42:07 2016 +0200
Committer: Vladimir Kotikov <ko...@gmail.com>
Committed: Wed Oct 26 14:52:16 2016 +0300
----------------------------------------------------------------------
www/MediaFile.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-plugin-media-capture/blob/ab8b6330/www/MediaFile.js
----------------------------------------------------------------------
diff --git a/www/MediaFile.js b/www/MediaFile.js
index 1bc600f..49b73be 100644
--- a/www/MediaFile.js
+++ b/www/MediaFile.js
@@ -48,7 +48,7 @@ MediaFile.prototype.getFormatData = function(successCallback, errorCallback) {
if (typeof this.fullPath === "undefined" || this.fullPath === null) {
errorCallback(new CaptureError(CaptureError.CAPTURE_INVALID_ARGUMENT));
} else {
- exec(successCallback, errorCallback, "Capture", "getFormatData", [this.localURL, this.type]);
+ exec(successCallback, errorCallback, "Capture", "getFormatData", [this.fullPath, this.type]);
}
};
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org
[6/8] cordova-plugin-media-capture git commit: CB-10489 Fix for
MediaFile.getFormatData / audio recording support
Posted by sh...@apache.org.
CB-10489 Fix for MediaFile.getFormatData / audio recording support
This closes #53
Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-media-capture/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-media-capture/commit/26f9ad10
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-media-capture/tree/26f9ad10
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-media-capture/diff/26f9ad10
Branch: refs/heads/1.4.x
Commit: 26f9ad109552f86f0052a1ca325a03bb07db3d16
Parents: ab8b633
Author: TanaseButcaru <co...@butcaru.com>
Authored: Wed Feb 3 23:49:06 2016 +0200
Committer: Vladimir Kotikov <ko...@gmail.com>
Committed: Wed Oct 26 16:04:43 2016 +0300
----------------------------------------------------------------------
src/android/Capture.java | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-plugin-media-capture/blob/26f9ad10/src/android/Capture.java
----------------------------------------------------------------------
diff --git a/src/android/Capture.java b/src/android/Capture.java
index 1f7030b..40117aa 100644
--- a/src/android/Capture.java
+++ b/src/android/Capture.java
@@ -25,6 +25,7 @@ import java.io.OutputStream;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
+import java.util.Arrays;
import android.os.Build;
import android.os.Bundle;
@@ -61,6 +62,7 @@ public class Capture extends CordovaPlugin {
private static final String VIDEO_3GPP = "video/3gpp";
private static final String VIDEO_MP4 = "video/mp4";
private static final String AUDIO_3GPP = "audio/3gpp";
+ private static final String[] AUDIO_TYPES = new String[] {"audio/3gpp", "audio/aac", "audio/amr", "audio/wav"};
private static final String IMAGE_JPEG = "image/jpeg";
private static final int CAPTURE_AUDIO = 0; // Constant for capture audio
@@ -169,7 +171,7 @@ public class Capture extends CordovaPlugin {
if (mimeType.equals(IMAGE_JPEG) || filePath.endsWith(".jpg")) {
obj = getImageData(fileUrl, obj);
}
- else if (mimeType.endsWith(AUDIO_3GPP)) {
+ else if (Arrays.asList(AUDIO_TYPES).contains(mimeType)) {
obj = getAudioVideoData(filePath, obj, false);
}
else if (mimeType.equals(VIDEO_3GPP) || mimeType.equals(VIDEO_MP4)) {
@@ -454,7 +456,7 @@ public class Capture extends CordovaPlugin {
try {
// File properties
obj.put("name", fp.getName());
- obj.put("fullPath", fp.toURI().toString());
+ obj.put("fullPath", Uri.fromFile(fp));
if (url != null) {
obj.put("localURL", url.toString());
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org
[7/8] cordova-plugin-media-capture git commit: CB-10701 CB-7117
android: Add manual test to check getting metadata
Posted by sh...@apache.org.
CB-10701 CB-7117 android: Add manual test to check getting metadata
Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-media-capture/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-media-capture/commit/7e28e9cb
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-media-capture/tree/7e28e9cb
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-media-capture/diff/7e28e9cb
Branch: refs/heads/1.4.x
Commit: 7e28e9cb1d60e54ecb1e29e61d38329d9c0e62f0
Parents: 26f9ad1
Author: Nikita Matrosov <ma...@gmail.com>
Authored: Wed Oct 26 14:39:10 2016 +0300
Committer: Vladimir Kotikov <ko...@gmail.com>
Committed: Wed Oct 26 16:06:47 2016 +0300
----------------------------------------------------------------------
tests/tests.js | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-plugin-media-capture/blob/7e28e9cb/tests/tests.js
----------------------------------------------------------------------
diff --git a/tests/tests.js b/tests/tests.js
index c3177f4..fd2f60b 100644
--- a/tests/tests.js
+++ b/tests/tests.js
@@ -134,6 +134,7 @@ exports.defineManualTests = function (contentEl, createActionButton) {
log('Audio captured: ' + path);
var m = new Media(path);
m.play();
+ getFileMetadata(mediaFiles[0]);
}
function captureAudioFail(e) {
@@ -213,6 +214,23 @@ exports.defineManualTests = function (contentEl, createActionButton) {
source_vid.src = path;
vid.appendChild(source_vid);
document.getElementById('video_container').appendChild(vid);
+ getFileMetadata(mediaFiles[0]);
+ }
+
+ function getFileMetadata(mediaFile) {
+ mediaFile.getFormatData(getMetadataWin, getMetadataFail);
+ }
+
+ function getMetadataWin(metadata) {
+ var strMetadata =
+ "duration = " + metadata.duration + '\n' +
+ "width = " + metadata.width + '\n' +
+ "height = " + metadata.height;
+ log(strMetadata);
+ }
+
+ function getMetadataFail(e) {
+ log("Error getting metadata: " + e.code);
}
function captureVideoFail(e) {
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org
[3/8] cordova-plugin-media-capture git commit: CB-11995 (android) Do
not pass a file URI to the camera
Posted by sh...@apache.org.
CB-11995 (android) Do not pass a file URI to the camera
Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-media-capture/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-media-capture/commit/108c2eff
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-media-capture/tree/108c2eff
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-media-capture/diff/108c2eff
Branch: refs/heads/1.4.x
Commit: 108c2eff02700c90103e63c09e8144d965aff03f
Parents: 21bb35e
Author: Alexander Sorokin <al...@akvelon.com>
Authored: Tue Oct 11 18:04:32 2016 +0300
Committer: Alexander Sorokin <al...@akvelon.com>
Committed: Tue Oct 11 18:04:32 2016 +0300
----------------------------------------------------------------------
src/android/Capture.java | 74 +++++++++++--------------------------------
1 file changed, 18 insertions(+), 56 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-plugin-media-capture/blob/108c2eff/src/android/Capture.java
----------------------------------------------------------------------
diff --git a/src/android/Capture.java b/src/android/Capture.java
index 73781b8..1f7030b 100644
--- a/src/android/Capture.java
+++ b/src/android/Capture.java
@@ -44,6 +44,7 @@ import org.json.JSONObject;
import android.Manifest;
import android.app.Activity;
+import android.content.ContentResolver;
import android.content.ContentValues;
import android.content.Intent;
import android.content.pm.PackageManager;
@@ -78,6 +79,7 @@ public class Capture extends CordovaPlugin {
private final PendingRequests pendingRequests = new PendingRequests();
private int numPics; // Number of pictures before capture activity
+ private Uri imageUri;
// public void setContext(Context mCtx)
// {
@@ -266,16 +268,13 @@ public class Capture extends CordovaPlugin {
Intent intent = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE);
- // Specify file so that large image is captured and returned
- File photo = new File(getTempDirectoryPath(), "Capture.jpg");
- try {
- // the ACTION_IMAGE_CAPTURE is run under different credentials and has to be granted write permissions
- createWritableFile(photo);
- } catch (IOException ex) {
- pendingRequests.resolveWithFailure(req, createErrorObject(CAPTURE_INTERNAL_ERR, ex.toString()));
- return;
- }
- intent.putExtra(android.provider.MediaStore.EXTRA_OUTPUT, Uri.fromFile(photo));
+ ContentResolver contentResolver = this.cordova.getActivity().getContentResolver();
+ ContentValues cv = new ContentValues();
+ cv.put(MediaStore.Images.Media.MIME_TYPE, IMAGE_JPEG);
+ imageUri = contentResolver.insert(MediaStore.Images.Media.EXTERNAL_CONTENT_URI, cv);
+ LOG.d(LOG_TAG, "Taking a picture and saving to: " + imageUri.toString());
+
+ intent.putExtra(android.provider.MediaStore.EXTRA_OUTPUT, imageUri);
this.cordova.startActivityForResult((CordovaPlugin) this, intent, req.requestCode);
}
@@ -377,54 +376,17 @@ public class Capture extends CordovaPlugin {
}
public void onImageActivityResult(Request req) {
- // For some reason if I try to do:
- // Uri data = intent.getData();
- // It crashes in the emulator and on my phone with a null pointer exception
- // To work around it I had to grab the code from CameraLauncher.java
- try {
- // Create entry in media store for image
- // (Don't use insertImage() because it uses default compression setting of 50 - no way to change it)
- ContentValues values = new ContentValues();
- values.put(android.provider.MediaStore.Images.Media.MIME_TYPE, IMAGE_JPEG);
- Uri uri = null;
- try {
- uri = this.cordova.getActivity().getContentResolver().insert(android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI, values);
- } catch (UnsupportedOperationException e) {
- LOG.d(LOG_TAG, "Can't write to external media storage.");
- try {
- uri = this.cordova.getActivity().getContentResolver().insert(android.provider.MediaStore.Images.Media.INTERNAL_CONTENT_URI, values);
- } catch (UnsupportedOperationException ex) {
- LOG.d(LOG_TAG, "Can't write to internal media storage.");
- pendingRequests.resolveWithFailure(req, createErrorObject(CAPTURE_INTERNAL_ERR, "Error capturing image - no media storage found."));
- return;
- }
- }
- FileInputStream fis = new FileInputStream(getTempDirectoryPath() + "/Capture.jpg");
- OutputStream os = this.cordova.getActivity().getContentResolver().openOutputStream(uri);
- byte[] buffer = new byte[4096];
- int len;
- while ((len = fis.read(buffer)) != -1) {
- os.write(buffer, 0, len);
- }
- os.flush();
- os.close();
- fis.close();
-
- // Add image to results
- req.results.put(createMediaFile(uri));
+ // Add image to results
+ req.results.put(createMediaFile(imageUri));
- checkForDuplicateImage();
+ checkForDuplicateImage();
- if (req.results.length() >= req.limit) {
- // Send Uri back to JavaScript for viewing image
- pendingRequests.resolveWithSuccess(req);
- } else {
- // still need to capture more images
- captureImage(req);
- }
- } catch (IOException e) {
- e.printStackTrace();
- pendingRequests.resolveWithFailure(req, createErrorObject(CAPTURE_INTERNAL_ERR, "Error capturing image."));
+ if (req.results.length() >= req.limit) {
+ // Send Uri back to JavaScript for viewing image
+ pendingRequests.resolveWithSuccess(req);
+ } else {
+ // still need to capture more images
+ captureImage(req);
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org