Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 134A5200BFD for ; Thu, 8 Dec 2016 01:57:11 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 10B26160B0C; Thu, 8 Dec 2016 00:57:11 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 48319160B2B for ; Thu, 8 Dec 2016 01:57:10 +0100 (CET) Received: (qmail 80428 invoked by uid 500); 8 Dec 2016 00:57:09 -0000 Mailing-List: contact commits-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list commits@cordova.apache.org Received: (qmail 80325 invoked by uid 99); 8 Dec 2016 00:57:09 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Dec 2016 00:57:09 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 5D461F2142; Thu, 8 Dec 2016 00:57:09 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: shazron@apache.org To: commits@cordova.apache.org Date: Thu, 08 Dec 2016 00:57:12 -0000 Message-Id: In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [4/5] cordova-plugin-media git commit: CB-12034 (ios) Add mandatory iOS 10 privacy description archived-at: Thu, 08 Dec 2016 00:57:11 -0000 CB-12034 (ios) Add mandatory iOS 10 privacy description This closes #119 Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-media/repo Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-media/commit/f0a0bb8f Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-media/tree/f0a0bb8f Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-media/diff/f0a0bb8f Branch: refs/heads/2.4.x Commit: f0a0bb8f3c5bd05370dcc383a2a618d234148984 Parents: 6f28f94 Author: Julio Cesar Sanchez Hernandez Authored: Sat Oct 29 23:38:54 2016 +0200 Committer: Julio César Committed: Sun Oct 30 00:07:07 2016 +0200 ---------------------------------------------------------------------- README.md | 14 +++++++++++--- plugin.xml | 56 ++++++++++++++++++++++++++++++-------------------------- 2 files changed, 41 insertions(+), 29 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cordova-plugin-media/blob/f0a0bb8f/README.md ---------------------------------------------------------------------- diff --git a/README.md b/README.md index 818889a..58e89ad 100644 --- a/README.md +++ b/README.md @@ -312,7 +312,7 @@ function recordAudio() { // Pause Recording after 5 seconds setTimeout(function() { - my_media.pauseRecord(); + mediaRec.pauseRecord(); }, 5000); } ``` @@ -427,12 +427,12 @@ function recordAudio() { // Pause Recording after 5 seconds setTimeout(function() { - my_media.pauseRecord(); + mediaRec.pauseRecord(); }, 5000); // Resume Recording after 10 seconds setTimeout(function() { - my_media.resumeRecord(); + mediaRec.resumeRecord(); }, 10000); } ``` @@ -563,6 +563,14 @@ function recordAudio() { var myMedia = new Media("documents://beer.mp3") +- Since iOS 10 it's mandatory to add a `NSMicrophoneUsageDescription` entry in the info.plist. + +`NSMicrophoneUsageDescription` describes the reason that the app accesses the user’s microphone. When the system prompts the user to allow access, this string is displayed as part of the dialog box. To add this entry you can pass the variable `MICROPHONE_USAGE_DESCRIPTION` on plugin install. + +Example: `cordova plugin add cordova-plugin-media --variable MICROPHONE_USAGE_DESCRIPTION="your usage message"` + +If you don't pass the variable, the plugin will add an empty string as value. + ### Windows Quirks - Windows devices can use MP3, M4A and WMA formats for recorded audio. However in most cases it is not possible to use MP3 for audio recording on _Windows Phone 8.1_ devices, because an MP3 encoder is [not shipped with Windows Phone](https://msdn.microsoft.com/en-us/library/windows/apps/windows.media.mediaproperties.mediaencodingprofile.createmp3.aspx). http://git-wip-us.apache.org/repos/asf/cordova-plugin-media/blob/f0a0bb8f/plugin.xml ---------------------------------------------------------------------- diff --git a/plugin.xml b/plugin.xml index 951d301..423947f 100644 --- a/plugin.xml +++ b/plugin.xml @@ -59,7 +59,7 @@ id="cordova-plugin-media" - + @@ -79,31 +79,35 @@ id="cordova-plugin-media" - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + $MICROPHONE_USAGE_DESCRIPTION + + --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org For additional commands, e-mail: commits-help@cordova.apache.org