today, i found this matter. and i see some code and found that the duration
of the file such as wma and wmv in the datebase is also 0. i will go on it.
who know why and how to solve, please give some advise.

On Thu, Apr 9, 2009 at 4:13 AM, Peter Jeffe <[email protected]> wrote:

>
> Some audio files return 0 from MediaPlayer.getDuration(), even though
> they're perfectly valid files that play ok and that players on Windows
> can find the duration of.
>
> There seem to be two different cases here: certain file types such
> as .wma and .wav always return 0 duration, and others only do so
> sometimes.  I haven't been able to find any pattern in the latter
> case, but it does seem consistent per file.
>
> The music player displays 0:00 duration for these, so it's not just my
> code.  Any ideas on what's causing this and whether there's a
> workaround?  Thanks.
>
> -- Peter
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to