check connection before getting media