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 88189200C4B for ; Mon, 20 Mar 2017 14:15:49 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 868E7160B81; Mon, 20 Mar 2017 13:15:49 +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 A6FB7160B76 for ; Mon, 20 Mar 2017 14:15:48 +0100 (CET) Received: (qmail 58934 invoked by uid 500); 20 Mar 2017 13:15:47 -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 58923 invoked by uid 99); 20 Mar 2017 13:15:47 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Mar 2017 13:15:47 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 550901A02F3 for ; Mon, 20 Mar 2017 13:15:47 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.651 X-Spam-Level: X-Spam-Status: No, score=0.651 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_NEUTRAL=0.652] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id ozvW8HaIvrM2 for ; Mon, 20 Mar 2017 13:15:45 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 2D5C15F243 for ; Mon, 20 Mar 2017 13:15:45 +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 A96E0E0A4B for ; Mon, 20 Mar 2017 13:15:42 +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 C8525254D3 for ; Mon, 20 Mar 2017 13:15:41 +0000 (UTC) Date: Mon, 20 Mar 2017 13:15:41 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: =?utf-8?Q?[jira]_[Commented]_(CB-12542)_can=E2=80=99t_rec?= =?utf-8?Q?ord_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: Mon, 20 Mar 2017 13:15:49 -0000 [ https://issues.apache.org/jira/browse/CB-12542?page=3Dcom.atlassian.j= ira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D159326= 15#comment-15932615 ]=20 ASF GitHub Bot commented on CB-12542: ------------------------------------- Github user cordova-qa commented on the issue: https://github.com/apache/cordova-plugin-media/pull/134 =20 Cordova CI Build has completed successfully. =20 **Commit** - [Link](https://github.com/apache/cordova-plugin-media/= pull/134/commits/5d7b4e3fe7fe6445c675e5754507b62b321807f0) **Dashboard** - [Link](http://cordova-ci.cloudapp.net:8080/job/cordova-= plugin-media-pr/112/) =20 | Builder Name | Console Output | Test Report | Device Logs | | :---: | :---: | :---: | :---: | | [Windows 10 Store]( http://cordova-ci.cloudapp.net:8080/job/cordova-= plugin-media-pr/112//PLATFORM=3Dwindows-10-store/) | [Link]( http://cordova= -ci.cloudapp.net:8080/job/cordova-plugin-media-pr/112//PLATFORM=3Dwindows-1= 0-store/console) | [Link]( http://cordova-ci.cloudapp.net:8080/job/cordova-= plugin-media-pr/112//PLATFORM=3Dwindows-10-store/testReport/) | [Link]( htt= p://cordova-ci.cloudapp.net:8080/job/cordova-plugin-media-pr/112//PLATFORM= =3Dwindows-10-store/artifact/) | | [iOS 9.3]( http://cordova-ci.cloudapp.net:8080/job/cordova-plugin-med= ia-pr/112//PLATFORM=3Dios-9.3/) | [Link]( http://cordova-ci.cloudapp.net:80= 80/job/cordova-plugin-media-pr/112//PLATFORM=3Dios-9.3/console) | [Link]( h= ttp://cordova-ci.cloudapp.net:8080/job/cordova-plugin-media-pr/112//PLATFOR= M=3Dios-9.3/testReport/) | [Link]( http://cordova-ci.cloudapp.net:8080/job/= cordova-plugin-media-pr/112//PLATFORM=3Dios-9.3/artifact/) | | [iOS 10.0]( http://cordova-ci.cloudapp.net:8080/job/cordova-plugin-me= dia-pr/112//PLATFORM=3Dios-10.0/) | [Link]( http://cordova-ci.cloudapp.net:= 8080/job/cordova-plugin-media-pr/112//PLATFORM=3Dios-10.0/console) | [Link]= ( http://cordova-ci.cloudapp.net:8080/job/cordova-plugin-media-pr/112//PLAT= FORM=3Dios-10.0/testReport/) | [Link]( http://cordova-ci.cloudapp.net:8080/= job/cordova-plugin-media-pr/112//PLATFORM=3Dios-10.0/artifact/) | | [Android 4.4]( http://cordova-ci.cloudapp.net:8080/job/cordova-plugin= -media-pr/112//PLATFORM=3Dandroid-4.4/) | [Link]( http://cordova-ci.cloudap= p.net:8080/job/cordova-plugin-media-pr/112//PLATFORM=3Dandroid-4.4/console)= | [Link]( http://cordova-ci.cloudapp.net:8080/job/cordova-plugin-media-pr/= 112//PLATFORM=3Dandroid-4.4/testReport/) | [Link]( http://cordova-ci.clouda= pp.net:8080/job/cordova-plugin-media-pr/112//PLATFORM=3Dandroid-4.4/artifac= t/) | | [Android 5.1]( http://cordova-ci.cloudapp.net:8080/job/cordova-plugin= -media-pr/112//PLATFORM=3Dandroid-5.1/) | [Link]( http://cordova-ci.cloudap= p.net:8080/job/cordova-plugin-media-pr/112//PLATFORM=3Dandroid-5.1/console)= | [Link]( http://cordova-ci.cloudapp.net:8080/job/cordova-plugin-media-pr/= 112//PLATFORM=3Dandroid-5.1/testReport/) | [Link]( http://cordova-ci.clouda= pp.net:8080/job/cordova-plugin-media-pr/112//PLATFORM=3Dandroid-5.1/artifac= t/) | =20 > 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 > 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