audioview icon indicating copy to clipboard operation
audioview copied to clipboard

Time is not showing

Open JEuler opened this issue 6 years ago • 5 comments

Hi! It's me again! I've tested your fix for #8 and it is working. But now I don't have time for track. :( 2019-04-19_15-24-19

JEuler avatar Apr 19 '19 12:04 JEuler

If I'm using it in Activity all is working nice and time is showing up.

JEuler avatar Apr 19 '19 12:04 JEuler

As I see the getDuration method is returning -1. It is the same behaviour for the http://programmerguru.com/android-tutorial/wp-content/uploads/2013/04/hosannatelugu.mp3 which is included in sample app. Hm.

JEuler avatar Apr 24 '19 13:04 JEuler

If I'm using it in Activity all is working nice and time is showing up.

But where it does not work?

Default media player in Android does not provide duration for track from sample app for some reason. I thought it's because of remote location (from Internet).

4eRTuk avatar May 22 '19 15:05 4eRTuk

It is not work in Fragment. I can show you screenshot from Activity, and it is showing time correctly. It is strange.

JEuler avatar May 23 '19 00:05 JEuler

But maybe it is not related. I am using audio caching... maybe it is somehow not working for fragments piece and working on activity side. Will check.

JEuler avatar May 24 '19 14:05 JEuler