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 7A663200C62 for ; Wed, 26 Apr 2017 18:12:09 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 77407160BA8; Wed, 26 Apr 2017 16:12:09 +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 BECD2160B95 for ; Wed, 26 Apr 2017 18:12:08 +0200 (CEST) Received: (qmail 31842 invoked by uid 500); 26 Apr 2017 16:12:08 -0000 Mailing-List: contact issues-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@cordova.apache.org Received: (qmail 31829 invoked by uid 99); 26 Apr 2017 16:12:07 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Apr 2017 16:12:07 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 70067CD31D for ; Wed, 26 Apr 2017 16:12:07 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id Wr7fQGItFCBM for ; Wed, 26 Apr 2017 16:12:05 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id DD4965FCEA for ; Wed, 26 Apr 2017 16:12:04 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 6433FE0BB3 for ; Wed, 26 Apr 2017 16:12:04 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 21A5C21DE1 for ; Wed, 26 Apr 2017 16:12:04 +0000 (UTC) Date: Wed, 26 Apr 2017 16:12:04 +0000 (UTC) From: "Leo Schubert (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: =?utf-8?Q?[jira]_[Comment_Edited]_(CB-12542)_can=E2=80=99t_?= =?utf-8?Q?record_to_a_=E2=80=9Cwav=E2=80=9D_file_on_IOS_media_plugin?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 26 Apr 2017 16:12:09 -0000 [ https://issues.apache.org/jira/browse/CB-12542?page=3Dcom.atlassian.j= ira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D159850= 66#comment-15985066 ]=20 Leo Schubert edited comment on CB-12542 at 4/26/17 4:11 PM: ------------------------------------------------------------ [~filmaj]yes I have a signed Apache ICLA. I got an e-mail from Craig L Russ= el saying "With this message, the Cordova PMC has been notified that your ICLA has be= en filed." So please ask the Cordova PMC (because I don't know who this is:-) was (Author: leopatras): [~filmaj]yes I have a signed Apache ICLA. I got an e-mail from Craig L Russ= el saying "With this message, the Cordova PMC has been notified that your ICLA has be= en filed." So pleas aks the Cordova PMC (because I don't know who this is:-) > can=E2=80=99t record to a =E2=80=9Cwav=E2=80=9D file on IOS media plugin > ------------------------------------------------ > > Key: CB-12542 > URL: https://issues.apache.org/jira/browse/CB-12542 > Project: Apache Cordova > Issue Type: Bug > Components: Plugin Media > Affects Versions: 3.5.0 > Environment: 9.x Simulator , IOS 8.x device (iPod touch) > Reporter: Leo Schubert > Priority: Critical > Labels: pluginsrelease > Attachments: cdvsound.diff > > > I get =E2=80=9CFailed to initialize AVAudioRecorder: (null)=E2=80=9D in t= he error callback of the startRecordingAudio() exec API. > I see that the AVAudioPlayer settings in CDVAudio.m are > {code} > NSDictionary *audioSettings =3D @{AVFormatIDKey: @(kAudioFormatMPEG4AAC), > AVSampleRateKey: @(44100), > AVNumberOfChannelsKey: @(1), > AVEncoderAudioQualityKey: @(A= VAudioQualityMedium) > }; > {code} > This is IMHO the reason it doesn=E2=80=99t work. Either one uses the .m4a= extension with {{kAudioFormatMPEG4AAC}} or > .wav with the {{kAudioFormatLinearPCM}} key (the IOS docs are very unclea= r about which file extensions are actually supported) > The plugin enforces =E2=80=9Cwav=E2=80=9D but the settings enforce the MP= EG4AAC encoder. > Using the attached simple patch and using .m4a at the JS side solves the = problem and records on my iPod touch IOS 8.x. > I stumbled also across https://github.com/remoorejr/cordova-plugin-media-= with-compression where the exchange wav->m4a is done too. > Strangely I can=E2=80=99t find much problems reported on stackoverflow, b= ut this one seems to cover it > http://stackoverflow.com/questions/12244111/failed-to-initialize-avaudior= ecorder-null > The last poster seem to indicate that the problem sneaked in in IOS 8 (pr= eviously it was probably possible to record to a .wav file but with AAC con= tent). > Looking at the recordAudio() test for the plugin in tests/tests.js I can= =E2=80=99t see that potential errors are actually causing the test to fail:= they are just logged with console.log , so this may explain why the proble= m has not been detected by the tests. -- This message was sent by Atlassian JIRA (v6.3.15#6346) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org For additional commands, e-mail: issues-help@cordova.apache.org