get media according type