Move media parsing from single string to MediaParser