add rtMediaHook for javascript functions
Handle unsupported upload devices as in WordPress