Otitis media is an infection of the middle ear space. Both children and adults can get this condition, and it can last for days or years.