Media events plugin for cordova/phonegap