add media support

Change-Id: Iaded2055ad8bdada6e4c6cecbabcee66b0da5e3b