Moved from argument to getOutputMedia method