0

I am using Android 4.0 Ice Cream Sandwich on Beagleboard XM. We are trying to play video files from sdcard onto BeagleBoard using VideoView. It is giving the following error after playing for say 30mins or so

MediaPlayer went away with unhandled events

This works fine on ICS tablets but gives problems on BeagleBoard. Also, in onCompletion of videoview or anywhere as such I am not using MediaPlayer object. Didn't find anything related. Some advice would help.

Raj Trivedi
  • 557
  • 7
  • 18
  • thats the only warning you get? – Vinay W Jul 11 '12 at 05:41
  • yes i get the above message in logs.On the screen,I get a dialog box saying "Sorry,this video cannot be played" and video stops playing. – Raj Trivedi Jul 16 '12 at 05:28
  • 1
    Check this [post][1] It may help you out. [1]: http://stackoverflow.com/questions/9609479/android-mediaplayer-went-away-with-unhandled-events – jeevs Aug 14 '13 at 08:22

1 Answers1

4

just put these after you use the MediaPlayer object

mediaPlayer.reset();
mediaPlayer.release();
user2903200
  • 708
  • 2
  • 7
  • 19