rxlabz / audioplayer

A flutter plugin to play audio files iOS / Android / MacOS / Web ( Swift/Java )

Home Page:https://pub.dartlang.org/packages/audioplayer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Make AudioPlayer._state public

ThinkDigitalSoftware opened this issue · comments

Could you make this public so we can read the current state instead of having us manage it manually? I don't see why these 2 shouldn't be tied together since we shouldn't need to play audio and say that it's paused. I'm having an issue where I've told it to play, I switch tabs and come back and it's still playing, but my own state variable shows paused because the variable got reset. I'm working on a way to get around that, but I think it would be much less work if the state variable was accessible from outside the class.

Oh, it already is 😄