Cordova media is very slow to play on iOS

I apologize for my bad English but i’m italian and i don’t speak english very well.

I have a problem with audio player, is very slow to start on iOS (not on android). = function() {
     $scope.state = 'loader';
            function mediaStatusCallback(status) {
                if (status == 0) {
                if (status == 1) {
                    $scope.state = 'loader';
                if (status == 2) {
                    $scope.state = 'play';
                if (status == 3) {
                    $scope.state = 'pause';
                if (status == 4) {
                    $scope.state = 'pause';
            if (media == null) {
                media = new Media(src, null, null, mediaStatusCallback);
                console.log('media != null');

When i tap play button, audio don’t start, it start after a minute, while on Android it start immediately.

Thank you for help.

Could you find how to fix this problem? I have the same problem, but with stream audio.

Thank you.

i have the same problem with stream audio, but i have not been able to fix the problem :’(

I have the same issue. Anyone can help?

With the new version of the plugin , 2.2.0 , it solves the problem. But no longer works for local playback.

1 Like