News for hackers. Stuff that matters.
Re:Crashing competing media players on Android by lnanek2 on Friday April 18, 2014 @10:59AM (#7609401)
Honestly, media on Android is so bad it doesn't need any help crashing. I worked on a large production app that played sound files in the background when running and about once in a thousand the Android media calls to play the file would just permanently hang. The only way to reliably handle media on Android is to have a watchdog process that checks when your own is hung in the Android code and kills and restarts it from saved state files. This was a call to play just never returning, so there was no error to catch or anything that could be done.

There are no comments on this comment yet.