I'm working on a tablet app which lets you view videos and page through them using a ViewPager. The videos are using a VideoView. It's working just fine on a Xoom and Transformer Prime. On the Galaxy Tab 10.1 more often than not the video errors after a new page has been selected. I'm getting:
MediaPlayer Error(1,-214783648)
VideoView Error: 1, -214783648
Videos are loaded as pages are selected and i'm using an onPrepared listener to start playing the video as soon as it's loaded. The error seems to throw before onPrepared is called, but I can see the first frame of video, so it appears to have loaded. I've tried delaying playback but that didn't improve anything. I've tried loading the video again from OnErrorListener once it's failed which seems to work some of the time. The Galaxy Tab is the only tablet stuck on 3.1, but I'm not sure if that has anything to do with it.
As far as I can tell the Galaxy Tab 10.1 (or Android 3.1... remains to be seen) can only decode two videos at a time. Since I'm using a viewPager there are potentially 3 videos loaded at any given time. The solution (though a crappy one) is to only ever have two videos loaded by delaying load until a page has been selected and making sure that other views (except for the last active view) have been destroyed.