You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Alexander Sorokin (JIRA)" <ji...@apache.org> on 2016/08/24 13:27:20 UTC

[jira] [Commented] (CB-11380) Media Plugin - IOS: Error when creating Media object with new file

    [ https://issues.apache.org/jira/browse/CB-11380?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15434932#comment-15434932 ] 

Alexander Sorokin commented on CB-11380:
----------------------------------------

Unfortunately I haven't been able to reproduce this issue neither on iPhone 6 Plus with iOS 9.3.1 nor on iPad 2 with iOS 8.1

[~jkeating] can you please use the plugin from master branch here: https://github.com/apache/cordova-plugin-media/ and tell us if the issue persists?

> Media Plugin - IOS: Error when creating Media object with new file
> ------------------------------------------------------------------
>
>                 Key: CB-11380
>                 URL: https://issues.apache.org/jira/browse/CB-11380
>             Project: Apache Cordova
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: Plugin Media
>    Affects Versions: 2.3.0
>         Environment: iOS 9.3.1
>            Reporter: John Keating
>              Labels: ios, media, url
>
> The line:
> {code:borderStyle=solid}var myMedia = new Media("documents://hello.wav",
>    function() {
>         console.log("success");
>    },
>    function(er) {
>         console.log(er);
>    }
> );
> {code}
> results in the error "Cannot use audio file from resource 'documents:hello.wav'", when "hello.wav" does not exist.  The created Media object is usable (I can record and play back), but the error means the constructor's success callback never gets called.  Also happens with variations of the src URI using "file" and "cdvfile".
> This is caused by a change to the validation parameter from NO to YES in commit e5b663ac951b2d8cb2e5e470d2c7072aa56cf779 on March 2nd.



--
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