问题
I am unable to play audio in iOS 8 Cordova app. the same code works on iOS 7.
The message I get is,
Unknown resource 'documents://audioFilePath'
My Cordova version is 3.5.1 and Media plugin version is 0.2.15
Any help is appreciated. Thanks.
回答1:
Solved This.
I was Creating the media object as,
new Media("documents://../appName.app/www/" + src...)
I Found that the resource pointer in iOS is always at www folder. So i just had to create the object as,
new Media("" + src...)
来源:https://stackoverflow.com/questions/28324059/audio-not-playing-in-cordova-ios-8