Sound won't play in Cordova iOS 8

I cannot play audio in iOS 8 Cordova app. the same code works on iOS 7.

The message I receive is

Unknown resource documents: // audioFilePath '

My Cordova version is 3.5.1 and the Media plugin version is 0.2.15

Any help is appreciated. Thank.

0


source to share


1 answer


Resolved.

I created a media object like,

new Media("documents://../appName.app/www/" + src...)

      



I found that the resource locator on iOS is always in the www folder. So I just needed to create an object like

new Media("" + src...)

      

+1


source







All Articles