Implement onSetupError for html5 and flash