Flutter-AssetsAudioPlayer icon indicating copy to clipboard operation
Flutter-AssetsAudioPlayer copied to clipboard

Player disappears after tapping "stop"

Open lawkeen opened this issue 4 years ago • 12 comments

Hi, I downloaded the latest version of package from GitHub and was trying to start example. All looks working, but after tapping on stop player disappears, there are no errors in console btw. This happened only at Android, iOS works normally. What's the problem?

https://user-images.githubusercontent.com/46008086/118371683-c943a780-b5be-11eb-83a6-912c3d287d2a.mov

lawkeen avatar May 15 '21 16:05 lawkeen

same issue here

muratmjdci avatar May 18 '21 00:05 muratmjdci

Issue is about liveStream function, change it to Audio.network even for live streams

muratmjdci avatar May 18 '21 12:05 muratmjdci

I am having the same issue

parthghedia avatar May 19 '21 17:05 parthghedia

Has anyone made any progress in this?

harshkumarkhatri avatar May 29 '21 15:05 harshkumarkhatri

@muratmjdci Can you mention where do we need to change this thing?

harshkumarkhatri avatar May 29 '21 15:05 harshkumarkhatri

@harshkumarkhatri just change Audio.livestream(....) to Audio.network(....)

muratmjdci avatar Jun 01 '21 09:06 muratmjdci

@muratmjdci but where? I tried searching for the same in multiple files and tried changing it as well but ended up getting errors. Can you please specify which file to look into or change this into?

harshkumarkhatri avatar Jun 01 '21 09:06 harshkumarkhatri

@muratmjdci I am still stuck. Can you help?

harshkumarkhatri avatar Jul 03 '21 05:07 harshkumarkhatri

@muratmjdci I am still stuck. Can you help?

Dude i already told you the solution, Where you define playlist just change the Audio.livestream(....) to Audio.network(....)

muratmjdci avatar Jul 08 '21 15:07 muratmjdci

@muratmjdci I am still stuck. Can you help?

Dude i already told you the solution, Where you define playlist just change the Audio.livestream(....) to Audio.network(....)

The whole reason of me commenting was that I have implemented that change and it is still showing the same behaviour

harshkumarkhatri avatar Jul 08 '21 16:07 harshkumarkhatri

@harshkumarkhatri can you share your code

muratmjdci avatar Jul 09 '21 13:07 muratmjdci

You can find the code over here for the multiple screens. https://gist.github.com/harshkumarkhatri/b2a2d54039cce6e9b2f40e0b100ed669 https://gist.github.com/harshkumarkhatri/475e44e677a1a0437595fea86d143b08 https://gist.github.com/harshkumarkhatri/8ef8a7dc8a62a0d8e60e1e4c9dd03901 https://gist.github.com/harshkumarkhatri/bba637ad4af3f7dfdf1244a522c18cb5

The basic code which I have used related to the plugin is the same which has been given in the example app. So let me know if you want me to add code for some other file as well.

harshkumarkhatri avatar Jul 12 '21 09:07 harshkumarkhatri