Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-1384

Online .wav files cannot be played, but ones local to www can

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.0
    • 2.1.0
    • cordova-ios
    • None

    Description

      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:

      NSString* filePath = [NSString stringWithFormat:@"%@/%@.mp3", 
      NSTemporaryDirectory(), uuidString]; 
      

      To:

      NSString* filePath = [NSString stringWithFormat:@"%@/%@.mp3", 
      [NSTemporaryDirectory() stringByStandardizingPath], uuidString]; 
      

      Attachments

        Activity

          People

            shazron Shazron Abdullah
            shazron Shazron Abdullah
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: