Rolamix / cordova-plugin-playlist

🎶 A Cordova plugin for Android and iOS with native support for audio playlists, background support, and lock screen controls 🎶
MIT License
33 stars 33 forks source link

Not possible to release player #44

Open nsaquib75 opened 3 years ago

nsaquib75 commented 3 years ago

Expected Behaviour

It is not possible to release/close player. I can see there is some code in iOS like for example

RmxAudioPlayer.m

but can not find any hock in RmxAudioPlayer.

Problem is if player is not closed than Music Controls /lock screen controls are locking Audio on iOS even after media playing is completed, and after that no other App can use Audio on iOS. I am expecting this is due to music controls or player is not released. I have to control my App completely to use Audio with other applications.

Actual Behaviour

Reproduce Scenario (including but not limited to)

Steps to Reproduce

Platform and Version (eg. Android 5.0 or iOS 9.2.1)

iOS

(Android) What device vendor (e.g. Samsung, HTC, Sony...)

Cordova CLI version and cordova platform version

cordova --version                                    # e.g. 6.0.0

10.0.0 cordova platform version android # e.g. 4.1.1 ios@6.0.2

Plugin version

cordova plugin version | grep phonegap-plugin-push   # e.g. 1.5.3

cordova-plugin-playlist 0.9.2 "AudioPlayer"

Sample Push Data Payload

Sample Code that illustrates the problem

Logs taken while reproducing problem