Moved from argument to getOutputMedia method

this is ugly