Re: https://issues.apache.org/jira/browse/CB-906?focusedCommentId=13295956&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-13295956
Adding an iOS option for Media.play: http://docs.phonegap.com/en/1.8.1/cordova_media_media.md.html#media.play iOS already has its own quirk for play (numberOfLoops option), I would just be adding "playWhenScreenIsLocked". Read the article link why this is needed. Going to the Web Audio API doesn't solve this wrt to the hardware mute button for iOS 5 and below. With iOS 6 there is built in support to UIWebView but I haven't tested yet what happens to audio instantiated with the Web Audio API when the hardware mute button is toggled. There is no way to detect toggling of the hardware mute button in iOS > 4.
