jaydeepw / audio-wife

A simple themable & integrable audio player library for Android.
MIT License
237 stars 78 forks source link

Showing the player in ListView #12

Open niteshkhatri opened 9 years ago

niteshkhatri commented 9 years ago

Hi. First of all thank you for such a great library. I am using it in one of my project. I am showing the media player in ListView's row.

PROBLEM 1: I cannot use previous instance of AudioWife class. I solved it by returning new instance every time I call getInstance(). Am I doing correct? Is there any other way?

PROBLEM 2: Suppose audio is playing, now I scrolled the list down, now I scrolled it up. Now the audio is still playing and the seekbar is also moving which is good, but the time is not visible and also play and pause both icons are visible.

Please help me solve these two issues.

MahmoudAlnouno commented 7 years ago
  AudioWife audioWife = new AudioWife();
audioWife.init(mContext, Uri.parse("PATH")).
useDefaultUi(holder.viewRec, ((Activity) mContext).getLayoutInflater());