Hello,

I think I've hit a timing bug related to mp3 playback over http. The
first time I hit it I noticed that I could play a particular file over
3g, but that it would not play over wifi. These results were using the
same url. I also found that I could put the same file on another
server and it played over both 3g and wifi. At this point it appeared
to be a simple timing issue.

Further investigation showed the problem was related not only to
network speeds, but also to the characteristics of the file. In
particular I found that the id3 tag of the mp3 affected when it would
and would not play. If I reduced the size of the tag or removed it
completely, the file would play over wifi.

Here are some specifics:

* http://wallacedash.com/id3bug/MediaPlayerTest.apk
This is a rough and dirty activity to start audio playback. I did all
my testing with this.

* http://wallacedash.com/id3bug/MediaPlayerTest.tgz
My eclipse project for the test app.

* http://wallacedash.com/id3bug/tone_no_header.mp3
30 second mp3 of a simple tone. The file has no id3 tag. Using the
test app, this file plays both over 3g and wifi

* http://wallacedash.com/id3bug/tone_xxx.mp3
Same tone file as above, but with an ID3v2.3.0 tag added. The tag is
4096 bytes long. It contains a single field, TALB. This field is
filled with x's. This file will play over 3g with the test app, but
not over wifi.

I did additional testing and found that only the size of the tag
mattered.  The content of the tag was irrelevant. One field, many
fields, lots of spacing, no spacing, none of that mattered.

I also discovered that reducing the size of the tag caused the file to
play over wifi. Interestingly I also found that significantly
increasing the size of the tag (for example, embedding album art)
caused it to play over wifi. I did not track down the size cutoffs
because I believe this to be a timing issue at the core and so the
cutoffs would be particular to my network characteristics.

My guess is that this is a bug in OpenCORE. Does anyone have any
input?




-- 
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