A medium is defined as the substance that transfers the energy, or light from one substance to another substance or from one place to another, or from one surface to another.
The medium acts as a carrier here.
The medium can transfer any form of energy, sound wave, light, and heat.