You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by "Shazron Abdullah (JIRA)" <ji...@apache.org> on 2012/09/07 01:05:07 UTC

[jira] [Resolved] (CB-1384) Online .wav files cannot be played, but ones local to www can

     [ https://issues.apache.org/jira/browse/CB-1384?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shazron Abdullah resolved CB-1384.
----------------------------------

    Resolution: Fixed

Fix commit - http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/commit/73f77bf0
                
> Online .wav files cannot be played, but ones local to www can
> -------------------------------------------------------------
>
>                 Key: CB-1384
>                 URL: https://issues.apache.org/jira/browse/CB-1384
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 2.0.0
>            Reporter: Shazron Abdullah
>            Assignee: Shazron Abdullah
>             Fix For: 2.1.0
>
>
> See: https://groups.google.com/d/topic/phonegap/B7anQZoBKKw/discussion
> This is because NSTemporaryDirectory() returns a trailing slash, making the temporary file path we create to be invalid.
> Change:
> {code}
> NSString* filePath = [NSString stringWithFormat:@"%@/%@.mp3", 
> NSTemporaryDirectory(), uuidString]; 
> {code}
> To:
> {code}
> NSString* filePath = [NSString stringWithFormat:@"%@/%@.mp3", 
> [NSTemporaryDirectory() stringByStandardizingPath], uuidString]; 
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira