cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From purplecabb...@apache.org
Subject cordova-plugin-media-capture git commit: Document the quality property in Android quirks
Date Wed, 05 Aug 2015 20:51:53 GMT
Repository: cordova-plugin-media-capture
Updated Branches:
  refs/heads/master 6732af881 -> 3e73fce87


Document the quality property in Android quirks


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/3e73fce8
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-media-capture/tree/3e73fce8
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-media-capture/diff/3e73fce8

Branch: refs/heads/master
Commit: 3e73fce870a8f1525152cb2cc2f6f3869522d40f
Parents: 6732af8
Author: Jesse MacFadyen <purplecabbage@gmail.com>
Authored: Wed Aug 5 13:48:52 2015 -0700
Committer: Jesse MacFadyen <purplecabbage@gmail.com>
Committed: Wed Aug 5 13:48:52 2015 -0700

----------------------------------------------------------------------
 README.md | 15 +++++++++++++--
 1 file changed, 13 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-media-capture/blob/3e73fce8/README.md
----------------------------------------------------------------------
diff --git a/README.md b/README.md
index 7d6ab8d..d02f992 100644
--- a/README.md
+++ b/README.md
@@ -357,11 +357,22 @@ capturing a video clip, the `CaptureErrorCB` callback executes with
a
 
 ### BlackBerry 10 Quirks
 
-- The __duration__ parameter is not supported, so the length of recordings can't be limited
programmatically.
+- The __duration__ property is ignored, so the length of recordings can't be limited programmatically.
 
 ### iOS Quirks
 
-- The __limit__ parameter is not supported.  Only one video is recorded per invocation.
+- The __limit__ property is ignored.  Only one video is recorded per invocation.
+
+### Android Quirks
+
+- Android supports an additional __quality__ property, to allow capturing video at different
qualities.  A value of `1` ( the default ) means high quality and value of `0` means low quality,
suitable for MMS messages. 
+  See http://developer.android.com/reference/android/provider/MediaStore.html#EXTRA_VIDEO_QUALITY
for more details.
+
+### Example ( Android w/ quality )
+
+    // limit capture operation to 1 video clip of low quality
+    var options = { limit: 1, quality: 0 };
+    navigator.device.capture.captureVideo(captureSuccess, captureError, options);
 
 
 ## CaptureCB


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


Mime
View raw message