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-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org

Reply via email to