GitHub user ghenry22 opened a pull request: https://github.com/apache/cordova-plugin-media/pull/62
Streaming & Background threading on play This fixes 2 issues in the Cordova Jira, both with iOS. It enables streaming support for media playback from URLs while retaining the existing playback for local media. The second part is the simply background thread the play function so it doesn't block the ui or lock up the app on load. Gets rid of some of those pesky warnings in xcode too. Tested with simulator and on iphone 5 and iphone 6 and ipad 2, with iOS 8.1, 8.3 & 8.4 Please merge these and bump the version of the media plugin so I can stop installing them from my own fork :) Fix for CB-57 Updated to use avplayer when url starts with http:// or https:// for full streaming support. All other urls will use the standard AVAudioplayer Fix for CB-8222 Background thread on play to prevent locking during initial load of media. You can merge this pull request into a Git repository by running: $ git pull https://github.com/ghenry22/cordova-plugin-media avplayer_streaming Alternatively you can review and apply these changes as the patch at: https://github.com/apache/cordova-plugin-media/pull/62.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #62 ---- commit 00ddb9372bf4c9b96ccea0dbd285499df1809277 Author: ghenry22 <ghenr...@gmail.com> Date: 2015-07-29T07:14:59Z Streaming & Background threading on play Fix for CB-57 Updated to use avplayer when url starts with http:// or https:// for full streaming support. All other urls will use the standard AVAudioplayer Fix for CB-8222 Background thread on play to prevent locking during initial load of media. ---- --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@cordova.apache.org For additional commands, e-mail: dev-h...@cordova.apache.org