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

Not possible to release player

Open nsaquib75 opened this issue 2 years ago • 0 comments

Expected Behaviour

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

RmxAudioPlayer.m

  • (void) release:(CDVInvokedUrlCommand*)command { NSLog(@"RmxAudioPlayer.execute=release");

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 [email protected]

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

nsaquib75 avatar Aug 04 '21 09:08 nsaquib75