cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John M. Wargo (JIRA)" <>
Subject [jira] [Created] (CB-5890) Media won't play local file on iOS
Date Fri, 24 Jan 2014 13:58:38 GMT
John M. Wargo created CB-5890:

             Summary: Media won't play local file on iOS
                 Key: CB-5890
             Project: Apache Cordova
          Issue Type: Bug
          Components: iOS
    Affects Versions: 3.3.0
            Reporter: John M. Wargo

I have an application that will play a media file on Android, but not on iOS. When I try to
play the file, the console indicates that it can find the file, but fails on opening it:

Failed to initialize AVAudioPlayer

Here's some console entries:

2014-01-24 08:49:51.374 Ex141[386:60b] Entering doPlay
2014-01-24 08:49:51.376 Ex141[386:60b] Found resource '/var/mobile/Applications/C557863E-BB8C-4384-8188-9C36B5B603C4/'
in the web folder.
2014-01-24 08:49:51.391 Ex141[386:60b] Failed to initialize AVAudioPlayer: The operation couldn’t
be completed. (OSStatus error 1685348671.)
2014-01-24 08:49:51.394 Ex141[386:60b] THREAD WARNING: ['Media'] took '18.647949' ms. Plugin
should use a background thread.
2014-01-24 08:49:51.396 Ex141[386:60b] Leaving doPlay
2014-01-24 08:49:51.397 Ex141[386:60b] ERROR: Entering mediaError
2014-01-24 08:49:51.398 Ex141[386:60b] ERROR: {"message":"","code":4}

Notice that the message string is blank. 

This message was sent by Atlassian JIRA

View raw message