Add constructor param to use encoded media

Change-Id: Ib348d4d53de5fb0bdff52c29a1a13a023459fab1