Open sudachi808 opened 3 years ago
I'm having the same problem. My code works fine on my Android phone but on my iPhone I'm seeing the same behavior.
I'm looking at the Swift code for the iOS player and noticed that when stop is called it's setting the media player to nil which seems suspect.
https://github.com/florent37/Flutter-AssetsAudioPlayer/blob/master/darwin/Classes/Music.swift#L815
Note that when you pause() in the swift code the player doesn't get set to nil. I don't know the Swift API at all for this functionality so I may be off track here.
same problem on iPhone
Same problem here, only on iPhone, on Android everything seems to work as expected.
The problem is still relevant, to avoid it, i create a new AudioPlayer after stopping the one that was used just before.
open()
play()
stop()
open()
play()
My codes has something wrong❓🤔