get media according type from content