check if media is loaded