add media server function

Change-Id: I76be9fc3945d65759ae298f4b41d4f04165ad50e