add media stream encoding back in