[android-developers] Re: Android MediaPlayer sometimes stops playing a sound file early
Have you tried playing these same files not as asset files? Put them
somewhere on your SD card, then do:
player.setDataSourc(absoluteFilePath);
See if this makes a difference. If so, include your files in the
resources directory as "raw" rather than using assets. This is what I
did in my apps and I never had the problem you described.
Martin
mobitobi
Gentle Alarm, Sleep Now
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home