cordova-plugin-backgroundaudio icon indicating copy to clipboard operation
cordova-plugin-backgroundaudio copied to clipboard

Playlist

Open ghost opened this issue 7 years ago • 2 comments

Hello, i hope you can help me.

When the audio become to his finish, Media plugin give me the status MEDIA_STOPPED, then I try to play the next song in the playlist.

When my app is in focus, every works fine but if the iPad is blocked or the app is in background I recibe a Error:{"message":"","code":4}

    player.media = new Media(path,
        function(){},
        function(error) {
            if (error.code != 0) {
                navigator.notification.alert("Error: " + JSON.stringify(error), function() {});
            }
        },
        function(mediaStatus) {
            if (Media.MEDIA_STOPPED == mediaStatus) {
                    $(document).trigger('player-stop');
                }
            }
        });

ghost avatar Dec 19 '17 22:12 ghost

have a similar issue. NEVER found a solution.

Currently I'm investigating to see if NativeScript will do what I need.

neoassyrian avatar Dec 20 '17 02:12 neoassyrian

I'm facing what looks like the same issue within cordova-plugin-media

https://github.com/apache/cordova-plugin-media/issues/213

rlyttle avatar Jun 07 '19 15:06 rlyttle