[android-developers] Re: MediaPlayer suddenly stopped working in Android 4.2
I have now verified this same error pops up on a Nexus 10 as well... so now we've got it happening on all three (Nexus 4, 7, 10), which is a pretty good indication that it's a problem in the MediaPlayer in Android 4.2.x.
This really needs the attention of a google engineer.
Apparently I'm not the only one seeing this:
I'm about to do some tests to see if its relate to the encoding of the MP3 file, however it it worked in android 4.1 it should also work in android 4.2.
- Brill Pappin
On Thursday, February 14, 2013 12:38:22 PM UTC-5, Brill Pappin wrote:
--I've been working on an app that plays MP3 files and have started with out with the lowest supported android version and working upward toward JB.For some reason the MediaPlayer starts generating an error in Android 4.2 when it has been working just fine until now.Nobody seems to know what has changed or how to work around it. The only suggestions I've found so far are to do with permissions, but unless they have changed radically for external storage, the MediaPlayer should have permission to read the files.Here is some relevant information. Notice there is no stack trace, just a message printed out.(I've included some of my debugging output for reference).02-14 12:24:05.210: I/MessageListFragment(29567): *** FILE [exists:true]: file:///storage/emulated/0/Android/data/com.primaltech. vvm/files/audio/ V20130115000008.mp3 02-14 12:24:06.001: D/MessageListFragment(29567): Local data file: id=1, rid=V20130115000008, uri=file:///storage/emulated/0/Android/data/com.primaltech. vvm/files/audio/ V20130115000008.mp3 02-14 12:24:06.001: D/MessageListFragment(29567): Preparing to play: file:///storage/emulated/0/Android/data/com.primaltech. vvm/files/audio/ V20130115000008.mp3 02-14 12:24:06.011: E/MediaPlayer(29567): error (1, -2147483648)02-14 12:24:06.051: E/MediaPlayer(29567): Error (1,-2147483648)02-14 12:24:06.051: E/MessageListFragment(29567): what: MediaPlayer.MEDIA_ERROR_UNKNOWN So far I have seen this on both a Nexus 7 and a Nexus 4 running JB 4.2.1, it seems to work fine for the prior versions that I've been able to test (4.0.4, 4.1.1).
--
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
---
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home