extending cordova media plugin to allow media to handle interruptions