[ https://issues.apache.org/jira/browse/CB-11418?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15434812#comment-15434812 ]
Colin Bau commented on CB-11418: -------------------------------- 2 months passed anything wrong ? > "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 > Security Level: Public(Anyone can view this level - this is the > default.) > 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 > Labels: iOS > > ===== > 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' > === > any wrong with my code ? -- 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