Prototype of generate media command