You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Colin Bau (JIRA)" <ji...@apache.org> on 2016/06/12 12:51:21 UTC
[jira] [Created] (CB-11418) "cordova-plugin-media" 2.3.0 can not
use "record" behavior in iOS 9.3.2
Colin Bau created CB-11418:
------------------------------
Summary: "cordova-plugin-media" 2.3.0 can not use "record" behavior in iOS 9.3.2
Key: CB-11418
URL: https://issues.apache.org/jira/browse/CB-11418
Project: Apache Cordova
Issue Type: Bug
Components: Plugin Media
Environment: Cordova-android 5.1.1
Cordova-iOS 4.1.1
cordova-plugin-camera 2.3.0
cordova-plugin-wkwebview-engine 1.0.3
ipad mini iOS 9.3.2
Reporter: Colin Bau
=====
if(navigator.userAgent.match(/iPad|iPhone|iPod/i))
{
var extension = ".wav";
}
if(navigator.userAgent.match(/Android/i))
{
var extension = ".amr";
}
src = 'test' + extension;
mediaRecord = new Media(src, onSuccess, onError);
function onError(error)
{
navigator.notification.alert("error code:" + error.code + "\n" + "error messages:" + error.message, null, null);
}
=====
in Android,it will trigger the "onSuccess" callback
but in iOS 9.3.2,it will trigger the onError callback and output these debug message
=====
error code:1
error messages:cannot use audio file from resource 'test.wav'
===
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org