Closed kalismeras61 closed 3 years ago
I am also facing same issue any solution ? @kalismeras61 @florent37
@ThalapathySiva I fixed the issue.
Use, below func.
func deinitMediaPlayerNotifEvent() {
commandCenter.playCommand.isEnabled = false
commandCenter.playCommand.removeTarget(self)
commandCenter.pauseCommand.isEnabled = false
commandCenter.pauseCommand.removeTarget(self)
commandCenter.previousTrackCommand.isEnabled = false
commandCenter.previousTrackCommand.removeTarget(self)
commandCenter.nextTrackCommand.isEnabled = false
commandCenter.nextTrackCommand.removeTarget(self)
}
I am also facing same issue any solution ? @kalismeras61 @florent37
could you tell me where to use this function? @kalismeras61
could you tell me where to use this function? @kalismeras61
You have to change this here;
https://github.com/florent37/Flutter-AssetsAudioPlayer/blob/master/darwin/Classes/Music.swift
isn't this added in latest version ? should we change it manually.. thanks for your reply...
It is added, but it is wrong. You should fork this repository and change it.
Why this issue is closed?
Flutter Version
My version : latest stable
Lib Version
My version : Latest
Platform (Android / iOS / web) + version
Platform : IOS 13.7
Describe the bug
Music doesn't continue when app is background. It is only playing one song and then stopping playing.