/* global module */constutil=require('util')consthark=require('hark')constgetScreenMedia=require('./getscreenmedia')constWildEmitter=require('wildemitter')constmockconsole=require('mockconsole')constUAParser=require('ua-parser-js')// Only mediaDevicesManager is used, but it can not be assigned here due to not// being initialized yet.const